From fc14566e4114b3b132f8af1583c5dc0cfc954b12 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Wed, 7 Sep 2022 14:43:09 -0600 Subject: [PATCH 1/9] - All properties are now TitleCased rather than snake_cased - Some properties had to be renamed to avoid conflicts (look for "// X is the enclosing class name" comments) - Removed Verify/VerifyStrict parameters from Address (naming conflict, parameters aren't actually part of the Address object, they're API call params) - All properties are nullable (most if not all will NOT be null, but since they could be, to avoid compile complaints) - Addressed some IDE suggestions/warnings --- EasyPost.Tests/AddressTest.cs | 26 +-- EasyPost.Tests/ApiKeyTest.cs | 4 +- EasyPost.Tests/BatchTest.cs | 22 +-- EasyPost.Tests/BillingTest.cs | 4 +- EasyPost.Tests/CarrierAccountTest.cs | 10 +- EasyPost.Tests/CustomsInfoTest.cs | 6 +- EasyPost.Tests/CustomsItemTest.cs | 6 +- EasyPost.Tests/EndShipperTest.cs | 12 +- EasyPost.Tests/EventTest.cs | 10 +- EasyPost.Tests/Fixture.cs | 2 +- EasyPost.Tests/InsuranceTest.cs | 12 +- EasyPost.Tests/OrderTest.cs | 26 +-- EasyPost.Tests/ParcelTest.cs | 6 +- EasyPost.Tests/PickupTest.cs | 24 +-- EasyPost.Tests/RateTest.cs | 6 +- EasyPost.Tests/RefundTest.cs | 14 +- EasyPost.Tests/ReportTest.cs | 12 +- EasyPost.Tests/ScanFormTest.cs | 8 +- EasyPost.Tests/ShipmentTest.cs | 122 ++++++------- EasyPost.Tests/TrackerTest.cs | 12 +- EasyPost.Tests/UserTest.cs | 22 +-- EasyPost.Tests/WebhookTest.cs | 12 +- EasyPost/Calculation/Rates.cs | 12 +- EasyPost/Models/API/Address.cs | 43 ++--- EasyPost/Models/API/AddressCollection.cs | 2 +- EasyPost/Models/API/ApiKey.cs | 2 +- EasyPost/Models/API/ApiKeyCollection.cs | 4 +- EasyPost/Models/API/Batch.cs | 32 ++-- EasyPost/Models/API/BatchCollection.cs | 2 +- EasyPost/Models/API/BatchShipment.cs | 6 +- EasyPost/Models/API/Beta/EndShipper.cs | 26 +-- EasyPost/Models/API/Brand.cs | 18 +- EasyPost/Models/API/CarbonOffset.cs | 8 +- EasyPost/Models/API/CarrierAccount.cs | 20 +- EasyPost/Models/API/CarrierDetail.cs | 18 +- EasyPost/Models/API/CarrierType.cs | 8 +- EasyPost/Models/API/CustomsInfo.cs | 20 +- EasyPost/Models/API/CustomsItem.cs | 16 +- EasyPost/Models/API/Error.cs | 10 +- EasyPost/Models/API/Event.cs | 12 +- EasyPost/Models/API/EventCollection.cs | 2 +- EasyPost/Models/API/Fee.cs | 8 +- EasyPost/Models/API/Form.cs | 6 +- EasyPost/Models/API/Insurance.cs | 24 +-- EasyPost/Models/API/InsuranceCollection.cs | 2 +- EasyPost/Models/API/Message.cs | 8 +- EasyPost/Models/API/Options.cs | 172 +++++++++--------- EasyPost/Models/API/Order.cs | 43 +++-- EasyPost/Models/API/Parcel.cs | 10 +- EasyPost/Models/API/PaymentMethod.cs | 24 +-- EasyPost/Models/API/PaymentMethodsSummary.cs | 4 +- EasyPost/Models/API/Pickup.cs | 34 ++-- EasyPost/Models/API/PickupRate.cs | 2 +- EasyPost/Models/API/PostageLabel.cs | 24 +-- EasyPost/Models/API/Rate.cs | 32 ++-- EasyPost/Models/API/Refund.cs | 10 +- EasyPost/Models/API/RefundCollection.cs | 2 +- EasyPost/Models/API/Report.cs | 12 +- EasyPost/Models/API/ReportCollection.cs | 4 +- EasyPost/Models/API/ScanForm.cs | 14 +- EasyPost/Models/API/ScanFormCollection.cs | 2 +- EasyPost/Models/API/Security.cs | 2 +- EasyPost/Models/API/Shipment.cs | 95 +++++----- EasyPost/Models/API/ShipmentCollection.cs | 2 +- EasyPost/Models/API/Smartrate.cs | 32 ++-- EasyPost/Models/API/SmartrateResult.cs | 2 +- EasyPost/Models/API/TaxIdentifier.cs | 8 +- EasyPost/Models/API/TimeInTransit.cs | 28 +-- EasyPost/Models/API/Tracker.cs | 22 +-- EasyPost/Models/API/TrackerCollection.cs | 2 +- EasyPost/Models/API/TrackingDetail.cs | 8 +- EasyPost/Models/API/TrackingLocation.cs | 8 +- EasyPost/Models/API/User.cs | 32 ++-- EasyPost/Models/API/Verification.cs | 6 +- EasyPost/Models/API/VerificationDetails.cs | 6 +- EasyPost/Models/API/Verifications.cs | 4 +- EasyPost/Models/API/Webhook.cs | 8 +- EasyPost/Models/Shared/Collection.cs | 4 +- EasyPost/Services/BillingService.cs | 12 +- EasyPost/Services/ReportService.cs | 2 +- EasyPost/Services/ShipmentService.cs | 8 +- .../Utilities/Annotations/CrudOperations.cs | 12 -- EasyPost/Utilities/SwitchCase.cs | 2 +- EasyPost/_base/EasyPostClient.cs | 2 +- EasyPost/_base/EasyPostObject.cs | 19 +- 85 files changed, 688 insertions(+), 714 deletions(-) diff --git a/EasyPost.Tests/AddressTest.cs b/EasyPost.Tests/AddressTest.cs index 23afeedd7..668e1ad05 100644 --- a/EasyPost.Tests/AddressTest.cs +++ b/EasyPost.Tests/AddressTest.cs @@ -23,8 +23,8 @@ public async Task TestCreate() Address address = await CreateBasicAddress(); Assert.IsType
(address); - Assert.StartsWith("adr_", address.id); - Assert.Equal("388 Townsend St", address.street1); + Assert.StartsWith("adr_", address.Id); + Assert.Equal("388 Townsend St", address.Street1); } [Fact] @@ -38,8 +38,8 @@ public async Task TestCreateVerify() Address address = await Client.Address.Create(addressData); Assert.IsType
(address); - Assert.StartsWith("adr_", address.id); - Assert.Equal("417 MONTGOMERY ST FL 5", address.street1); + Assert.StartsWith("adr_", address.Id); + Assert.Equal("417 MONTGOMERY ST FL 5", address.Street1); } [Fact] @@ -54,8 +54,8 @@ public async Task TestCreateVerifyStrict() Address address = await Client.Address.Create(addressData); Assert.IsType
(address); - Assert.StartsWith("adr_", address.id); - Assert.Equal("388 TOWNSEND ST APT 20", address.street1); + Assert.StartsWith("adr_", address.Id); + Assert.Equal("388 TOWNSEND ST APT 20", address.Street1); } [Fact] @@ -65,9 +65,9 @@ public async Task TestAll() UseVCR("all"); AddressCollection addressCollection = await Client.Address.All(new Dictionary { { "page_size", Fixture.PageSize } }); - List
addresses = addressCollection.addresses; + List
addresses = addressCollection.Addresses; - Assert.True(addressCollection.has_more); + Assert.True(addressCollection.HasMore); Assert.True(addresses.Count <= Fixture.PageSize); foreach (Address item in addresses) { @@ -83,7 +83,7 @@ public async Task TestRetrieve() Address address = await Client.Address.Create(Fixture.BasicAddress); - Address retrievedAddress = await Client.Address.Retrieve(address.id); + Address retrievedAddress = await Client.Address.Retrieve(address.Id); Assert.IsType
(retrievedAddress); Assert.Equal(address, retrievedAddress); @@ -101,8 +101,8 @@ public async Task TestCreateAndVerify() Address address = await Client.Address.CreateAndVerify(addressData); Assert.IsType
(address); - Assert.StartsWith("adr_", address.id); - Assert.Equal("388 TOWNSEND ST APT 20", address.street1); + Assert.StartsWith("adr_", address.Id); + Assert.Equal("388 TOWNSEND ST APT 20", address.Street1); } [Fact] @@ -116,8 +116,8 @@ public async Task TestVerify() address = await address.Verify(); Assert.IsType
(address); - Assert.StartsWith("adr_", address.id); - Assert.Equal("388 TOWNSEND ST APT 20", address.street1); + Assert.StartsWith("adr_", address.Id); + Assert.Equal("388 TOWNSEND ST APT 20", address.Street1); } #endregion diff --git a/EasyPost.Tests/ApiKeyTest.cs b/EasyPost.Tests/ApiKeyTest.cs index b7b17aa3a..4e60de722 100644 --- a/EasyPost.Tests/ApiKeyTest.cs +++ b/EasyPost.Tests/ApiKeyTest.cs @@ -23,8 +23,8 @@ public async Task TestAllApiKeys() // API keys will be censored, so we'll just check for the existence of the list Assert.NotNull(collection); - Assert.NotNull(collection.keys); - Assert.NotNull(collection.children); + Assert.NotNull(collection.Keys); + Assert.NotNull(collection.Children); } #endregion diff --git a/EasyPost.Tests/BatchTest.cs b/EasyPost.Tests/BatchTest.cs index c436d5e91..f5f305845 100644 --- a/EasyPost.Tests/BatchTest.cs +++ b/EasyPost.Tests/BatchTest.cs @@ -24,8 +24,8 @@ public async Task TestCreate() Batch batch = await CreateBasicBatch(); Assert.IsType(batch); - Assert.StartsWith("batch_", batch.id); - Assert.NotNull(batch.shipments); + Assert.StartsWith("batch_", batch.Id); + Assert.NotNull(batch.Shipments); } [Fact] @@ -37,8 +37,8 @@ public async Task TestCreateAndBuy() Batch batch = await Client.Batch.CreateAndBuy(new Dictionary { { "shipments", new List> { Fixture.OneCallBuyShipment } } }); Assert.IsType(batch); - Assert.StartsWith("batch_", batch.id); - Assert.Equal(1, batch.num_shipments); + Assert.StartsWith("batch_", batch.Id); + Assert.Equal(1, batch.NumShipments); } [Fact] @@ -49,9 +49,9 @@ public async Task TestAll() BatchCollection batchCollection = await Client.Batch.All(new Dictionary { { "page_size", Fixture.PageSize } }); - List batches = batchCollection.batches; + List batches = batchCollection.Batches; - Assert.True(batchCollection.has_more); + Assert.True(batchCollection.HasMore); Assert.True(batches.Count <= Fixture.PageSize); foreach (Batch item in batches) { @@ -71,11 +71,11 @@ public async Task TestAddRemoveShipments() batch = await batch.AddShipments(new List { shipment }); - Assert.Equal(1, batch.num_shipments); + Assert.Equal(1, batch.NumShipments); batch = await batch.RemoveShipments(new List { shipment }); - Assert.Equal(0, batch.num_shipments); + Assert.Equal(0, batch.NumShipments); } [Fact] @@ -89,7 +89,7 @@ public async Task TestBuy() batch = await batch.Buy(); Assert.IsType(batch); - Assert.Equal(1, batch.num_shipments); + Assert.Equal(1, batch.NumShipments); } [Fact] @@ -142,11 +142,11 @@ public async Task TestRetrieve() Batch batch = await CreateBasicBatch(); - Batch retrievedBatch = await Client.Batch.Retrieve(batch.id); + Batch retrievedBatch = await Client.Batch.Retrieve(batch.Id); Assert.IsType(retrievedBatch); // Must compare IDs since elements of batch (i.e. status) may be different - Assert.Equal(batch.id, retrievedBatch.id); + Assert.Equal(batch.Id, retrievedBatch.Id); } #endregion diff --git a/EasyPost.Tests/BillingTest.cs b/EasyPost.Tests/BillingTest.cs index 64852ca59..92ef15019 100644 --- a/EasyPost.Tests/BillingTest.cs +++ b/EasyPost.Tests/BillingTest.cs @@ -32,8 +32,8 @@ public async Task TestRetrievePaymentMethods() PaymentMethodsSummary paymentMethodsSummary = await Client.Billing.RetrievePaymentMethodsSummary(); - Assert.NotNull(paymentMethodsSummary.primary_payment_method); - Assert.NotNull(paymentMethodsSummary.secondary_payment_method); + Assert.NotNull(paymentMethodsSummary.PrimaryPaymentMethod); + Assert.NotNull(paymentMethodsSummary.SecondaryPaymentMethod); } [Fact(Skip = "Skipping due to the lack of an available real payment method in tests.")] diff --git a/EasyPost.Tests/CarrierAccountTest.cs b/EasyPost.Tests/CarrierAccountTest.cs index a4642c6dd..f117eaa17 100644 --- a/EasyPost.Tests/CarrierAccountTest.cs +++ b/EasyPost.Tests/CarrierAccountTest.cs @@ -35,7 +35,7 @@ public async Task TestCreate() CarrierAccount carrierAccount = await CreateBasicCarrierAccount(); Assert.IsType(carrierAccount); - Assert.StartsWith("ca_", carrierAccount.id); + Assert.StartsWith("ca_", carrierAccount.Id); } [Fact] @@ -60,7 +60,7 @@ public async Task TestRetrieve() CarrierAccount carrierAccount = await CreateBasicCarrierAccount(); - CarrierAccount retrievedCarrierAccount = await Client.CarrierAccount.Retrieve(carrierAccount.id); + CarrierAccount retrievedCarrierAccount = await Client.CarrierAccount.Retrieve(carrierAccount.Id); Assert.IsType(retrievedCarrierAccount); Assert.Equal(carrierAccount, retrievedCarrierAccount); @@ -94,8 +94,8 @@ public async Task TestUpdate() carrierAccount = await carrierAccount.Update(carrierAccountData); Assert.IsType(carrierAccount); - Assert.StartsWith("ca_", carrierAccount.id); - Assert.Equal(testDescription, carrierAccount.description); + Assert.StartsWith("ca_", carrierAccount.Id); + Assert.Equal(testDescription, carrierAccount.Description); } [Fact] @@ -118,7 +118,7 @@ public async Task TestDelete() private async Task CreateBasicCarrierAccount() { CarrierAccount carrierAccount = await Client.CarrierAccount.Create(Fixture.BasicCarrierAccount); - CleanUpAfterTest(carrierAccount.id); + CleanUpAfterTest(carrierAccount.Id); return carrierAccount; } diff --git a/EasyPost.Tests/CustomsInfoTest.cs b/EasyPost.Tests/CustomsInfoTest.cs index 8af386566..43c0a0464 100644 --- a/EasyPost.Tests/CustomsInfoTest.cs +++ b/EasyPost.Tests/CustomsInfoTest.cs @@ -22,8 +22,8 @@ public async Task TestCreate() CustomsInfo customsInfo = await CreateBasicCustomsInfo(); Assert.IsType(customsInfo); - Assert.StartsWith("cstinfo_", customsInfo.id); - Assert.Equal("NOEEI 30.37(a)", customsInfo.eel_pfc); + Assert.StartsWith("cstinfo_", customsInfo.Id); + Assert.Equal("NOEEI 30.37(a)", customsInfo.EelPfc); } [Fact] @@ -34,7 +34,7 @@ public async Task TestRetrieve() CustomsInfo customsInfo = await CreateBasicCustomsInfo(); - CustomsInfo retrievedCustomsInfo = await Client.CustomsInfo.Retrieve(customsInfo.id); + CustomsInfo retrievedCustomsInfo = await Client.CustomsInfo.Retrieve(customsInfo.Id); Assert.IsType(retrievedCustomsInfo); Assert.Equal(customsInfo, retrievedCustomsInfo); diff --git a/EasyPost.Tests/CustomsItemTest.cs b/EasyPost.Tests/CustomsItemTest.cs index 3796d263a..c43e01c5b 100644 --- a/EasyPost.Tests/CustomsItemTest.cs +++ b/EasyPost.Tests/CustomsItemTest.cs @@ -22,8 +22,8 @@ public async Task TestCreate() CustomsItem customsItem = await CreateBasicCustomsItem(); Assert.IsType(customsItem); - Assert.StartsWith("cstitem_", customsItem.id); - Assert.Equal(23.0, customsItem.value); + Assert.StartsWith("cstitem_", customsItem.Id); + Assert.Equal(23.0, customsItem.Value); } [Fact] @@ -34,7 +34,7 @@ public async Task TestRetrieve() CustomsItem customsItem = await CreateBasicCustomsItem(); - CustomsItem retrievedCustomsItem = await Client.CustomsItem.Retrieve(customsItem.id); + CustomsItem retrievedCustomsItem = await Client.CustomsItem.Retrieve(customsItem.Id); Assert.IsType(retrievedCustomsItem); Assert.Equal(customsItem, retrievedCustomsItem); diff --git a/EasyPost.Tests/EndShipperTest.cs b/EasyPost.Tests/EndShipperTest.cs index f6145cdfb..3bdfefd29 100644 --- a/EasyPost.Tests/EndShipperTest.cs +++ b/EasyPost.Tests/EndShipperTest.cs @@ -23,8 +23,8 @@ public async Task TestCreate() EndShipper endShipper = await CreateBasicEndShipper(); Assert.IsType(endShipper); - Assert.StartsWith("es_", endShipper.id); - Assert.Equal("388 TOWNSEND ST APT 20", endShipper.street1); + Assert.StartsWith("es_", endShipper.Id); + Assert.Equal("388 TOWNSEND ST APT 20", endShipper.Street1); } [Fact] @@ -49,10 +49,10 @@ public async Task TestRetrieve() EndShipper endShipper = await CreateBasicEndShipper(); - EndShipper retrievedEndShipper = await Client.Beta.EndShipper.Retrieve(endShipper.id); + EndShipper retrievedEndShipper = await Client.Beta.EndShipper.Retrieve(endShipper.Id); Assert.IsType(retrievedEndShipper); - Assert.Equal(endShipper.street1, retrievedEndShipper.street1); + Assert.Equal(endShipper.Street1, retrievedEndShipper.Street1); } [Fact] @@ -71,8 +71,8 @@ public async Task TestUpdate() endShipper = await endShipper.Update(endShipperData); Assert.IsType(endShipper); - Assert.StartsWith("es_", endShipper.id); - Assert.Equal(testName, endShipper.name); + Assert.StartsWith("es_", endShipper.Id); + Assert.Equal(testName, endShipper.Name); } #endregion diff --git a/EasyPost.Tests/EventTest.cs b/EasyPost.Tests/EventTest.cs index a7e98eaa3..316923df4 100644 --- a/EasyPost.Tests/EventTest.cs +++ b/EasyPost.Tests/EventTest.cs @@ -22,9 +22,9 @@ public async Task TestAll() EventCollection eventCollection = await GetBasicEventCollection(); - List events = eventCollection.events; + List events = eventCollection.Events; - Assert.True(eventCollection.has_more); + Assert.True(eventCollection.HasMore); Assert.True(events.Count <= Fixture.PageSize); foreach (Event item in events) { @@ -39,13 +39,13 @@ public async Task TestRetrieve() UseVCR("retrieve"); EventCollection eventCollection = await GetBasicEventCollection(); - Event _event = eventCollection.events[0]; + Event _event = eventCollection.Events[0]; - Event retrievedEvent = await Client.Event.Retrieve(_event.id); + Event retrievedEvent = await Client.Event.Retrieve(_event.Id); Assert.IsType(retrievedEvent); // Must compare IDs because other elements of objects may be different - Assert.Equal(_event.id, retrievedEvent.id); + Assert.Equal(_event.Id, retrievedEvent.Id); } #endregion diff --git a/EasyPost.Tests/Fixture.cs b/EasyPost.Tests/Fixture.cs index 1da6f06ec..f46b53dd5 100644 --- a/EasyPost.Tests/Fixture.cs +++ b/EasyPost.Tests/Fixture.cs @@ -311,7 +311,7 @@ public static async Task> BasicInsurance(Client clien { { "to_address", BasicAddress }, { "from_address", BasicAddress }, - { "tracking_code", shipment.tracking_code }, + { "tracking_code", shipment.TrackingCode }, { "carrier", Usps }, { "amount", 100 } }; diff --git a/EasyPost.Tests/InsuranceTest.cs b/EasyPost.Tests/InsuranceTest.cs index b8b764f94..483511bc0 100644 --- a/EasyPost.Tests/InsuranceTest.cs +++ b/EasyPost.Tests/InsuranceTest.cs @@ -23,9 +23,9 @@ public async Task TestCreate() Insurance insurance = await CreateBasicInsurance(); Assert.IsType(insurance); - Assert.StartsWith("ins_", insurance.id); + Assert.StartsWith("ins_", insurance.Id); // TODO: amount really should be a number, not a string - Assert.Equal("100.00000", insurance.amount); + Assert.Equal("100.00000", insurance.Amount); } [Fact] @@ -36,9 +36,9 @@ public async Task TestAll() InsuranceCollection insuranceCollection = await Client.Insurance.All(new Dictionary { { "page_size", Fixture.PageSize } }); - List insurances = insuranceCollection.insurances; + List insurances = insuranceCollection.Insurances; - Assert.True(insuranceCollection.has_more); + Assert.True(insuranceCollection.HasMore); Assert.True(insurances.Count <= Fixture.PageSize); foreach (Insurance item in insurances) { @@ -54,10 +54,10 @@ public async Task TestRetrieve() Insurance insurance = await CreateBasicInsurance(); - Insurance retrievedInsurance = await Client.Insurance.Retrieve(insurance.id); + Insurance retrievedInsurance = await Client.Insurance.Retrieve(insurance.Id); Assert.IsType(retrievedInsurance); // Must compare IDs since other elements of object may be different - Assert.Equal(insurance.id, retrievedInsurance.id); + Assert.Equal(insurance.Id, retrievedInsurance.Id); } #endregion diff --git a/EasyPost.Tests/OrderTest.cs b/EasyPost.Tests/OrderTest.cs index ab639d368..3a1f69be6 100644 --- a/EasyPost.Tests/OrderTest.cs +++ b/EasyPost.Tests/OrderTest.cs @@ -24,8 +24,8 @@ public async Task TestCreate() Order order = await CreateBasicOrder(); Assert.IsType(order); - Assert.StartsWith("order_", order.id); - Assert.NotNull(order.rates); + Assert.StartsWith("order_", order.Id); + Assert.NotNull(order.Rates); } [Fact] @@ -38,7 +38,7 @@ public async Task TestGetRates() await order.GetRates(); - List rates = order.rates; + List rates = order.Rates; Assert.NotNull(rates); foreach (Rate rate in rates) @@ -57,16 +57,16 @@ public async Task TestLowestRate() // test lowest rate with no filters Rate lowestRate = order.LowestRate(); - Assert.Equal("First", lowestRate.service); - Assert.Equal("5.49", lowestRate.rate); - Assert.Equal("USPS", lowestRate.carrier); + Assert.Equal("First", lowestRate.Service); + Assert.Equal("5.49", lowestRate.Price); + Assert.Equal("USPS", lowestRate.Carrier); // test lowest rate with service filter (this rate is higher than the lowest but should filter) List services = new List { "Priority" }; lowestRate = order.LowestRate(null, services); - Assert.Equal("Priority", lowestRate.service); - Assert.Equal("7.37", lowestRate.rate); - Assert.Equal("USPS", lowestRate.carrier); + Assert.Equal("Priority", lowestRate.Service); + Assert.Equal("7.37", lowestRate.Price); + Assert.Equal("USPS", lowestRate.Carrier); // test lowest rate with carrier filter (should error due to bad carrier) List carriers = new List { "BAD_CARRIER" }; @@ -81,11 +81,11 @@ public async Task TestRetrieve() Order order = await CreateBasicOrder(); - Order retrievedOrder = await Client.Order.Retrieve(order.id); + Order retrievedOrder = await Client.Order.Retrieve(order.Id); Assert.IsType(retrievedOrder); // Must compare IDs since other elements of objects may be different - Assert.Equal(order.id, retrievedOrder.id); + Assert.Equal(order.Id, retrievedOrder.Id); } [Fact] @@ -98,12 +98,12 @@ public async Task TestBuy() order = await order.Buy(Fixture.Usps, Fixture.UspsService); - List shipments = order.shipments; + List shipments = order.Shipments; foreach (Shipment shipment in shipments) { Assert.IsType(shipment); - Assert.NotNull(shipment.postage_label); + Assert.NotNull(shipment.PostageLabel); } } diff --git a/EasyPost.Tests/ParcelTest.cs b/EasyPost.Tests/ParcelTest.cs index 0623250e6..5be0fa1ae 100644 --- a/EasyPost.Tests/ParcelTest.cs +++ b/EasyPost.Tests/ParcelTest.cs @@ -22,8 +22,8 @@ public async Task TestCreate() Parcel parcel = await CreateBasicParcel(); Assert.IsType(parcel); - Assert.StartsWith("prcl_", parcel.id); - Assert.Equal(15.4, parcel.weight); + Assert.StartsWith("prcl_", parcel.Id); + Assert.Equal(15.4, parcel.Weight); } [Fact] @@ -34,7 +34,7 @@ public async Task TestRetrieve() Parcel parcel = await CreateBasicParcel(); - Parcel retrievedParcel = await Client.Parcel.Retrieve(parcel.id); + Parcel retrievedParcel = await Client.Parcel.Retrieve(parcel.Id); Assert.IsType(retrievedParcel); Assert.Equal(parcel, retrievedParcel); diff --git a/EasyPost.Tests/PickupTest.cs b/EasyPost.Tests/PickupTest.cs index 3f8d703ee..424330f3e 100644 --- a/EasyPost.Tests/PickupTest.cs +++ b/EasyPost.Tests/PickupTest.cs @@ -24,8 +24,8 @@ public async Task TestCreate() Pickup pickup = await CreateBasicPickup(); Assert.IsType(pickup); - Assert.StartsWith("pickup_", pickup.id); - Assert.NotNull(pickup.pickup_rates); + Assert.StartsWith("pickup_", pickup.Id); + Assert.NotNull(pickup.PickupRates); } [Fact] @@ -38,9 +38,9 @@ public async Task TestLowestRate() // test lowest rate with no filters Rate lowestRate = pickup.LowestRate(); - Assert.Equal("NextDay", lowestRate.service); - Assert.Equal("0.00", lowestRate.rate); - Assert.Equal("USPS", lowestRate.carrier); + Assert.Equal("NextDay", lowestRate.Service); + Assert.Equal("0.00", lowestRate.Price); + Assert.Equal("USPS", lowestRate.Carrier); // test lowest rate with service filter (should error due to bad service) List services = new List { "BAD_SERVICE" }; @@ -59,10 +59,10 @@ public async Task TestRetrieve() Pickup pickup = await CreateBasicPickup(); - Pickup retrievedPickup = await Client.Pickup.Retrieve(pickup.id); + Pickup retrievedPickup = await Client.Pickup.Retrieve(pickup.Id); Assert.IsType(retrievedPickup); - Assert.Equal(pickup.id, retrievedPickup.id); + Assert.Equal(pickup.Id, retrievedPickup.Id); } [Fact] @@ -76,9 +76,9 @@ public async Task TestBuy() pickup = await pickup.Buy(Fixture.Usps, Fixture.PickupService); Assert.IsType(pickup); - Assert.StartsWith("pickup_", pickup.id); - Assert.NotNull(pickup.confirmation); - Assert.Equal("scheduled", pickup.status); + Assert.StartsWith("pickup_", pickup.Id); + Assert.NotNull(pickup.Confirmation); + Assert.Equal("scheduled", pickup.Status); } [Fact] @@ -94,8 +94,8 @@ public async Task TestCancel() pickup = await pickup.Cancel(); Assert.IsType(pickup); - Assert.StartsWith("pickup_", pickup.id); - Assert.Equal("canceled", pickup.status); + Assert.StartsWith("pickup_", pickup.Id); + Assert.Equal("canceled", pickup.Status); } #endregion diff --git a/EasyPost.Tests/RateTest.cs b/EasyPost.Tests/RateTest.cs index c93bc4aed..bced9f5a9 100644 --- a/EasyPost.Tests/RateTest.cs +++ b/EasyPost.Tests/RateTest.cs @@ -21,11 +21,11 @@ public async Task TestRetrieve() Shipment shipment = await Client.Shipment.Create(Fixture.BasicShipment); - Rate rate = await Client.Rate.Retrieve(shipment.rates[0].id); + Rate rate = await Client.Rate.Retrieve(shipment.Rates[0].Id); Assert.IsType(rate); - Assert.StartsWith("rate_", rate.id); - Assert.Equal(shipment.rates[0], rate); + Assert.StartsWith("rate_", rate.Id); + Assert.Equal(shipment.Rates[0], rate); } #endregion diff --git a/EasyPost.Tests/RefundTest.cs b/EasyPost.Tests/RefundTest.cs index 7670ebe38..5e2e0191d 100644 --- a/EasyPost.Tests/RefundTest.cs +++ b/EasyPost.Tests/RefundTest.cs @@ -28,8 +28,8 @@ public async Task TestCreate() } Refund refund = refunds[0]; - Assert.StartsWith("rfnd_", refund.id); - Assert.Equal("submitted", refund.status); + Assert.StartsWith("rfnd_", refund.Id); + Assert.Equal("submitted", refund.Status); } [Fact] @@ -40,9 +40,9 @@ public async Task TestAll() RefundCollection refundCollection = await Client.Refund.All(new Dictionary { { "page_size", Fixture.PageSize } }); - List refunds = refundCollection.refunds; + List refunds = refundCollection.Refunds; - Assert.True(refundCollection.has_more); + Assert.True(refundCollection.HasMore); Assert.True(refunds.Count <= Fixture.PageSize); foreach (Refund item in refunds) { @@ -60,7 +60,7 @@ public async Task TestRetrieve() Refund refund = (await CreateBasicRefund())[0]; - Refund retrievedRefund = await Client.Refund.Retrieve(refund.id); + Refund retrievedRefund = await Client.Refund.Retrieve(refund.Id); Assert.IsType(retrievedRefund); Assert.Equal(refund, retrievedRefund); @@ -71,12 +71,12 @@ public async Task TestRetrieve() private async Task> CreateBasicRefund() { Shipment shipment = await Client.Shipment.Create(Fixture.OneCallBuyShipment); - Shipment retrievedShipment = await Client.Shipment.Retrieve(shipment.id); // We need to retrieve the shipment so that the tracking_code has time to populate + Shipment retrievedShipment = await Client.Shipment.Retrieve(shipment.Id); // We need to retrieve the shipment so that the tracking_code has time to populate return await Client.Refund.Create(new Dictionary { { "carrier", Fixture.Usps }, - { "tracking_codes", new List { retrievedShipment.tracking_code } } + { "tracking_codes", new List { retrievedShipment.TrackingCode } } }); } } diff --git a/EasyPost.Tests/ReportTest.cs b/EasyPost.Tests/ReportTest.cs index 324e46daa..0d858404c 100644 --- a/EasyPost.Tests/ReportTest.cs +++ b/EasyPost.Tests/ReportTest.cs @@ -23,7 +23,7 @@ public async Task TestCreateReport() Report report = await CreateBasicReport(Fixture.ReportType); Assert.IsType(report); - Assert.StartsWith(Fixture.ReportIdPrefix, report.id); + Assert.StartsWith(Fixture.ReportIdPrefix, report.Id); } [Fact] @@ -72,9 +72,9 @@ public async Task TestAll() ReportCollection reportCollection = await Client.Report.All("shipment", new Dictionary { { "page_size", Fixture.PageSize } }); - List reports = reportCollection.reports; + List reports = reportCollection.Reports; - Assert.True(reportCollection.has_more); + Assert.True(reportCollection.HasMore); Assert.True(reports.Count <= Fixture.PageSize); foreach (Report report in reports) { @@ -90,11 +90,11 @@ public async Task TestRetrieveReport() Report report = await CreateBasicReport(Fixture.ReportType); - Report retrievedReport = await Client.Report.Retrieve(report.id); + Report retrievedReport = await Client.Report.Retrieve(report.Id); Assert.IsType(retrievedReport); - Assert.Equal(report.start_date, retrievedReport.start_date); - Assert.Equal(report.end_date, retrievedReport.end_date); + Assert.Equal(report.StartDate, retrievedReport.StartDate); + Assert.Equal(report.EndDate, retrievedReport.EndDate); } #endregion diff --git a/EasyPost.Tests/ScanFormTest.cs b/EasyPost.Tests/ScanFormTest.cs index e95a4d6bf..ee0fdd98b 100644 --- a/EasyPost.Tests/ScanFormTest.cs +++ b/EasyPost.Tests/ScanFormTest.cs @@ -23,7 +23,7 @@ public async Task TestCreate() ScanForm scanForm = await GetBasicScanForm(); Assert.IsType(scanForm); - Assert.StartsWith("sf_", scanForm.id); + Assert.StartsWith("sf_", scanForm.Id); } [Fact] @@ -34,9 +34,9 @@ public async Task TestAll() ScanFormCollection scanFormCollection = await Client.ScanForm.All(new Dictionary { { "page_size", Fixture.PageSize } }); - List scanForms = scanFormCollection.scan_forms; + List scanForms = scanFormCollection.ScanForms; - Assert.True(scanFormCollection.has_more); + Assert.True(scanFormCollection.HasMore); Assert.True(scanForms.Count <= Fixture.PageSize); foreach (ScanForm scanForm in scanForms) { @@ -52,7 +52,7 @@ public async Task TestRetrieve() ScanForm scanForm = await GetBasicScanForm(); - ScanForm retrievedScanForm = await Client.ScanForm.Retrieve(scanForm.id); + ScanForm retrievedScanForm = await Client.ScanForm.Retrieve(scanForm.Id); Assert.IsType(retrievedScanForm); Assert.Equal(scanForm, retrievedScanForm); diff --git a/EasyPost.Tests/ShipmentTest.cs b/EasyPost.Tests/ShipmentTest.cs index 97cda8c99..8429f4f5d 100644 --- a/EasyPost.Tests/ShipmentTest.cs +++ b/EasyPost.Tests/ShipmentTest.cs @@ -26,11 +26,11 @@ public async Task TestCreate() Shipment shipment = await CreateFullShipment(); Assert.IsType(shipment); - Assert.StartsWith("shp_", shipment.id); - Assert.NotNull(shipment.rates); - Assert.Equal("PNG", shipment.options.label_format); - Assert.Equal("123", shipment.options.invoice_number); - Assert.Equal("123", shipment.reference); + Assert.StartsWith("shp_", shipment.Id); + Assert.NotNull(shipment.Rates); + Assert.Equal("PNG", shipment.Options.LabelFormat); + Assert.Equal("123", shipment.Options.InvoiceNumber); + Assert.Equal("123", shipment.Reference); } [Fact] @@ -51,11 +51,11 @@ public async Task TestCreateEmptyObjects() Shipment shipment = await Client.Shipment.Create(shipmentData); Assert.IsType(shipment); - Assert.StartsWith("shp_", shipment.id); - Assert.NotNull(shipment.options); // The EasyPost API populates some default values here - Assert.True(shipment.customs_info.customs_items.Count == 0); - Assert.Null(shipment.reference); - Assert.Null(shipment.tax_identifiers); + Assert.StartsWith("shp_", shipment.Id); + Assert.NotNull(shipment.Options); // The EasyPost API populates some default values here + Assert.True(shipment.CustomsInfo.CustomsItems.Count == 0); + Assert.Null(shipment.Reference); + Assert.Null(shipment.TaxIdentifiers); } [Fact] @@ -69,10 +69,10 @@ public async Task TestCreateShipmentWithCarbonOffset() Assert.IsType(shipment); Rate rate = shipment.LowestRate(); - CarbonOffset carbonOffset = rate.carbon_offset; + CarbonOffset carbonOffset = rate.CarbonOffset; Assert.NotNull(carbonOffset); - Assert.NotNull(carbonOffset.price); + Assert.NotNull(carbonOffset.Price); } [Fact] @@ -87,11 +87,11 @@ public async Task TestCreateTaxIdentifiers() Shipment shipment = await Client.Shipment.Create(shipmentData); Assert.IsType(shipment); - Assert.StartsWith("shp_", shipment.id); - Assert.Equal("IOSS", shipment.tax_identifiers[0].tax_id_type); + Assert.StartsWith("shp_", shipment.Id); + Assert.Equal("IOSS", shipment.TaxIdentifiers[0].TaxIdType); } - [Fact(Skip = "Test does not play well with VCR")] + [Fact(Skip = "Test does not play well with VCR. Runs as expected when not using VCR.")] [CrudOperations.Create] public async Task TestCreateWithIds() { @@ -103,17 +103,17 @@ public async Task TestCreateWithIds() Shipment shipment = await Client.Shipment.Create(new Dictionary { - { "from_address", new Dictionary { { "id", fromAddress.id } } }, - { "to_address", new Dictionary { { "id", toAddress.id } } }, - { "parcel", new Dictionary { { "id", parcel.id } } } + { "from_address", new Dictionary { { "id", fromAddress.Id } } }, + { "to_address", new Dictionary { { "id", toAddress.Id } } }, + { "parcel", new Dictionary { { "id", parcel.Id } } } }); Assert.IsType(shipment); - Assert.StartsWith("shp_", shipment.id); - Assert.StartsWith("adr_", shipment.from_address.id); - Assert.StartsWith("adr_", shipment.to_address.id); - Assert.StartsWith("prcl_", shipment.parcel.id); - Assert.Equal("388 Townsend St", shipment.from_address.street1); + Assert.StartsWith("shp_", shipment.Id); + Assert.StartsWith("adr_", shipment.FromAddress.Id); + Assert.StartsWith("adr_", shipment.ToAddress.Id); + Assert.StartsWith("prcl_", shipment.Parcel.Id); + Assert.Equal("388 Townsend St", shipment.FromAddress.Street1); } // If the shipment was purchased with a USPS rate, it must have had its insurance set to `0` when bought @@ -132,7 +132,7 @@ public async Task TestInsure() shipment = await shipment.Insure(100); - Assert.Equal("100.00", shipment.insurance); + Assert.Equal("100.00", shipment.Insurance); } [Fact] @@ -143,8 +143,8 @@ public async Task TestOneCallBuyShipmentWithCarbonOffset() Shipment shipment = await Client.Shipment.Create(Fixture.OneCallBuyCarbonOffsetShipment, true); - Assert.NotNull(shipment.fees); - bool carbonOffsetIncluded = shipment.fees.Any(fee => fee.type == "CarbonOffsetFee"); + Assert.NotNull(shipment.Fees); + bool carbonOffsetIncluded = shipment.Fees.Any(fee => fee.Type == "CarbonOffsetFee"); Assert.True(carbonOffsetIncluded); } @@ -156,9 +156,9 @@ public async Task TestAll() ShipmentCollection shipmentCollection = await Client.Shipment.All(new Dictionary { { "page_size", Fixture.PageSize } }); - List shipments = shipmentCollection.shipments; + List shipments = shipmentCollection.Shipments; - Assert.True(shipmentCollection.has_more); + Assert.True(shipmentCollection.HasMore); Assert.True(shipments.Count <= Fixture.PageSize); foreach (Shipment shipment in shipments) { @@ -176,9 +176,9 @@ public async Task TestInstanceLowestSmartrate() // test lowest smartrate with valid filters Smartrate lowestSmartrate = await shipment.LowestSmartrate(1, SmartrateAccuracy.Percentile90); - Assert.Equal("First", lowestSmartrate.service); - Assert.Equal(5.49, lowestSmartrate.rate); - Assert.Equal("USPS", lowestSmartrate.carrier); + Assert.Equal("First", lowestSmartrate.Service); + Assert.Equal(5.49, lowestSmartrate.Rate); + Assert.Equal("USPS", lowestSmartrate.Carrier); // test lowest smartrate with invalid filters (should error due to strict delivery_days) await Assert.ThrowsAsync(async () => await shipment.LowestSmartrate(0, SmartrateAccuracy.Percentile90)); @@ -197,16 +197,16 @@ public async Task TestLowestRate() // test lowest rate with no filters Rate lowestRate = shipment.LowestRate(); - Assert.Equal("First", lowestRate.service); - Assert.Equal("5.49", lowestRate.rate); - Assert.Equal("USPS", lowestRate.carrier); + Assert.Equal("First", lowestRate.Service); + Assert.Equal("5.49", lowestRate.Price); + Assert.Equal("USPS", lowestRate.Carrier); // test lowest rate with service filter (this rate is higher than the lowest but should filter) List services = new List { "Priority" }; lowestRate = shipment.LowestRate(null, services); - Assert.Equal("Priority", lowestRate.service); - Assert.Equal("7.37", lowestRate.rate); - Assert.Equal("USPS", lowestRate.carrier); + Assert.Equal("Priority", lowestRate.Service); + Assert.Equal("7.37", lowestRate.Price); + Assert.Equal("USPS", lowestRate.Carrier); // test lowest rate with carrier filter (should error due to bad carrier) List carriers = new List { "BAD_CARRIER" }; @@ -221,7 +221,7 @@ public async Task TestRetrieve() Shipment shipment = await CreateFullShipment(); - Shipment retrievedShipment = await Client.Shipment.Retrieve(shipment.id); + Shipment retrievedShipment = await Client.Shipment.Retrieve(shipment.Id); Assert.IsType(shipment); Assert.Equal(shipment, retrievedShipment); @@ -235,19 +235,19 @@ public async Task TestSmartrate() Shipment shipment = await CreateBasicShipment(); - Assert.NotNull(shipment.rates); + Assert.NotNull(shipment.Rates); List smartRates = await shipment.GetSmartrates(); Smartrate smartrate = smartRates.First(); // Must compare IDs because one is a Rate object and one is a Smartrate object - Assert.Equal(shipment.rates[0].id, smartrate.id); - Assert.NotNull(smartrate.time_in_transit.percentile_50); - Assert.NotNull(smartrate.time_in_transit.percentile_75); - Assert.NotNull(smartrate.time_in_transit.percentile_85); - Assert.NotNull(smartrate.time_in_transit.percentile_90); - Assert.NotNull(smartrate.time_in_transit.percentile_95); - Assert.NotNull(smartrate.time_in_transit.percentile_97); - Assert.NotNull(smartrate.time_in_transit.percentile_99); + Assert.Equal(shipment.Rates[0].Id, smartrate.Id); + Assert.NotNull(smartrate.TimeInTransit.Percentile50); + Assert.NotNull(smartrate.TimeInTransit.Percentile75); + Assert.NotNull(smartrate.TimeInTransit.Percentile85); + Assert.NotNull(smartrate.TimeInTransit.Percentile90); + Assert.NotNull(smartrate.TimeInTransit.Percentile95); + Assert.NotNull(smartrate.TimeInTransit.Percentile97); + Assert.NotNull(smartrate.TimeInTransit.Percentile99); } [Fact] @@ -261,9 +261,9 @@ public async Task TestStaticLowestSmartrate() // test lowest smartrate with valid filters List smartrates = await shipment.GetSmartrates(); Smartrate lowestSmartrate = ShipmentService.GetLowestSmartrate(smartrates, 1, SmartrateAccuracy.Percentile90); - Assert.Equal("First", lowestSmartrate.service); - Assert.Equal(5.49, lowestSmartrate.rate); - Assert.Equal("USPS", lowestSmartrate.carrier); + Assert.Equal("First", lowestSmartrate.Service); + Assert.Equal(5.49, lowestSmartrate.Rate); + Assert.Equal("USPS", lowestSmartrate.Carrier); // test lowest smartrate with invalid filters (should error due to strict delivery_days) Assert.Throws(() => ShipmentService.GetLowestSmartrate(smartrates, 0, SmartrateAccuracy.Percentile90)); @@ -280,9 +280,9 @@ public async Task TestBuy() Shipment shipment = await CreateFullShipment(); - await shipment.Buy(shipment.LowestRate().id); + await shipment.Buy(shipment.LowestRate().Id); - Assert.NotNull(shipment.postage_label); + Assert.NotNull(shipment.PostageLabel); } [Fact] @@ -295,8 +295,8 @@ public async Task TestBuyShipmentWithCarbonOffset() await shipment.Buy(shipment.LowestRate(), withCarbonOffset: true); - Assert.NotNull(shipment.fees); - bool carbonOffsetIncluded = shipment.fees.Any(fee => fee.type == "CarbonOffsetFee"); + Assert.NotNull(shipment.Fees); + bool carbonOffsetIncluded = shipment.Fees.Any(fee => fee.Type == "CarbonOffsetFee"); Assert.True(carbonOffsetIncluded); } @@ -310,7 +310,7 @@ public async Task TestConvertLabel() shipment = await shipment.GenerateLabel("ZPL"); - Assert.NotNull(shipment.postage_label.label_zpl_url); + Assert.NotNull(shipment.PostageLabel.LabelZplUrl); } // Refunding a test shipment must happen within seconds of the shipment being created as test shipments naturally @@ -326,7 +326,7 @@ public async Task TestRefund() shipment = await shipment.Refund(); - Assert.Equal("submitted", shipment.refund_status); + Assert.Equal("submitted", shipment.RefundStatus); } [Fact] @@ -339,7 +339,7 @@ public async Task TestRegenerateRates() await shipment.RegenerateRates(); - List rates = shipment.rates; + List rates = shipment.Rates; Assert.NotNull(rates); foreach (Rate rate in rates) @@ -355,16 +355,16 @@ public async Task TestRegenerateRatesWithCarbonOffset() UseVCR("regenerate_rates_with_carbon_offset"); Shipment shipment = await Client.Shipment.Create(Fixture.OneCallBuyCarbonOffsetShipment); - List baseRates = shipment.rates; + List baseRates = shipment.Rates; await shipment.RegenerateRates(withCarbonOffset: true); - List newRatesWithCarbon = shipment.rates; + List newRatesWithCarbon = shipment.Rates; Rate baseRate = baseRates.First(); Rate newRateWithCarbon = newRatesWithCarbon.First(); - Assert.Null(baseRate.carbon_offset); - Assert.NotNull(newRateWithCarbon.carbon_offset); + Assert.Null(baseRate.CarbonOffset); + Assert.NotNull(newRateWithCarbon.CarbonOffset); } #endregion diff --git a/EasyPost.Tests/TrackerTest.cs b/EasyPost.Tests/TrackerTest.cs index 7e0fead83..a73fb028d 100644 --- a/EasyPost.Tests/TrackerTest.cs +++ b/EasyPost.Tests/TrackerTest.cs @@ -23,8 +23,8 @@ public async Task TestCreate() Tracker tracker = await CreateBasicTracker(); Assert.IsType(tracker); - Assert.StartsWith("trk_", tracker.id); - Assert.Equal("pre_transit", tracker.status); + Assert.StartsWith("trk_", tracker.Id); + Assert.Equal("pre_transit", tracker.Status); } [Fact] @@ -51,9 +51,9 @@ public async Task TestAll() TrackerCollection trackerCollection = await Client.Tracker.All(new Dictionary { { "page_size", Fixture.PageSize } }); - List trackers = trackerCollection.trackers; + List trackers = trackerCollection.Trackers; - Assert.True(trackerCollection.has_more); + Assert.True(trackerCollection.HasMore); Assert.True(trackers.Count <= Fixture.PageSize); foreach (Tracker tracker in trackers) { @@ -70,11 +70,11 @@ public async Task TestRetrieve() // Test trackers cycle through their "dummy" statuses automatically, the created and retrieved objects may differ Tracker tracker = await CreateBasicTracker(); - Tracker retrievedTracker = await Client.Tracker.Retrieve(tracker.id); + Tracker retrievedTracker = await Client.Tracker.Retrieve(tracker.Id); Assert.IsType(retrievedTracker); // Must compare IDs because other elements of objects may be different - Assert.Equal(tracker.id, retrievedTracker.id); + Assert.Equal(tracker.Id, retrievedTracker.Id); } #endregion diff --git a/EasyPost.Tests/UserTest.cs b/EasyPost.Tests/UserTest.cs index 692f7cb97..433829ae9 100644 --- a/EasyPost.Tests/UserTest.cs +++ b/EasyPost.Tests/UserTest.cs @@ -35,8 +35,8 @@ public async Task TestCreate() User user = await CreateUser(); Assert.IsType(user); - Assert.StartsWith("user_", user.id); - Assert.Equal("Test User", user.name); + Assert.StartsWith("user_", user.Id); + Assert.Equal("Test User", user.Name); } [Fact] @@ -51,8 +51,8 @@ public async Task TestUpdateBrand() Brand brand = await user.UpdateBrand(new Dictionary { { "color", color } }); Assert.IsType(brand); - Assert.StartsWith("brd_", brand.id); - Assert.Equal(color, brand.color); + Assert.StartsWith("brd_", brand.Id); + Assert.Equal(color, brand.Color); } [Fact] @@ -63,13 +63,13 @@ public async Task TestRetrieve() User authenticatedUser = await RetrieveMe(); - string id = authenticatedUser.id; + string id = authenticatedUser.Id; User user = await Client.User.Retrieve(id); Assert.IsType(user); - Assert.StartsWith("user_", user.id); - Assert.Equal(id, user.id); + Assert.StartsWith("user_", user.Id); + Assert.Equal(id, user.Id); } [Fact] @@ -81,7 +81,7 @@ public async Task TestRetrieveMe() User user = await RetrieveMe(); Assert.IsType(user); - Assert.StartsWith("user_", user.id); + Assert.StartsWith("user_", user.Id); } [Fact] @@ -98,8 +98,8 @@ public async Task TestUpdate() user = await user.Update(userDict); Assert.IsType(user); - Assert.StartsWith("user_", user.id); - Assert.Equal(testName, user.name); + Assert.StartsWith("user_", user.Id); + Assert.Equal(testName, user.Name); } [Fact] @@ -122,7 +122,7 @@ public async Task TestDelete() private async Task CreateUser() { User user = await Client.User.CreateChild(new Dictionary { { "name", "Test User" } }); - CleanUpAfterTest(user.id); + CleanUpAfterTest(user.Id); return user; } diff --git a/EasyPost.Tests/WebhookTest.cs b/EasyPost.Tests/WebhookTest.cs index 640dc10a7..5443b5ac4 100644 --- a/EasyPost.Tests/WebhookTest.cs +++ b/EasyPost.Tests/WebhookTest.cs @@ -40,8 +40,8 @@ public async Task TestCreate() Webhook webhook = await CreateBasicWebhook(url); Assert.IsType(webhook); - Assert.StartsWith("hook_", webhook.id); - Assert.Equal(url, webhook.url); + Assert.StartsWith("hook_", webhook.Id); + Assert.Equal(url, webhook.Url); } [Fact] @@ -68,7 +68,7 @@ public async Task TestRetrieve() Webhook webhook = await CreateBasicWebhook(url); - Webhook retrievedWebhook = await Client.Webhook.Retrieve(webhook.id); + Webhook retrievedWebhook = await Client.Webhook.Retrieve(webhook.Id); Assert.IsType(retrievedWebhook); Assert.Equal(webhook, retrievedWebhook); @@ -87,7 +87,7 @@ public async Task TestUpdate() webhook = await webhook.Update(); Assert.IsType(webhook); - Assert.StartsWith("hook_", webhook.id); + Assert.StartsWith("hook_", webhook.Id); } [Fact] @@ -99,7 +99,7 @@ public async Task TestDelete() const string url = "https://example.com/delete"; Webhook webhook = await CreateBasicWebhook(url); - Webhook retrievedWebhook = await Client.Webhook.Retrieve(webhook.id); + Webhook retrievedWebhook = await Client.Webhook.Retrieve(webhook.Id); var possibleException = await Record.ExceptionAsync(async () => await retrievedWebhook.Delete()); @@ -113,7 +113,7 @@ public async Task TestDelete() private async Task CreateBasicWebhook(string url) { Webhook webhook = await Client.Webhook.Create(new Dictionary { { "url", url } }); - CleanUpAfterTest(webhook.id); + CleanUpAfterTest(webhook.Id); return webhook; } diff --git a/EasyPost/Calculation/Rates.cs b/EasyPost/Calculation/Rates.cs index 410bfb2f9..084fec7d5 100644 --- a/EasyPost/Calculation/Rates.cs +++ b/EasyPost/Calculation/Rates.cs @@ -30,7 +30,7 @@ public static Rate GetLowestObjectRate(IEnumerable rates, List? in Rate? lowestRate = null; - foreach (Rate rate in from rate in rates where includeCarriers.Count <= 0 || includeCarriers.Contains(rate.carrier.ToLower()) where excludeCarriers.Count <= 0 || !excludeCarriers.Contains(rate.carrier.ToLower()) where includeServices.Count <= 0 || includeServices.Contains(rate.service.ToLower()) where excludeServices.Count <= 0 || !excludeServices.Contains(rate.service.ToLower()) select rate) + foreach (Rate rate in from rate in rates where includeCarriers.Count <= 0 || includeCarriers.Contains(rate.Carrier.ToLower()) where excludeCarriers.Count <= 0 || !excludeCarriers.Contains(rate.Carrier.ToLower()) where includeServices.Count <= 0 || includeServices.Contains(rate.Service.ToLower()) where excludeServices.Count <= 0 || !excludeServices.Contains(rate.Service.ToLower()) select rate) { // if lowest rate is null, set it to this rate if (lowestRate == null) @@ -39,13 +39,13 @@ public static Rate GetLowestObjectRate(IEnumerable rates, List? in continue; } - if (rate.rate == null || lowestRate.rate == null) + if (rate.Price == null || lowestRate.Price == null) { throw new Exception("Could not compare null elements."); } - float rateValue = float.Parse(rate.rate); - float lowestRateValue = float.Parse(lowestRate.rate); + float rateValue = float.Parse(rate.Price); + float lowestRateValue = float.Parse(lowestRate.Price); // if this rate is lower than the lowest rate, set it to this rate if (!(rateValue < lowestRateValue)) @@ -75,7 +75,7 @@ public static Smartrate GetLowestShipmentSmartrate(IEnumerable smartr { Smartrate? lowestSmartrate = null; - foreach (Smartrate? smartrate in from smartrate in smartrates let smartrateAccuracy = smartrate.time_in_transit.GetBySmartrateAccuracy(deliveryAccuracy) where smartrateAccuracy != null where !(smartrateAccuracy > deliveryDays) select smartrate) + foreach (Smartrate? smartrate in from smartrate in smartrates let smartrateAccuracy = smartrate.TimeInTransit.GetBySmartrateAccuracy(deliveryAccuracy) where smartrateAccuracy != null where !(smartrateAccuracy > deliveryDays) select smartrate) { // if lowest smartrate is null, set it to this smartrate if (lowestSmartrate == null) @@ -85,7 +85,7 @@ public static Smartrate GetLowestShipmentSmartrate(IEnumerable smartr } // if this smartrate is lower than the lowest smartrate, set it to this smartrate - if (!(smartrate.rate < lowestSmartrate.rate)) + if (!(smartrate.Rate < lowestSmartrate.Rate)) { continue; } diff --git a/EasyPost/Models/API/Address.cs b/EasyPost/Models/API/Address.cs index 7d999ec14..0077ff6bd 100644 --- a/EasyPost/Models/API/Address.cs +++ b/EasyPost/Models/API/Address.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Threading.Tasks; using EasyPost._base; using EasyPost.Utilities.Annotations; @@ -13,43 +12,39 @@ public class Address : EasyPostObject #region JSON Properties [JsonProperty("carrier_facility")] - public string carrier_facility { get; set; } + public string? CarrierFacility { get; set; } [JsonProperty("city")] - public string city { get; set; } + public string? City { get; set; } [JsonProperty("company")] - public string company { get; set; } + public string? Company { get; set; } [JsonProperty("country")] - public string country { get; set; } + public string? Country { get; set; } [JsonProperty("email")] - public string email { get; set; } + public string? Email { get; set; } [JsonProperty("error")] - public string error { get; set; } + public string? Error { get; set; } [JsonProperty("federal_tax_id")] - public string federal_tax_id { get; set; } + public string? FederalTaxId { get; set; } [JsonProperty("message")] - public string message { get; set; } + public string? Message { get; set; } [JsonProperty("name")] - public string name { get; set; } + public string? Name { get; set; } [JsonProperty("phone")] - public string phone { get; set; } + public string? Phone { get; set; } [JsonProperty("residential")] - public bool? residential { get; set; } + public bool? Residential { get; set; } [JsonProperty("state")] - public string state { get; set; } + public string? State { get; set; } [JsonProperty("state_tax_id")] - public string state_tax_id { get; set; } + public string? StateTaxId { get; set; } [JsonProperty("street1")] - public string street1 { get; set; } + public string? Street1 { get; set; } [JsonProperty("street2")] - public string street2 { get; set; } + public string? Street2 { get; set; } [JsonProperty("verifications")] - public Verifications verifications { get; set; } - [JsonProperty("verify")] - public List verify { get; set; } - [JsonProperty("verify_strict")] - public List verify_strict { get; set; } + public Verifications? Verifications { get; set; } [JsonProperty("zip")] - public string zip { get; set; } + public string? Zip { get; set; } #endregion @@ -62,12 +57,12 @@ public class Address : EasyPostObject [CrudOperations.Update] public async Task
Verify() { - if (id == null) + if (Id == null) { throw new Exception("Missing id. Can't verify an address without an id."); } - await Update
(Method.Get, $"addresses/{id}/verify", null, "address"); + await Update
(Method.Get, $"addresses/{Id}/verify", null, "address"); return this; } diff --git a/EasyPost/Models/API/AddressCollection.cs b/EasyPost/Models/API/AddressCollection.cs index 50501ceae..f2c0b44ab 100644 --- a/EasyPost/Models/API/AddressCollection.cs +++ b/EasyPost/Models/API/AddressCollection.cs @@ -9,7 +9,7 @@ public class AddressCollection : Collection #region JSON Properties [JsonProperty("addresses")] - public List
addresses { get; set; } + public List
? Addresses { get; set; } #endregion } diff --git a/EasyPost/Models/API/ApiKey.cs b/EasyPost/Models/API/ApiKey.cs index 4adfd6ab9..1981b2384 100644 --- a/EasyPost/Models/API/ApiKey.cs +++ b/EasyPost/Models/API/ApiKey.cs @@ -8,7 +8,7 @@ public class ApiKey : EasyPostObject #region JSON Properties [JsonProperty("key")] - public string key { get; set; } + public string? Key { get; set; } #endregion } diff --git a/EasyPost/Models/API/ApiKeyCollection.cs b/EasyPost/Models/API/ApiKeyCollection.cs index e8946ebb4..5998e5b61 100644 --- a/EasyPost/Models/API/ApiKeyCollection.cs +++ b/EasyPost/Models/API/ApiKeyCollection.cs @@ -9,10 +9,10 @@ public class ApiKeyCollection : Collection #region JSON Properties [JsonProperty("children")] - public List? children { get; set; } + public List? Children { get; set; } [JsonProperty("keys")] - public List? keys { get; set; } + public List? Keys { get; set; } #endregion } diff --git a/EasyPost/Models/API/Batch.cs b/EasyPost/Models/API/Batch.cs index 58885cb0c..8ddb94e2e 100644 --- a/EasyPost/Models/API/Batch.cs +++ b/EasyPost/Models/API/Batch.cs @@ -13,23 +13,23 @@ public class Batch : EasyPostObject #region JSON Properties [JsonProperty("error")] - public string error { get; set; } + public string? Error { get; set; } [JsonProperty("label_url")] - public string label_url { get; set; } + public string? LabelUrl { get; set; } [JsonProperty("message")] - public string message { get; set; } + public string? Message { get; set; } [JsonProperty("num_shipments")] - public int num_shipments { get; set; } + public int? NumShipments { get; set; } [JsonProperty("reference")] - public string reference { get; set; } + public string? Reference { get; set; } [JsonProperty("scan_form")] - public ScanForm scan_form { get; set; } + public ScanForm? ScanForm { get; set; } [JsonProperty("shipments")] - public List shipments { get; set; } + public List? Shipments { get; set; } [JsonProperty("state")] - public string state { get; set; } + public string? State { get; set; } [JsonProperty("status")] - public Dictionary status { get; set; } + public Dictionary? Status { get; set; } #endregion @@ -42,7 +42,7 @@ public class Batch : EasyPostObject [CrudOperations.Update] public async Task AddShipments(Dictionary parameters) { - await Update(Method.Post, $"batches/{id}/add_shipments", parameters); + await Update(Method.Post, $"batches/{Id}/add_shipments", parameters); return this; } @@ -64,7 +64,7 @@ public async Task AddShipments(List shipmentsToAdd) [CrudOperations.Update] public async Task AddShipments(IEnumerable shipmentIds) { - List shipments = shipmentIds.Select(shipmentId => new Shipment { id = shipmentId }).ToList(); + List shipments = shipmentIds.Select(shipmentId => new Shipment { Id = shipmentId }).ToList(); return await AddShipments(shipments); } @@ -75,7 +75,7 @@ public async Task AddShipments(IEnumerable shipmentIds) [CrudOperations.Update] public async Task Buy() { - await Update(Method.Post, $"batches/{id}/buy"); + await Update(Method.Post, $"batches/{Id}/buy"); return this; } @@ -87,7 +87,7 @@ public async Task Buy() public async Task GenerateLabel(string fileFormat = "pdf") { Dictionary parameters = new Dictionary { { "file_format", fileFormat } }; - await Update(Method.Post, $"batches/{id}/label", parameters); + await Update(Method.Post, $"batches/{Id}/label", parameters); return this; } @@ -99,7 +99,7 @@ public async Task GenerateLabel(string fileFormat = "pdf") public async Task GenerateScanForm(string fileFormat = "pdf") { Dictionary parameters = new Dictionary { { "file_format", fileFormat } }; - await Update(Method.Post, $"batches/{id}/scan_form", parameters); + await Update(Method.Post, $"batches/{Id}/scan_form", parameters); return this; } @@ -110,7 +110,7 @@ public async Task GenerateScanForm(string fileFormat = "pdf") [CrudOperations.Update] public async Task RemoveShipments(Dictionary parameters) { - await Update(Method.Post, $"batches/{id}/remove_shipments", parameters); + await Update(Method.Post, $"batches/{Id}/remove_shipments", parameters); return this; } @@ -132,7 +132,7 @@ public async Task RemoveShipments(List shipmentsToAdd) [CrudOperations.Update] public async Task RemoveShipments(IEnumerable shipmentIds) { - List shipments = shipmentIds.Select(shipmentId => new Shipment { id = shipmentId }).ToList(); + List shipments = shipmentIds.Select(shipmentId => new Shipment { Id = shipmentId }).ToList(); return await RemoveShipments(shipments); } diff --git a/EasyPost/Models/API/BatchCollection.cs b/EasyPost/Models/API/BatchCollection.cs index 6ae0516b4..d7ec0e886 100644 --- a/EasyPost/Models/API/BatchCollection.cs +++ b/EasyPost/Models/API/BatchCollection.cs @@ -9,7 +9,7 @@ public class BatchCollection : Collection #region JSON Properties [JsonProperty("batches")] - public List batches { get; set; } + public List? Batches { get; set; } #endregion } diff --git a/EasyPost/Models/API/BatchShipment.cs b/EasyPost/Models/API/BatchShipment.cs index f5ce5d116..92bbdb3d9 100644 --- a/EasyPost/Models/API/BatchShipment.cs +++ b/EasyPost/Models/API/BatchShipment.cs @@ -8,11 +8,11 @@ public class BatchShipment : EasyPostObject #region JSON Properties [JsonProperty("batch_message")] - public string batch_message { get; set; } + public string? BatchMessage { get; set; } [JsonProperty("batch_status")] - public string batch_status { get; set; } + public string? BatchStatus { get; set; } [JsonProperty("tracking_code")] - public string tracking_code { get; set; } + public string? TrackingCode { get; set; } #endregion } diff --git a/EasyPost/Models/API/Beta/EndShipper.cs b/EasyPost/Models/API/Beta/EndShipper.cs index cee862e1c..586c7fa31 100644 --- a/EasyPost/Models/API/Beta/EndShipper.cs +++ b/EasyPost/Models/API/Beta/EndShipper.cs @@ -13,29 +13,29 @@ public class EndShipper : EasyPostObject #region JSON Properties [JsonProperty("city")] - public string city { get; set; } + public string? City { get; set; } [JsonProperty("company")] - public string company { get; set; } + public string? Company { get; set; } [JsonProperty("country")] - public string country { get; set; } + public string? Country { get; set; } [JsonProperty("email")] - public string email { get; set; } + public string? Email { get; set; } [JsonProperty("error")] - public string error { get; set; } + public string? Error { get; set; } [JsonProperty("message")] - public string message { get; set; } + public string? Message { get; set; } [JsonProperty("name")] - public string name { get; set; } + public string? Name { get; set; } [JsonProperty("phone")] - public string phone { get; set; } + public string? Phone { get; set; } [JsonProperty("state")] - public string state { get; set; } + public string? State { get; set; } [JsonProperty("street1")] - public string street1 { get; set; } + public string? Street1 { get; set; } [JsonProperty("street2")] - public string street2 { get; set; } + public string? Street2 { get; set; } [JsonProperty("zip")] - public string zip { get; set; } + public string? Zip { get; set; } #endregion @@ -51,7 +51,7 @@ public async Task Update(Dictionary parameters) parameters = parameters.Wrap("address"); // EndShipper needs Put, not Patch - await Update(Method.Put, $"end_shippers/{id}", parameters, overrideApiVersion: ApiVersion.Beta); + await Update(Method.Put, $"end_shippers/{Id}", parameters, overrideApiVersion: ApiVersion.Beta); return this; } diff --git a/EasyPost/Models/API/Brand.cs b/EasyPost/Models/API/Brand.cs index acd3ce2e5..3f5ba33e0 100644 --- a/EasyPost/Models/API/Brand.cs +++ b/EasyPost/Models/API/Brand.cs @@ -8,23 +8,23 @@ public class Brand : EasyPostObject #region JSON Properties [JsonProperty("ad")] - public string ad { get; set; } + public string? Ad { get; set; } [JsonProperty("ad_href")] - public string ad_href { get; set; } + public string? AdHref { get; set; } [JsonProperty("background_color")] - public string background_color { get; set; } + public string? BackgroundColor { get; set; } [JsonProperty("color")] - public string color { get; set; } + public string? Color { get; set; } [JsonProperty("logo")] - public string logo { get; set; } + public string? Logo { get; set; } [JsonProperty("logo_href")] - public string logo_href { get; set; } + public string? LogoHref { get; set; } [JsonProperty("name")] - public string name { get; set; } + public string? Name { get; set; } [JsonProperty("theme")] - public string theme { get; set; } + public string? Theme { get; set; } [JsonProperty("user_id")] - public string user_id { get; set; } + public string? UserId { get; set; } #endregion } diff --git a/EasyPost/Models/API/CarbonOffset.cs b/EasyPost/Models/API/CarbonOffset.cs index 0b84fdb15..ea9c2c9fe 100644 --- a/EasyPost/Models/API/CarbonOffset.cs +++ b/EasyPost/Models/API/CarbonOffset.cs @@ -7,13 +7,13 @@ public class CarbonOffset #region JSON Properties [JsonProperty("currency")] - public string currency { get; set; } + public string? Currency { get; set; } [JsonProperty("grams")] - public int grams { get; set; } + public int? Grams { get; set; } [JsonProperty("object")] - public string @object { get; set; } + public string? Object { get; set; } [JsonProperty("price")] - public string price { get; set; } + public string? Price { get; set; } #endregion } diff --git a/EasyPost/Models/API/CarrierAccount.cs b/EasyPost/Models/API/CarrierAccount.cs index 0afb437d1..2d196d6b7 100644 --- a/EasyPost/Models/API/CarrierAccount.cs +++ b/EasyPost/Models/API/CarrierAccount.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using EasyPost._base; using EasyPost.Utilities.Annotations; @@ -12,19 +13,20 @@ public class CarrierAccount : EasyPostObject #region JSON Properties [JsonProperty("billing_type")] - public string billing_type { get; set; } + public string? BillingType { get; set; } [JsonProperty("credentials")] - public Dictionary credentials { get; set; } + public Dictionary? Credentials { get; set; } [JsonProperty("description")] - public string description { get; set; } + public string? Description { get; set; } [JsonProperty("readable")] - public string readable { get; set; } + public string? Readable { get; set; } [JsonProperty("reference")] - public string reference { get; set; } + public string? Reference { get; set; } [JsonProperty("test_credentials")] - public Dictionary test_credentials { get; set; } + [SuppressMessage("ReSharper", "InconsistentNaming")] + public Dictionary? TestCredentials { get; set; } [JsonProperty("type")] - public string type { get; set; } + public string? Type { get; set; } #endregion @@ -37,7 +39,7 @@ public class CarrierAccount : EasyPostObject [CrudOperations.Update] public async Task Update(Dictionary parameters) { - await Update(Method.Patch, $"carrier_accounts/{id}", parameters); + await Update(Method.Patch, $"carrier_accounts/{Id}", parameters); return this; } @@ -48,7 +50,7 @@ public async Task Update(Dictionary parameters) [CrudOperations.Delete] public async Task Delete() { - await DeleteNoResponse($"carrier_accounts/{id}"); + await DeleteNoResponse($"carrier_accounts/{Id}"); } #endregion diff --git a/EasyPost/Models/API/CarrierDetail.cs b/EasyPost/Models/API/CarrierDetail.cs index 64643f21b..78b60db09 100644 --- a/EasyPost/Models/API/CarrierDetail.cs +++ b/EasyPost/Models/API/CarrierDetail.cs @@ -8,23 +8,23 @@ public class CarrierDetail #region JSON Properties [JsonProperty("alternate_identifier")] - public string alternate_identifier { get; set; } + public string? AlternateIdentifier { get; set; } [JsonProperty("container_type")] - public string container_type { get; set; } + public string? ContainerType { get; set; } [JsonProperty("destination_location")] - public string destination_location { get; set; } + public string? DestinationLocation { get; set; } [JsonProperty("est_delivery_date_local")] - public string est_delivery_date_local { get; set; } + public string? EstDeliveryDateLocal { get; set; } [JsonProperty("est_delivery_time_local")] - public string est_delivery_time_local { get; set; } + public string? EstDeliveryTimeLocal { get; set; } [JsonProperty("guaranteed_delivery_date")] - public DateTime? guaranteed_delivery_date { get; set; } + public DateTime? GuaranteedDeliveryDate { get; set; } [JsonProperty("initial_delivery_attempt")] - public DateTime? initial_delivery_attempt { get; set; } + public DateTime? InitialDeliveryAttempt { get; set; } [JsonProperty("origin_location")] - public string origin_location { get; set; } + public string? OriginLocation { get; set; } [JsonProperty("service")] - public string service { get; set; } + public string? Service { get; set; } #endregion } diff --git a/EasyPost/Models/API/CarrierType.cs b/EasyPost/Models/API/CarrierType.cs index 22546791e..8443bf222 100644 --- a/EasyPost/Models/API/CarrierType.cs +++ b/EasyPost/Models/API/CarrierType.cs @@ -9,13 +9,13 @@ public class CarrierType : EasyPostObject #region JSON Properties [JsonProperty("fields")] - public Dictionary fields { get; set; } + public Dictionary? Fields { get; set; } [JsonProperty("logo")] - public string logo { get; set; } + public string? Logo { get; set; } [JsonProperty("readable")] - public string readable { get; set; } + public string? Readable { get; set; } [JsonProperty("type")] - public string type { get; set; } + public string? Type { get; set; } #endregion } diff --git a/EasyPost/Models/API/CustomsInfo.cs b/EasyPost/Models/API/CustomsInfo.cs index 7baf6c686..a4ab5f929 100644 --- a/EasyPost/Models/API/CustomsInfo.cs +++ b/EasyPost/Models/API/CustomsInfo.cs @@ -9,25 +9,25 @@ public class CustomsInfo : EasyPostObject #region JSON Properties [JsonProperty("contents_explanation")] - public string contents_explanation { get; set; } + public string? ContentsExplanation { get; set; } [JsonProperty("contents_type")] - public string contents_type { get; set; } + public string? ContentsType { get; set; } [JsonProperty("customs_certify")] - public string customs_certify { get; set; } + public string? CustomsCertify { get; set; } [JsonProperty("customs_items")] - public List customs_items { get; set; } + public List? CustomsItems { get; set; } [JsonProperty("customs_signer")] - public string customs_signer { get; set; } + public string? CustomsSigner { get; set; } [JsonProperty("declaration")] - public string declaration { get; set; } + public string? Declaration { get; set; } [JsonProperty("eel_pfc")] - public string eel_pfc { get; set; } + public string? EelPfc { get; set; } [JsonProperty("non_delivery_option")] - public string non_delivery_option { get; set; } + public string? NonDeliveryOption { get; set; } [JsonProperty("restriction_comments")] - public string restriction_comments { get; set; } + public string? RestrictionComments { get; set; } [JsonProperty("restriction_type")] - public string restriction_type { get; set; } + public string? RestrictionType { get; set; } #endregion } diff --git a/EasyPost/Models/API/CustomsItem.cs b/EasyPost/Models/API/CustomsItem.cs index 2541f6d3f..ee8730ca0 100644 --- a/EasyPost/Models/API/CustomsItem.cs +++ b/EasyPost/Models/API/CustomsItem.cs @@ -8,21 +8,21 @@ public class CustomsItem : EasyPostObject #region JSON Properties [JsonProperty("code")] - public string code { get; set; } + public string? Code { get; set; } [JsonProperty("currency")] - public string currency { get; set; } + public string? Currency { get; set; } [JsonProperty("description")] - public string description { get; set; } + public string? Description { get; set; } [JsonProperty("hs_tariff_number")] - public string hs_tariff_number { get; set; } + public string? HsTariffNumber { get; set; } [JsonProperty("origin_country")] - public string origin_country { get; set; } + public string? OriginCountry { get; set; } [JsonProperty("quantity")] - public int quantity { get; set; } + public int? Quantity { get; set; } [JsonProperty("value")] - public double? value { get; set; } + public double? Value { get; set; } [JsonProperty("weight")] - public double weight { get; set; } + public double? Weight { get; set; } #endregion } diff --git a/EasyPost/Models/API/Error.cs b/EasyPost/Models/API/Error.cs index 7064722fe..f2e11e950 100644 --- a/EasyPost/Models/API/Error.cs +++ b/EasyPost/Models/API/Error.cs @@ -9,15 +9,15 @@ public class Error : EasyPostObject #region JSON Properties [JsonProperty("code")] - public string code { get; set; } + public string? Code { get; set; } [JsonProperty("errors")] - public List errors { get; set; } + public List? Errors { get; set; } [JsonProperty("field")] - public string field { get; set; } + public string? Field { get; set; } [JsonProperty("message")] - public string message { get; set; } + public string? Message { get; set; } [JsonProperty("suggestion")] - public string suggestion { get; set; } + public string? Suggestion { get; set; } #endregion } diff --git a/EasyPost/Models/API/Event.cs b/EasyPost/Models/API/Event.cs index 33eab413c..23759a7d3 100644 --- a/EasyPost/Models/API/Event.cs +++ b/EasyPost/Models/API/Event.cs @@ -9,17 +9,17 @@ public class Event : EasyPostObject #region JSON Properties [JsonProperty("completed_urls")] - public List completed_urls { get; set; } + public List? CompletedUrls { get; set; } [JsonProperty("description")] - public string description { get; set; } + public string? Description { get; set; } [JsonProperty("pending_urls")] - public List pending_urls { get; set; } + public List? PendingUrls { get; set; } [JsonProperty("previous_attributes")] - public Dictionary previous_attributes { get; set; } + public Dictionary? PreviousAttributes { get; set; } [JsonProperty("result")] - public Dictionary result { get; set; } + public Dictionary? Result { get; set; } [JsonProperty("status")] - public string status { get; set; } + public string? Status { get; set; } #endregion } diff --git a/EasyPost/Models/API/EventCollection.cs b/EasyPost/Models/API/EventCollection.cs index ba58f060d..45b709eee 100644 --- a/EasyPost/Models/API/EventCollection.cs +++ b/EasyPost/Models/API/EventCollection.cs @@ -9,7 +9,7 @@ public class EventCollection : Collection #region JSON Properties [JsonProperty("events")] - public List events { get; set; } + public List? Events { get; set; } #endregion } diff --git a/EasyPost/Models/API/Fee.cs b/EasyPost/Models/API/Fee.cs index cee39f3c1..6e18918cd 100644 --- a/EasyPost/Models/API/Fee.cs +++ b/EasyPost/Models/API/Fee.cs @@ -8,13 +8,13 @@ public class Fee : EasyPostObject #region JSON Properties [JsonProperty("amount")] - public double amount { get; set; } + public double? Amount { get; set; } [JsonProperty("charged")] - public bool charged { get; set; } + public bool? Charged { get; set; } [JsonProperty("refunded")] - public bool refunded { get; set; } + public bool? Refunded { get; set; } [JsonProperty("type")] - public string type { get; set; } + public string? Type { get; set; } #endregion } diff --git a/EasyPost/Models/API/Form.cs b/EasyPost/Models/API/Form.cs index 56bfe4154..c55289b85 100644 --- a/EasyPost/Models/API/Form.cs +++ b/EasyPost/Models/API/Form.cs @@ -8,11 +8,11 @@ public class Form : EasyPostObject #region JSON Properties [JsonProperty("form_type")] - public string form_type { get; set; } + public string? FormType { get; set; } [JsonProperty("form_url")] - public string form_url { get; set; } + public string? FormUrl { get; set; } [JsonProperty("submitted_electronically")] - public bool submitted_electronically { get; set; } + public bool? SubmittedElectronically { get; set; } #endregion } diff --git a/EasyPost/Models/API/Insurance.cs b/EasyPost/Models/API/Insurance.cs index edf7cc1b1..7bf43ad1b 100644 --- a/EasyPost/Models/API/Insurance.cs +++ b/EasyPost/Models/API/Insurance.cs @@ -12,27 +12,27 @@ public class Insurance : EasyPostObject #region JSON Properties [JsonProperty("amount")] - public string amount { get; set; } + public string? Amount { get; set; } [JsonProperty("from_address")] - public Address from_address { get; set; } + public Address? FromAddress { get; set; } [JsonProperty("messages")] - public List messages { get; set; } + public List? Messages { get; set; } [JsonProperty("provider")] - public string provider { get; set; } + public string? Provider { get; set; } [JsonProperty("provider_id")] - public string provider_id { get; set; } + public string? ProviderId { get; set; } [JsonProperty("reference")] - public string reference { get; set; } + public string? Reference { get; set; } [JsonProperty("shipment_id")] - public string shipment_id { get; set; } + public string? ShipmentId { get; set; } [JsonProperty("status")] - public string status { get; set; } + public string? Status { get; set; } [JsonProperty("to_address")] - public Address to_address { get; set; } + public Address ToAddress { get; set; } [JsonProperty("tracker")] - public Tracker tracker { get; set; } + public Tracker Tracker { get; set; } [JsonProperty("tracking_code")] - public string tracking_code { get; set; } + public string? TrackingCode { get; set; } #endregion @@ -46,7 +46,7 @@ public class Insurance : EasyPostObject [CrudOperations.Update] public async Task Refresh(Dictionary? parameters = null) { - await Update(Method.Patch, $"insurances/{id}", parameters); + await Update(Method.Patch, $"insurances/{Id}", parameters); return this; } diff --git a/EasyPost/Models/API/InsuranceCollection.cs b/EasyPost/Models/API/InsuranceCollection.cs index f480d7f46..4a8e07e4c 100644 --- a/EasyPost/Models/API/InsuranceCollection.cs +++ b/EasyPost/Models/API/InsuranceCollection.cs @@ -9,7 +9,7 @@ public class InsuranceCollection : Collection #region JSON Properties [JsonProperty("insurances")] - public List insurances { get; set; } + public List? Insurances { get; set; } #endregion } diff --git a/EasyPost/Models/API/Message.cs b/EasyPost/Models/API/Message.cs index 133c8443f..abe044756 100644 --- a/EasyPost/Models/API/Message.cs +++ b/EasyPost/Models/API/Message.cs @@ -8,13 +8,13 @@ public class Message : EasyPostObject #region JSON Properties [JsonProperty("carrier")] - public string carrier { get; set; } + public string? Carrier { get; set; } [JsonProperty("carrier_account_id")] - public string carrier_account_id { get; set; } + public string? CarrierAccountId { get; set; } [JsonProperty("message")] - public string message { get; set; } + public string? Text { get; set; } // "Message" is the enclosing class name [JsonProperty("type")] - public string type { get; set; } + public string? Type { get; set; } #endregion } diff --git a/EasyPost/Models/API/Options.cs b/EasyPost/Models/API/Options.cs index 3f11c5581..4f8121e54 100644 --- a/EasyPost/Models/API/Options.cs +++ b/EasyPost/Models/API/Options.cs @@ -10,173 +10,173 @@ public class Options : EasyPostObject #region JSON Properties [JsonProperty("additional_handling")] - public bool? additional_handling { get; set; } + public bool? AdditionalHandling { get; set; } [JsonProperty("address_validation_level")] - public string address_validation_level { get; set; } + public string? AddressValidationLevel { get; set; } [JsonProperty("alcohol")] - public bool? alcohol { get; set; } + public bool? Alcohol { get; set; } + [JsonProperty("billing_ref")] + public string? BillingRef { get; set; } [JsonProperty("bill_receiver_account")] - public string bill_receiver_account { get; set; } + public string? BillReceiverAccount { get; set; } [JsonProperty("bill_receiver_postal_code")] - public string bill_receiver_postal_code { get; set; } + public string? BillReceiverPostalCode { get; set; } [JsonProperty("bill_third_party_account")] - public string bill_third_party_account { get; set; } + public string? BillThirdPartyAccount { get; set; } [JsonProperty("bill_third_party_country")] - public string bill_third_party_country { get; set; } + public string? BillThirdPartyCountry { get; set; } [JsonProperty("bill_third_party_postal_code")] - public string bill_third_party_postal_code { get; set; } - [JsonProperty("billing_ref")] - public string billing_ref { get; set; } + public string? BillThirdPartyPostalCode { get; set; } [JsonProperty("by_drone")] - public bool? by_drone { get; set; } + public bool? ByDrone { get; set; } [JsonProperty("carbon_neutral")] - public bool? carbon_neutral { get; set; } + public bool? CarbonNeutral { get; set; } [JsonProperty("carrier_insurance_amount")] - public string carrier_insurance_amount { get; set; } + public string? CarrierInsuranceAmount { get; set; } [JsonProperty("carrier_notification_email")] - public string carrier_notification_email { get; set; } + public string? CarrierNotificationEmail { get; set; } [JsonProperty("carrier_notification_sms")] - public string carrier_notification_sms { get; set; } + public string? CarrierNotificationSms { get; set; } [JsonProperty("certified_mail")] - public bool? certified_mail { get; set; } + public bool? CertifiedMail { get; set; } [JsonProperty("cod_address_id")] - public string cod_address_id { get; set; } + public string? CodAddressId { get; set; } [JsonProperty("cod_amount")] - public string cod_amount { get; set; } + public string? CodAmount { get; set; } [JsonProperty("cod_method")] - public string cod_method { get; set; } + public string? CodMethod { get; set; } [JsonProperty("commercial_invoice_format")] - public string commercial_invoice_format { get; set; } + public string? CommercialInvoiceFormat { get; set; } [JsonProperty("commercial_invoice_letterhead")] - public string commercial_invoice_letterhead { get; set; } + public string? CommercialInvoiceLetterhead { get; set; } [JsonProperty("commercial_invoice_signature")] - public string commercial_invoice_signature { get; set; } + public string? CommercialInvoiceSignature { get; set; } [JsonProperty("commercial_invoice_size")] - public string commercial_invoice_size { get; set; } + public string? CommercialInvoiceSize { get; set; } [JsonProperty("cost_center")] - public string cost_center { get; set; } + public string? CostCenter { get; set; } [JsonProperty("currency")] - public string currency { get; set; } + public string? Currency { get; set; } [JsonProperty("customs_broker_address_id")] - public string customs_broker_address_id { get; set; } + public string? CustomsBrokerAddressId { get; set; } [JsonProperty("customs_include_shipping")] - public string customs_include_shipping { get; set; } + public string? CustomsIncludeShipping { get; set; } [JsonProperty("declared_value")] - public double? declared_value { get; set; } + public double? DeclaredValue { get; set; } [JsonProperty("delivered_duty_paid")] - public bool? delivered_duty_paid { get; set; } + public bool? DeliveredDutyPaid { get; set; } [JsonProperty("delivery_confirmation")] - public string delivery_confirmation { get; set; } + public string? DeliveryConfirmation { get; set; } [JsonProperty("delivery_time_preference")] - public string delivery_time_preference { get; set; } + public string? DeliveryTimePreference { get; set; } [JsonProperty("dropoff_type")] - public string dropoff_type { get; set; } + public string? DropoffType { get; set; } [JsonProperty("dry_ice")] - public bool? dry_ice { get; set; } + public bool? DryIce { get; set; } [JsonProperty("dry_ice_medical")] - public string dry_ice_medical { get; set; } + public string? DryIceMedical { get; set; } [JsonProperty("dry_ice_weight")] - public string dry_ice_weight { get; set; } + public string? DryIceWeight { get; set; } [JsonProperty("duty_payment_account")] - public string duty_payment_account { get; set; } + public string? DutyPaymentAccount { get; set; } [JsonProperty("endorsement")] - public string endorsement { get; set; } + public string? Endorsement { get; set; } [JsonProperty("freight_charge")] - public string freight_charge { get; set; } + public string? FreightCharge { get; set; } [JsonProperty("group")] - public string group { get; set; } + public string? Group { get; set; } [JsonProperty("handling_instructions")] - public string handling_instructions { get; set; } + public string? HandlingInstructions { get; set; } [JsonProperty("hazmat")] - public string hazmat { get; set; } + public string? Hazmat { get; set; } [JsonProperty("hold_for_pickup")] - public bool? hold_for_pickup { get; set; } + public bool? HoldForPickup { get; set; } [JsonProperty("image_format")] - public string image_format { get; set; } + public string? ImageFormat { get; set; } + [JsonProperty("importer_address_id")] + public string? ImporterAddressId { get; set; } [JsonProperty("import_federal_tax_id")] - public string import_federal_tax_id { get; set; } + public string? ImportFederalTaxId { get; set; } [JsonProperty("import_state_tax_id")] - public string import_state_tax_id { get; set; } - [JsonProperty("importer_address_id")] - public string importer_address_id { get; set; } + public string? ImportStateTaxId { get; set; } [JsonProperty("incoterm")] - public string incoterm { get; set; } + public string? Incoterm { get; set; } [JsonProperty("invoice_number")] - public string invoice_number { get; set; } + public string? InvoiceNumber { get; set; } [JsonProperty("label_date")] - public DateTime? label_date { get; set; } + public DateTime? LabelDate { get; set; } [JsonProperty("label_format")] - public string label_format { get; set; } + public string? LabelFormat { get; set; } [JsonProperty("label_size")] - public string label_size { get; set; } + public string? LabelSize { get; set; } [JsonProperty("license_number")] - public string license_number { get; set; } + public string? LicenseNumber { get; set; } [JsonProperty("machinable")] - public string machinable { get; set; } + public string? Machinable { get; set; } [JsonProperty("neutral_delivery")] - public bool? neutral_delivery { get; set; } + public bool? NeutralDelivery { get; set; } [JsonProperty("non_contact")] - public bool? non_contract { get; set; } + public bool? NonContract { get; set; } [JsonProperty("overlabel_construct_code")] - public string overlabel_construct_code { get; set; } + public string? OverlabelConstructCode { get; set; } [JsonProperty("overlabel_construct_tracking_number")] - public string overlabel_original_tracking_number { get; set; } + public string? OverlabelOriginalTrackingNumber { get; set; } [JsonProperty("parties_to_transaction_are_related")] - public string parties_to_transaction_are_related { get; set; } + public string? PartiesToTransactionAreRelated { get; set; } [JsonProperty("payment")] - public Dictionary payment { get; set; } + public Dictionary? Payment { get; set; } [JsonProperty("peel_and_return")] - public bool peel_and_return { get; set; } + public bool? PeelAndReturn { get; set; } [JsonProperty("pickup_min_datetime")] - public DateTime? pickup_min_datetime { get; set; } + public DateTime? PickupMinDatetime { get; set; } [JsonProperty("po_sort")] - public string po_sort { get; set; } + public string? PoSort { get; set; } [JsonProperty("postage_label_inline")] - public bool? postage_label_inline { get; set; } + public bool? PostageLabelInline { get; set; } [JsonProperty("print_custom")] - public List> print_custom { get; set; } + public List>? PrintCustom { get; set; } [JsonProperty("print_custom_1")] - public string print_custom_1 { get; set; } + public string? PrintCustom1 { get; set; } [JsonProperty("print_custom_1_barcode")] - public bool? print_custom_1_barcode { get; set; } + public bool? PrintCustom1Barcode { get; set; } [JsonProperty("print_custom_1_code")] - public string print_custom_1_code { get; set; } + public string? PrintCustom1Code { get; set; } [JsonProperty("print_custom_2")] - public string print_custom_2 { get; set; } + public string? PrintCustom2 { get; set; } [JsonProperty("print_custom_2_barcode")] - public bool? print_custom_2_barcode { get; set; } + public bool? PrintCustom2Barcode { get; set; } [JsonProperty("print_custom_2_code")] - public string print_custom_2_code { get; set; } + public string? PrintCustom2Code { get; set; } [JsonProperty("print_custom_3")] - public string print_custom_3 { get; set; } + public string? PrintCustom3 { get; set; } [JsonProperty("print_custom_3_barcode")] - public bool? print_custom_3_barcode { get; set; } + public bool? PrintCustom3Barcode { get; set; } [JsonProperty("print_custom_3_code")] - public string print_custom_3_code { get; set; } + public string? PrintCustom3Code { get; set; } [JsonProperty("print_rate")] - public bool? print_rate { get; set; } + public bool? PrintRate { get; set; } [JsonProperty("receiver_liquor_license")] - public string receiver_liquor_license { get; set; } + public string? ReceiverLiquorLicense { get; set; } [JsonProperty("registered_mail")] - public bool? registered_mail { get; set; } + public bool? RegisteredMail { get; set; } [JsonProperty("registered_mail_amount")] - public double? registered_mail_amount { get; set; } + public double? RegisteredMailAmount { get; set; } [JsonProperty("return_receipt")] - public bool? return_receipt { get; set; } + public bool? ReturnReceipt { get; set; } [JsonProperty("return_service")] - public string return_service { get; set; } + public string? ReturnService { get; set; } [JsonProperty("saturday_delivery")] - public bool? saturday_delivery { get; set; } + public bool? SaturdayDelivery { get; set; } [JsonProperty("settlement_method")] - public string settlement_method { get; set; } + public string? SettlementMethod { get; set; } [JsonProperty("smartpost_hub")] - public string smartpost_hub { get; set; } + public string? SmartpostHub { get; set; } [JsonProperty("smartpost_manifest")] - public string smartpost_manifest { get; set; } + public string? SmartpostManifest { get; set; } [JsonProperty("special_rates_eligibility")] - public string special_rates_eligibility { get; set; } + public string? SpecialRatesEligibility { get; set; } [JsonProperty("suppress_etd")] - public bool? suppress_etd { get; set; } + public bool? SuppressEtd { get; set; } #endregion } diff --git a/EasyPost/Models/API/Order.cs b/EasyPost/Models/API/Order.cs index 5dfaa084d..3934a724f 100644 --- a/EasyPost/Models/API/Order.cs +++ b/EasyPost/Models/API/Order.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Threading.Tasks; using EasyPost._base; -using EasyPost.Calculation; using EasyPost.Utilities.Annotations; using Newtonsoft.Json; using RestSharp; @@ -14,29 +13,29 @@ public class Order : EasyPostObject #region JSON Properties [JsonProperty("buyer_address")] - public Address buyer_address { get; set; } + public Address? BuyerAddress { get; set; } [JsonProperty("carrier_accounts")] - public List carrier_accounts { get; set; } + public List? CarrierAccounts { get; set; } [JsonProperty("customs_info")] - public CustomsInfo customs_info { get; set; } + public CustomsInfo? CustomsInfo { get; set; } [JsonProperty("from_address")] - public Address from_address { get; set; } + public Address? FromAddress { get; set; } [JsonProperty("is_return")] - public bool? is_return { get; set; } + public bool? IsReturn { get; set; } [JsonProperty("messages")] - public List messages { get; set; } + public List? Messages { get; set; } [JsonProperty("rates")] - public List rates { get; set; } + public List? Rates { get; set; } [JsonProperty("reference")] - public string reference { get; set; } + public string? Reference { get; set; } [JsonProperty("return_address")] - public Address return_address { get; set; } + public Address? ReturnAddress { get; set; } [JsonProperty("service")] - public string service { get; set; } + public string? Service { get; set; } [JsonProperty("shipments")] - public List shipments { get; set; } + public List? Shipments { get; set; } [JsonProperty("to_address")] - public Address to_address { get; set; } + public Address? ToAddress { get; set; } #endregion @@ -50,7 +49,7 @@ public class Order : EasyPostObject [CrudOperations.Update] public async Task Buy(string withCarrier, string withService) { - if (id == null) + if (Id == null) { throw new Exception("id is null"); } @@ -61,7 +60,7 @@ public async Task Buy(string withCarrier, string withService) { "service", withService } }; - await Update(Method.Post, $"orders/{id}/buy", parameters); + await Update(Method.Post, $"orders/{Id}/buy", parameters); return this; } @@ -72,11 +71,11 @@ public async Task Buy(string withCarrier, string withService) [CrudOperations.Update] public async Task Buy(Rate rate) { - if (rate.carrier != null) + if (rate.Carrier != null) { - if (rate.service != null) + if (rate.Service != null) { - await Buy(rate.carrier, rate.service); + await Buy(rate.Carrier, rate.Service); } else { @@ -96,12 +95,12 @@ public async Task Buy(Rate rate) public async Task GetRates() { // TODO: Should this return the updated Order object? - if (id == null) + if (Id == null) { throw new Exception("id is null"); } - await Update(Method.Get, $"orders/{id}/rates"); + await Update(Method.Get, $"orders/{Id}/rates"); } #endregion @@ -116,12 +115,12 @@ public async Task GetRates() /// Lowest EasyPost.Rate object instance. public Rate LowestRate(List? includeCarriers = null, List? includeServices = null, List? excludeCarriers = null, List? excludeServices = null) { - if (rates == null) + if (Rates == null) { throw new Exception("Rates not populated. Call GetRates() first."); } - return Rates.GetLowestObjectRate(rates, includeCarriers, includeServices, excludeCarriers, excludeServices); + return Calculation.Rates.GetLowestObjectRate(Rates, includeCarriers, includeServices, excludeCarriers, excludeServices); } } } diff --git a/EasyPost/Models/API/Parcel.cs b/EasyPost/Models/API/Parcel.cs index bc33b1b2c..27cc929b8 100644 --- a/EasyPost/Models/API/Parcel.cs +++ b/EasyPost/Models/API/Parcel.cs @@ -8,15 +8,15 @@ public class Parcel : EasyPostObject #region JSON Properties [JsonProperty("height")] - public double? height { get; set; } + public double? Height { get; set; } [JsonProperty("length")] - public double? length { get; set; } + public double? Length { get; set; } [JsonProperty("predefined_package")] - public string predefined_package { get; set; } + public string? PredefinedPackage { get; set; } [JsonProperty("weight")] - public double weight { get; set; } + public double? Weight { get; set; } [JsonProperty("width")] - public double? width { get; set; } + public double? Width { get; set; } #endregion } diff --git a/EasyPost/Models/API/PaymentMethod.cs b/EasyPost/Models/API/PaymentMethod.cs index af4ac51a2..b0847d057 100644 --- a/EasyPost/Models/API/PaymentMethod.cs +++ b/EasyPost/Models/API/PaymentMethod.cs @@ -14,31 +14,31 @@ public class PaymentMethod : EasyPostObject // bank_account [JsonProperty("bank_name")] - public string bank_name { get; set; } + public string? BankName { get; set; } // credit_card [JsonProperty("brand")] - public string brand { get; set; } + public string? Brand { get; set; } // bank_account [JsonProperty("country")] - public string country { get; set; } + public string? Country { get; set; } // both [JsonProperty("disabled_at")] - public string disabled_at { get; set; } + public string? DisabledAt { get; set; } // credit_card [JsonProperty("exp_month")] - public int exp_month { get; set; } + public int? ExpMonth { get; set; } // credit_card [JsonProperty("exp_year")] - public int exp_year { get; set; } + public int? ExpYear { get; set; } // both [JsonProperty("last4")] - public string last4 { get; set; } + public string? Last4 { get; set; } // credit_card [JsonProperty("name")] - public string name { get; set; } + public string? Name { get; set; } // bank_account [JsonProperty("verified")] - public bool verified { get; set; } + public bool? Verified { get; set; } #endregion @@ -59,17 +59,17 @@ public PaymentMethodType? Type get { PaymentMethodType? type = null; - if (id == null) + if (Id == null) { return null; } - if (id.StartsWith("card_")) + if (Id.StartsWith("card_")) { type = PaymentMethodType.CreditCard; } - else if (id.StartsWith("bank_")) + else if (Id.StartsWith("bank_")) { type = PaymentMethodType.BankAccount; } diff --git a/EasyPost/Models/API/PaymentMethodsSummary.cs b/EasyPost/Models/API/PaymentMethodsSummary.cs index 4e3789c24..6618cca1c 100644 --- a/EasyPost/Models/API/PaymentMethodsSummary.cs +++ b/EasyPost/Models/API/PaymentMethodsSummary.cs @@ -11,9 +11,9 @@ public class PaymentMethodsSummary : EasyPostObject #region JSON Properties [JsonProperty("primary_payment_method")] - public PaymentMethod primary_payment_method { get; set; } + public PaymentMethod PrimaryPaymentMethod { get; set; } [JsonProperty("secondary_payment_method")] - public PaymentMethod secondary_payment_method { get; set; } + public PaymentMethod SecondaryPaymentMethod { get; set; } #endregion } diff --git a/EasyPost/Models/API/Pickup.cs b/EasyPost/Models/API/Pickup.cs index 90351e16b..d8cff5209 100644 --- a/EasyPost/Models/API/Pickup.cs +++ b/EasyPost/Models/API/Pickup.cs @@ -14,29 +14,29 @@ public class Pickup : EasyPostObject #region JSON Properties [JsonProperty("address")] - public Address address { get; set; } + public Address? Address { get; set; } [JsonProperty("carrier_accounts")] - public List carrier_accounts { get; set; } + public List? CarrierAccounts { get; set; } [JsonProperty("confirmation")] - public string confirmation { get; set; } + public string? Confirmation { get; set; } [JsonProperty("instructions")] - public string instructions { get; set; } + public string? Instructions { get; set; } [JsonProperty("is_account_address")] - public bool is_account_address { get; set; } + public bool? IsAccountAddress { get; set; } [JsonProperty("max_datetime")] - public DateTime max_datetime { get; set; } + public DateTime MaxDatetime { get; set; } [JsonProperty("messages")] - public List messages { get; set; } + public List? Messages { get; set; } [JsonProperty("min_datetime")] - public DateTime min_datetime { get; set; } + public DateTime MinDatetime { get; set; } [JsonProperty("name")] - public string name { get; set; } + public string? Name { get; set; } [JsonProperty("pickup_rates")] - public List pickup_rates { get; set; } + public List? PickupRates { get; set; } [JsonProperty("reference")] - public string reference { get; set; } + public string? Reference { get; set; } [JsonProperty("status")] - public string status { get; set; } + public string? Status { get; set; } #endregion @@ -46,7 +46,7 @@ public class Pickup : EasyPostObject /// List of Rate objects. private IEnumerable Rates { - get { return pickup_rates != null ? pickup_rates.Cast().ToList() : new List(); } + get { return PickupRates != null ? PickupRates.Cast().ToList() : new List(); } } #region CRUD Operations @@ -59,7 +59,7 @@ private IEnumerable Rates [CrudOperations.Update] public async Task Buy(string withCarrier, string withService) { - if (id == null) + if (Id == null) { throw new Exception("id is required"); } @@ -70,7 +70,7 @@ public async Task Buy(string withCarrier, string withService) { "service", withService } }; - await Update(Method.Post, $"pickups/{id}/buy", parameters); + await Update(Method.Post, $"pickups/{Id}/buy", parameters); return this; } @@ -80,12 +80,12 @@ public async Task Buy(string withCarrier, string withService) [CrudOperations.Update] public async Task Cancel() { - if (id == null) + if (Id == null) { throw new Exception("id is required"); } - await Update(Method.Post, $"pickups/{id}/cancel"); + await Update(Method.Post, $"pickups/{Id}/cancel"); return this; } diff --git a/EasyPost/Models/API/PickupRate.cs b/EasyPost/Models/API/PickupRate.cs index 74e5bb7ea..cbf64f72f 100644 --- a/EasyPost/Models/API/PickupRate.cs +++ b/EasyPost/Models/API/PickupRate.cs @@ -7,7 +7,7 @@ public class PickupRate : Rate #region JSON Properties [JsonProperty("pickup_id")] - public string pickup_id { get; set; } + public string? PickupId { get; set; } #endregion diff --git a/EasyPost/Models/API/PostageLabel.cs b/EasyPost/Models/API/PostageLabel.cs index fc32c602d..7518e7225 100644 --- a/EasyPost/Models/API/PostageLabel.cs +++ b/EasyPost/Models/API/PostageLabel.cs @@ -9,29 +9,29 @@ public class PostageLabel : EasyPostObject #region JSON Properties [JsonProperty("date_advance")] - public int date_advance { get; set; } + public int? DateAdvance { get; set; } [JsonProperty("integrated_form")] - public string integrated_form { get; set; } + public string? IntegratedForm { get; set; } [JsonProperty("label_date")] - public DateTime label_date { get; set; } + public DateTime LabelDate { get; set; } [JsonProperty("label_epl2_url")] - public string label_epl2_url { get; set; } + public string? LabelEpl2Url { get; set; } [JsonProperty("label_file")] - public string label_file { get; set; } + public string? LabelFile { get; set; } [JsonProperty("label_file_type")] - public string label_file_type { get; set; } + public string? LabelFileType { get; set; } [JsonProperty("label_pdf_url")] - public string label_pdf_url { get; set; } + public string? LabelPdfUrl { get; set; } [JsonProperty("label_resolution")] - public int label_resolution { get; set; } + public int? LabelResolution { get; set; } [JsonProperty("label_size")] - public string label_size { get; set; } + public string? LabelSize { get; set; } [JsonProperty("label_type")] - public string label_type { get; set; } + public string? LabelType { get; set; } [JsonProperty("label_url")] - public string label_url { get; set; } + public string? LabelUrl { get; set; } [JsonProperty("label_zpl_url")] - public string label_zpl_url { get; set; } + public string? LabelZplUrl { get; set; } #endregion } diff --git a/EasyPost/Models/API/Rate.cs b/EasyPost/Models/API/Rate.cs index 3ef04c203..8b11a1628 100644 --- a/EasyPost/Models/API/Rate.cs +++ b/EasyPost/Models/API/Rate.cs @@ -9,37 +9,37 @@ public class Rate : EasyPostObject #region JSON Properties [JsonProperty("billing_type")] - public string billing_type { get; set; } + public string? BillingType { get; set; } [JsonProperty("carbon_offset")] - public CarbonOffset carbon_offset { get; set; } + public CarbonOffset CarbonOffset { get; set; } [JsonProperty("carrier")] - public string carrier { get; set; } + public string? Carrier { get; set; } [JsonProperty("carrier_account_id")] - public string carrier_account_id { get; set; } + public string? CarrierAccountId { get; set; } [JsonProperty("currency")] - public string currency { get; set; } + public string? Currency { get; set; } [JsonProperty("delivery_date")] - public DateTime? delivery_date { get; set; } + public DateTime? DeliveryDate { get; set; } [JsonProperty("delivery_date_guaranteed")] - public bool delivery_date_guaranteed { get; set; } + public bool? DeliveryDateGuaranteed { get; set; } [JsonProperty("delivery_days")] - public int? delivery_days { get; set; } + public int? DeliveryDays { get; set; } [JsonProperty("est_delivery_days")] - public int? est_delivery_days { get; set; } + public int? EstDeliveryDays { get; set; } [JsonProperty("list_currency")] - public string list_currency { get; set; } + public string? ListCurrency { get; set; } [JsonProperty("list_rate")] - public string list_rate { get; set; } + public string? ListRate { get; set; } [JsonProperty("rate")] - public string rate { get; set; } + public string? Price { get; set; } // "Rate" is the enclosing class name [JsonProperty("retail_currency")] - public string retail_currency { get; set; } + public string? RetailCurrency { get; set; } [JsonProperty("retail_rate")] - public string retail_rate { get; set; } + public string? RetailRate { get; set; } [JsonProperty("service")] - public string service { get; set; } + public string? Service { get; set; } [JsonProperty("shipment_id")] - public string shipment_id { get; set; } + public string? ShipmentId { get; set; } #endregion } diff --git a/EasyPost/Models/API/Refund.cs b/EasyPost/Models/API/Refund.cs index 06c023ba0..b71c56164 100644 --- a/EasyPost/Models/API/Refund.cs +++ b/EasyPost/Models/API/Refund.cs @@ -8,15 +8,15 @@ public class Refund : EasyPostObject #region JSON Properties [JsonProperty("carrier")] - public string carrier { get; set; } + public string? Carrier { get; set; } [JsonProperty("confirmation_number")] - public string confirmation_number { get; set; } + public string? ConfirmationNumber { get; set; } [JsonProperty("shipment_id")] - public string shipment_id { get; set; } + public string? ShipmentId { get; set; } [JsonProperty("status")] - public string status { get; set; } + public string? Status { get; set; } [JsonProperty("tracking_code")] - public string tracking_code { get; set; } + public string? TrackingCode { get; set; } #endregion } diff --git a/EasyPost/Models/API/RefundCollection.cs b/EasyPost/Models/API/RefundCollection.cs index f3c57df58..3ff1ee5e0 100644 --- a/EasyPost/Models/API/RefundCollection.cs +++ b/EasyPost/Models/API/RefundCollection.cs @@ -9,7 +9,7 @@ public class RefundCollection : Collection #region JSON Properties [JsonProperty("refunds")] - public List refunds { get; set; } + public List? Refunds { get; set; } #endregion } diff --git a/EasyPost/Models/API/Report.cs b/EasyPost/Models/API/Report.cs index 4fd44c6ea..7befb8948 100644 --- a/EasyPost/Models/API/Report.cs +++ b/EasyPost/Models/API/Report.cs @@ -9,17 +9,17 @@ public class Report : EasyPostObject #region JSON Properties [JsonProperty("end_date")] - public DateTime? end_date { get; set; } + public DateTime? EndDate { get; set; } [JsonProperty("include_children")] - public bool include_children { get; set; } + public bool? IncludeChildren { get; set; } [JsonProperty("start_date")] - public DateTime? start_date { get; set; } + public DateTime? StartDate { get; set; } [JsonProperty("status")] - public string status { get; set; } + public string? Status { get; set; } [JsonProperty("url")] - public string url { get; set; } + public string? Url { get; set; } [JsonProperty("url_expires_at")] - public DateTime? url_expires_at { get; set; } + public DateTime? UrlExpiresAt { get; set; } #endregion } diff --git a/EasyPost/Models/API/ReportCollection.cs b/EasyPost/Models/API/ReportCollection.cs index 17d3db8ee..acc0fdd78 100644 --- a/EasyPost/Models/API/ReportCollection.cs +++ b/EasyPost/Models/API/ReportCollection.cs @@ -9,9 +9,9 @@ public class ReportCollection : Collection #region JSON Properties [JsonProperty("reports")] - public List reports { get; set; } + public List? Reports { get; set; } [JsonProperty("type")] - public string type { get; set; } + public string? Type { get; set; } #endregion } diff --git a/EasyPost/Models/API/ScanForm.cs b/EasyPost/Models/API/ScanForm.cs index c44734a4b..7c430eda4 100644 --- a/EasyPost/Models/API/ScanForm.cs +++ b/EasyPost/Models/API/ScanForm.cs @@ -9,19 +9,19 @@ public class ScanForm : EasyPostObject #region JSON Properties [JsonProperty("address")] - public Address address { get; set; } + public Address Address { get; set; } [JsonProperty("batch_id")] - public string batch_id { get; set; } + public string? BatchId { get; set; } [JsonProperty("form_file_type")] - public string form_file_type { get; set; } + public string? FormFileType { get; set; } [JsonProperty("form_url")] - public string form_url { get; set; } + public string? FormUrl { get; set; } [JsonProperty("message")] - public string message { get; set; } + public string? Message { get; set; } [JsonProperty("status")] - public string status { get; set; } + public string? Status { get; set; } [JsonProperty("tracking_codes")] - public List tracking_codes { get; set; } + public List? TrackingCodes { get; set; } #endregion } diff --git a/EasyPost/Models/API/ScanFormCollection.cs b/EasyPost/Models/API/ScanFormCollection.cs index c9ca34703..c32510ba3 100644 --- a/EasyPost/Models/API/ScanFormCollection.cs +++ b/EasyPost/Models/API/ScanFormCollection.cs @@ -9,7 +9,7 @@ public class ScanFormCollection : Collection #region JSON Properties [JsonProperty("scan_forms")] - public List scan_forms { get; set; } + public List? ScanForms { get; set; } #endregion } diff --git a/EasyPost/Models/API/Security.cs b/EasyPost/Models/API/Security.cs index e3294dc50..61d852743 100644 --- a/EasyPost/Models/API/Security.cs +++ b/EasyPost/Models/API/Security.cs @@ -2,7 +2,7 @@ namespace EasyPost.Models.API { - internal class Security + internal static class Security { /// /// Get the TLS protocol version to use for the request. diff --git a/EasyPost/Models/API/Shipment.cs b/EasyPost/Models/API/Shipment.cs index d1a02d78d..4f0df3de1 100644 --- a/EasyPost/Models/API/Shipment.cs +++ b/EasyPost/Models/API/Shipment.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Threading.Tasks; using EasyPost._base; -using EasyPost.Calculation; using EasyPost.Utilities.Annotations; using Newtonsoft.Json; using RestSharp; @@ -14,63 +13,63 @@ public class Shipment : EasyPostObject #region JSON Properties [JsonProperty("batch_id")] - public string batch_id { get; set; } + public string? BatchId { get; set; } [JsonProperty("batch_message")] - public string batch_message { get; set; } + public string? BatchMessage { get; set; } [JsonProperty("batch_status")] - public string batch_status { get; set; } + public string? BatchStatus { get; set; } [JsonProperty("buyer_address")] - public Address buyer_address { get; set; } + public Address? BuyerAddress { get; set; } [JsonProperty("carrier_accounts")] - public List carrier_accounts { get; set; } + public List? CarrierAccounts { get; set; } [JsonProperty("customs_info")] - public CustomsInfo customs_info { get; set; } + public CustomsInfo? CustomsInfo { get; set; } [JsonProperty("fees")] - public List fees { get; set; } + public List? Fees { get; set; } [JsonProperty("forms")] - public List
forms { get; set; } + public List? Forms { get; set; } [JsonProperty("from_address")] - public Address from_address { get; set; } + public Address? FromAddress { get; set; } [JsonProperty("insurance")] - public string insurance { get; set; } + public string? Insurance { get; set; } [JsonProperty("is_return")] - public bool? is_return { get; set; } + public bool? IsReturn { get; set; } [JsonProperty("messages")] - public List messages { get; set; } + public List? Messages { get; set; } [JsonProperty("options")] - public Options options { get; set; } + public Options? Options { get; set; } [JsonProperty("order_id")] - public string order_id { get; set; } + public string? OrderId { get; set; } [JsonProperty("parcel")] - public Parcel parcel { get; set; } + public Parcel? Parcel { get; set; } [JsonProperty("postage_label")] - public PostageLabel postage_label { get; set; } + public PostageLabel? PostageLabel { get; set; } [JsonProperty("rates")] - public List rates { get; set; } + public List? Rates { get; set; } [JsonProperty("reference")] - public string reference { get; set; } + public string? Reference { get; set; } [JsonProperty("refund_status")] - public string refund_status { get; set; } + public string? RefundStatus { get; set; } [JsonProperty("return_address")] - public Address return_address { get; set; } + public Address? ReturnAddress { get; set; } [JsonProperty("scan_form")] - public ScanForm scan_form { get; set; } + public ScanForm? ScanForm { get; set; } [JsonProperty("selected_rate")] - public Rate selected_rate { get; set; } + public Rate? SelectedRate { get; set; } [JsonProperty("service")] - public string service { get; set; } + public string? Service { get; set; } [JsonProperty("status")] - public string status { get; set; } + public string? Status { get; set; } [JsonProperty("tax_identifiers")] - public List tax_identifiers { get; set; } + public List? TaxIdentifiers { get; set; } [JsonProperty("to_address")] - public Address to_address { get; set; } + public Address? ToAddress { get; set; } [JsonProperty("tracker")] - public Tracker tracker { get; set; } + public Tracker? Tracker { get; set; } [JsonProperty("tracking_code")] - public string tracking_code { get; set; } + public string? TrackingCode { get; set; } [JsonProperty("usps_zone")] - public string usps_zone { get; set; } + public string? UspsZone { get; set; } #endregion @@ -83,7 +82,7 @@ public class Shipment : EasyPostObject [CrudOperations.Create] public async Task Return() { - if (id == null) + if (Id == null) { // This is a local object, not one pulled from the server. throw new Exception("id is null"); @@ -99,12 +98,12 @@ public async Task Return() [CrudOperations.Read] public async Task> GetSmartrates() { - if (id == null) + if (Id == null) { throw new Exception("id is null"); } - return await Request>(Method.Get, $"shipments/{id}/smartrate", null, "result"); + return await Request>(Method.Get, $"shipments/{Id}/smartrate", null, "result"); } /// @@ -117,7 +116,7 @@ public async Task> GetSmartrates() public async Task Buy(string rateId, string? insuranceValue = null, bool withCarbonOffset = false) { // TODO: Should this function return the updated Shipment like Order.Buy? - if (id == null) + if (Id == null) { throw new Exception("id is null. Cannot buy a shipment without an id."); } @@ -129,7 +128,7 @@ public async Task Buy(string rateId, string? insuranceValue = null, bool withCar { "carbon_offset", withCarbonOffset } }; - await Update(Method.Post, $"shipments/{id}/buy", parameters); + await Update(Method.Post, $"shipments/{Id}/buy", parameters); } /// @@ -139,7 +138,7 @@ public async Task Buy(string rateId, string? insuranceValue = null, bool withCar /// The value to insure the shipment for. /// Whether to apply carbon offset to this purchase. [CrudOperations.Update] - public async Task Buy(Rate rate, string? insuranceValue = null, bool withCarbonOffset = false) => await Buy(rate.id, insuranceValue, withCarbonOffset); + public async Task Buy(Rate rate, string? insuranceValue = null, bool withCarbonOffset = false) => await Buy(rate.Id, insuranceValue, withCarbonOffset); /// /// Generate a postage label for this shipment. @@ -148,14 +147,14 @@ public async Task Buy(string rateId, string? insuranceValue = null, bool withCar [CrudOperations.Update] public async Task GenerateLabel(string fileFormat) { - if (id == null) + if (Id == null) { throw new Exception("id is null"); } Dictionary parameters = new Dictionary { { "file_format", fileFormat } }; - await Update(Method.Get, $"shipments/{id}/label", parameters); + await Update(Method.Get, $"shipments/{Id}/label", parameters); return this; } @@ -166,14 +165,14 @@ public async Task GenerateLabel(string fileFormat) [CrudOperations.Update] public async Task Insure(double amount) { - if (id == null) + if (Id == null) { throw new Exception("id is null"); } Dictionary parameters = new Dictionary { { "amount", amount } }; - await Update(Method.Post, $"shipments/{id}/insure", parameters); + await Update(Method.Post, $"shipments/{Id}/insure", parameters); return this; } @@ -183,12 +182,12 @@ public async Task Insure(double amount) [CrudOperations.Update] public async Task Refund() { - if (id == null) + if (Id == null) { throw new Exception("id is required"); } - await Update(Method.Get, $"shipments/{id}/refund"); + await Update(Method.Get, $"shipments/{Id}/refund"); return this; } @@ -202,15 +201,15 @@ public async Task RegenerateRates(Dictionary? parameters = null, { parameters ??= new Dictionary(); - if (id == null) + if (Id == null) { throw new Exception("id is required"); } parameters.Add("carbon_offset", withCarbonOffset); - Shipment shipment = await Request(Method.Post, $"shipments/{id}/rerate", parameters); - rates = shipment.rates; + Shipment shipment = await Request(Method.Post, $"shipments/{Id}/rerate", parameters); + Rates = shipment.Rates; } #endregion @@ -225,12 +224,12 @@ public async Task RegenerateRates(Dictionary? parameters = null, /// Lowest EasyPost.Rate object instance. public Rate LowestRate(List? includeCarriers = null, List? includeServices = null, List? excludeCarriers = null, List? excludeServices = null) { - if (rates == null) + if (Rates == null) { throw new Exception("rates is null"); } - return Rates.GetLowestObjectRate(rates, includeCarriers, includeServices, excludeCarriers, excludeServices); + return Calculation.Rates.GetLowestObjectRate(Rates, includeCarriers, includeServices, excludeCarriers, excludeServices); } /// @@ -242,7 +241,7 @@ public Rate LowestRate(List? includeCarriers = null, List? inclu public async Task LowestSmartrate(int deliveryDays, SmartrateAccuracy deliveryAccuracy) { List smartrates = await GetSmartrates(); - return Rates.GetLowestShipmentSmartrate(smartrates, deliveryDays, deliveryAccuracy); + return Calculation.Rates.GetLowestShipmentSmartrate(smartrates, deliveryDays, deliveryAccuracy); } } } diff --git a/EasyPost/Models/API/ShipmentCollection.cs b/EasyPost/Models/API/ShipmentCollection.cs index 4902527ed..449c2a70e 100644 --- a/EasyPost/Models/API/ShipmentCollection.cs +++ b/EasyPost/Models/API/ShipmentCollection.cs @@ -9,7 +9,7 @@ public class ShipmentCollection : Collection #region JSON Properties [JsonProperty("shipments")] - public List shipments { get; set; } + public List? Shipments { get; set; } #endregion } diff --git a/EasyPost/Models/API/Smartrate.cs b/EasyPost/Models/API/Smartrate.cs index c6306fed2..3f5d8a607 100644 --- a/EasyPost/Models/API/Smartrate.cs +++ b/EasyPost/Models/API/Smartrate.cs @@ -9,37 +9,37 @@ public class Smartrate : EasyPostObject #region JSON Properties [JsonProperty("billing_type")] - public string billing_type { get; set; } + public string? BillingType { get; set; } [JsonProperty("carrier")] - public string carrier { get; set; } + public string? Carrier { get; set; } [JsonProperty("carrier_account_id")] - public string carrier_account_id { get; set; } + public string? CarrierAccountId { get; set; } [JsonProperty("currency")] - public string currency { get; set; } + public string? Currency { get; set; } [JsonProperty("delivery_date")] - public DateTime? delivery_date { get; set; } + public DateTime? DeliveryDate { get; set; } [JsonProperty("delivery_date_guaranteed")] - public bool delivery_date_guaranteed { get; set; } + public bool? DeliveryDateGuaranteed { get; set; } [JsonProperty("delivery_days")] - public int? delivery_days { get; set; } + public int? DeliveryDays { get; set; } [JsonProperty("est_delivery_days")] - public int? est_delivery_days { get; set; } + public int? EstDeliveryDays { get; set; } [JsonProperty("list_currency")] - public string list_currency { get; set; } + public string? ListCurrency { get; set; } [JsonProperty("list_rate")] - public double list_rate { get; set; } + public double? ListRate { get; set; } [JsonProperty("rate")] - public double rate { get; set; } + public double? Rate { get; set; } [JsonProperty("retail_currency")] - public string retail_currency { get; set; } + public string? RetailCurrency { get; set; } [JsonProperty("retail_rate")] - public double retail_rate { get; set; } + public double? RetailRate { get; set; } [JsonProperty("service")] - public string service { get; set; } + public string? Service { get; set; } [JsonProperty("shipment_id")] - public string shipment_id { get; set; } + public string? ShipmentId { get; set; } [JsonProperty("time_in_transit")] - public TimeInTransit time_in_transit { get; set; } + public TimeInTransit TimeInTransit { get; set; } #endregion } diff --git a/EasyPost/Models/API/SmartrateResult.cs b/EasyPost/Models/API/SmartrateResult.cs index 205e47e0f..fdc034531 100644 --- a/EasyPost/Models/API/SmartrateResult.cs +++ b/EasyPost/Models/API/SmartrateResult.cs @@ -9,7 +9,7 @@ public class SmartrateResult : EasyPostObject #region JSON Properties [JsonProperty("result")] - public List result { get; set; } + public List? Result { get; set; } #endregion } diff --git a/EasyPost/Models/API/TaxIdentifier.cs b/EasyPost/Models/API/TaxIdentifier.cs index 9d286dab3..f01ba7754 100644 --- a/EasyPost/Models/API/TaxIdentifier.cs +++ b/EasyPost/Models/API/TaxIdentifier.cs @@ -7,13 +7,13 @@ public class TaxIdentifier #region JSON Properties [JsonProperty("entity")] - public string entity { get; set; } + public string? Entity { get; set; } [JsonProperty("issuing_country")] - public string issuing_country { get; set; } + public string? IssuingCountry { get; set; } [JsonProperty("tax_id")] - public string tax_id { get; set; } + public string? TaxId { get; set; } [JsonProperty("tax_id_type")] - public string tax_id_type { get; set; } + public string? TaxIdType { get; set; } #endregion } diff --git a/EasyPost/Models/API/TimeInTransit.cs b/EasyPost/Models/API/TimeInTransit.cs index 5cf690488..66e3422a4 100644 --- a/EasyPost/Models/API/TimeInTransit.cs +++ b/EasyPost/Models/API/TimeInTransit.cs @@ -7,19 +7,19 @@ public class TimeInTransit #region JSON Properties [JsonProperty("percentile_50")] - public int? percentile_50 { get; set; } + public int? Percentile50 { get; set; } [JsonProperty("percentile_75")] - public int? percentile_75 { get; set; } + public int? Percentile75 { get; set; } [JsonProperty("percentile_85")] - public int? percentile_85 { get; set; } + public int? Percentile85 { get; set; } [JsonProperty("percentile_90")] - public int? percentile_90 { get; set; } + public int? Percentile90 { get; set; } [JsonProperty("percentile_95")] - public int? percentile_95 { get; set; } + public int? Percentile95 { get; set; } [JsonProperty("percentile_97")] - public int? percentile_97 { get; set; } + public int? Percentile97 { get; set; } [JsonProperty("percentile_99")] - public int? percentile_99 { get; set; } + public int? Percentile99 { get; set; } #endregion @@ -31,20 +31,20 @@ public class TimeInTransit public int? GetBySmartrateAccuracy(SmartrateAccuracy accuracy) { if (accuracy.Equals(SmartrateAccuracy.Percentile50)) - return percentile_50; + return Percentile50; if (accuracy.Equals(SmartrateAccuracy.Percentile75)) - return percentile_75; + return Percentile75; if (accuracy.Equals(SmartrateAccuracy.Percentile85)) - return percentile_85; + return Percentile85; if (accuracy.Equals(SmartrateAccuracy.Percentile90)) - return percentile_90; + return Percentile90; if (accuracy.Equals(SmartrateAccuracy.Percentile95)) - return percentile_95; + return Percentile95; if (accuracy.Equals(SmartrateAccuracy.Percentile97)) - return percentile_97; + return Percentile97; // ReSharper disable once ConvertIfStatementToReturnStatement if (accuracy.Equals(SmartrateAccuracy.Percentile99)) - return percentile_99; + return Percentile99; return null; } } diff --git a/EasyPost/Models/API/Tracker.cs b/EasyPost/Models/API/Tracker.cs index e5e0a8449..5b279eedf 100644 --- a/EasyPost/Models/API/Tracker.cs +++ b/EasyPost/Models/API/Tracker.cs @@ -10,27 +10,27 @@ public class Tracker : EasyPostObject #region JSON Properties [JsonProperty("carrier")] - public string carrier { get; set; } + public string? Carrier { get; set; } [JsonProperty("carrier_detail")] - public CarrierDetail carrier_detail { get; set; } + public CarrierDetail CarrierDetail { get; set; } [JsonProperty("est_delivery_date")] - public DateTime? est_delivery_date { get; set; } + public DateTime? EstDeliveryDate { get; set; } [JsonProperty("public_url")] - public string public_url { get; set; } + public string? PublicUrl { get; set; } [JsonProperty("shipment_id")] - public string shipment_id { get; set; } + public string? ShipmentId { get; set; } [JsonProperty("signed_by")] - public string signed_by { get; set; } + public string? SignedBy { get; set; } [JsonProperty("status")] - public string status { get; set; } + public string? Status { get; set; } [JsonProperty("tracking_code")] - public string tracking_code { get; set; } + public string? TrackingCode { get; set; } [JsonProperty("tracking_details")] - public List tracking_details { get; set; } + public List? TrackingDetails { get; set; } [JsonProperty("tracking_updated_at")] - public DateTime tracking_updated_at { get; set; } + public DateTime TrackingUpdatedAt { get; set; } [JsonProperty("weight")] - public double? weight { get; set; } + public double? Weight { get; set; } #endregion } diff --git a/EasyPost/Models/API/TrackerCollection.cs b/EasyPost/Models/API/TrackerCollection.cs index 3a73ddb23..31409ef72 100644 --- a/EasyPost/Models/API/TrackerCollection.cs +++ b/EasyPost/Models/API/TrackerCollection.cs @@ -9,7 +9,7 @@ public class TrackerCollection : Collection #region JSON Properties [JsonProperty("trackers")] - public List trackers { get; set; } + public List? Trackers { get; set; } #endregion } diff --git a/EasyPost/Models/API/TrackingDetail.cs b/EasyPost/Models/API/TrackingDetail.cs index 356ff6c76..a1e026a8c 100644 --- a/EasyPost/Models/API/TrackingDetail.cs +++ b/EasyPost/Models/API/TrackingDetail.cs @@ -9,13 +9,13 @@ public class TrackingDetail : EasyPostObject #region JSON Properties [JsonProperty("datetime")] - public DateTime? datetime { get; set; } + public DateTime? Datetime { get; set; } [JsonProperty("message")] - public string message { get; set; } + public string? Message { get; set; } [JsonProperty("status")] - public string status { get; set; } + public string? Status { get; set; } [JsonProperty("tracking_location")] - public TrackingLocation tracking_location { get; set; } + public TrackingLocation TrackingLocation { get; set; } #endregion } diff --git a/EasyPost/Models/API/TrackingLocation.cs b/EasyPost/Models/API/TrackingLocation.cs index 230c39894..23122d32f 100644 --- a/EasyPost/Models/API/TrackingLocation.cs +++ b/EasyPost/Models/API/TrackingLocation.cs @@ -7,13 +7,13 @@ public class TrackingLocation #region JSON Properties [JsonProperty("city")] - public string city { get; set; } + public string? City { get; set; } [JsonProperty("country")] - public string country { get; set; } + public string? Country { get; set; } [JsonProperty("state")] - public string state { get; set; } + public string? State { get; set; } [JsonProperty("zip")] - public string zip { get; set; } + public string? Zip { get; set; } #endregion } diff --git a/EasyPost/Models/API/User.cs b/EasyPost/Models/API/User.cs index 1ebfc080e..668e6b679 100644 --- a/EasyPost/Models/API/User.cs +++ b/EasyPost/Models/API/User.cs @@ -12,31 +12,31 @@ public class User : EasyPostObject #region JSON Properties [JsonProperty("api_keys")] - public List api_keys { get; set; } + public List? ApiKeys { get; set; } [JsonProperty("balance")] - public string balance { get; set; } + public string? Balance { get; set; } [JsonProperty("children")] - public List children { get; set; } + public List? Children { get; set; } [JsonProperty("email")] - public string email { get; set; } + public string? Email { get; set; } [JsonProperty("name")] - public string name { get; set; } + public string? Name { get; set; } [JsonProperty("parent_id")] - public string parent_id { get; set; } + public string? ParentId { get; set; } [JsonProperty("password")] - public string password { get; set; } + public string? Password { get; set; } [JsonProperty("password_confirmation")] - public string password_confirmation { get; set; } + public string? PasswordConfirmation { get; set; } [JsonProperty("phone_number")] - public string phone_number { get; set; } + public string? PhoneNumber { get; set; } [JsonProperty("price_per_shipment")] - public string price_per_shipment { get; set; } + public string? PricePerShipment { get; set; } [JsonProperty("recharge_amount")] - public string recharge_amount { get; set; } + public string? RechargeAmount { get; set; } [JsonProperty("recharge_threshold")] - public string recharge_threshold { get; set; } + public string? RechargeThreshold { get; set; } [JsonProperty("secondary_recharge_amount")] - public string secondary_recharge_amount { get; set; } + public string? SecondaryRechargeAmount { get; set; } #endregion @@ -60,7 +60,7 @@ public class User : EasyPostObject [CrudOperations.Create] public async Task UpdateBrand(Dictionary parameters) { - return await Request(Method.Patch, $"users/{id}/brand", parameters); + return await Request(Method.Patch, $"users/{Id}/brand", parameters); } /// @@ -81,7 +81,7 @@ public async Task UpdateBrand(Dictionary parameters) [CrudOperations.Update] public async Task Update(Dictionary parameters) { - await Update(Method.Patch, $"users/{id}", parameters); + await Update(Method.Patch, $"users/{Id}", parameters); return this; } @@ -92,7 +92,7 @@ public async Task Update(Dictionary parameters) [CrudOperations.Delete] public async Task Delete() { - await DeleteNoResponse($"users/{id}"); + await DeleteNoResponse($"users/{Id}"); } #endregion diff --git a/EasyPost/Models/API/Verification.cs b/EasyPost/Models/API/Verification.cs index a3f81e44f..5100607c3 100644 --- a/EasyPost/Models/API/Verification.cs +++ b/EasyPost/Models/API/Verification.cs @@ -9,12 +9,12 @@ public class Verification : EasyPostObject #region JSON Properties [JsonProperty("details")] - public VerificationDetails details { get; set; } + public VerificationDetails Details { get; set; } [JsonProperty("errors")] // TODO: handle refactor of Error - public List errors { get; set; } + public List Errors { get; set; } [JsonProperty("success")] - public bool success { get; set; } + public bool? Success { get; set; } #endregion } diff --git a/EasyPost/Models/API/VerificationDetails.cs b/EasyPost/Models/API/VerificationDetails.cs index 454dfd92f..92b3b1931 100644 --- a/EasyPost/Models/API/VerificationDetails.cs +++ b/EasyPost/Models/API/VerificationDetails.cs @@ -8,11 +8,11 @@ public class VerificationDetails : EasyPostObject #region JSON Properties [JsonProperty("latitude")] - public float latitude { get; set; } + public float? Latitude { get; set; } [JsonProperty("longitude")] - public float longitude { get; set; } + public float? Longitude { get; set; } [JsonProperty("time_zone")] - public string time_zone { get; set; } + public string? TimeZone { get; set; } #endregion } diff --git a/EasyPost/Models/API/Verifications.cs b/EasyPost/Models/API/Verifications.cs index 85c7268ca..2bbc4cb16 100644 --- a/EasyPost/Models/API/Verifications.cs +++ b/EasyPost/Models/API/Verifications.cs @@ -8,9 +8,9 @@ public class Verifications : EasyPostObject #region JSON Properties [JsonProperty("delivery")] - public Verification delivery { get; set; } + public Verification Delivery { get; set; } [JsonProperty("zip4")] - public Verification zip4 { get; set; } + public Verification Zip4 { get; set; } #endregion } diff --git a/EasyPost/Models/API/Webhook.cs b/EasyPost/Models/API/Webhook.cs index 3b50ba0af..9edd45dd5 100644 --- a/EasyPost/Models/API/Webhook.cs +++ b/EasyPost/Models/API/Webhook.cs @@ -13,9 +13,9 @@ public class Webhook : EasyPostObject #region JSON Properties [JsonProperty("disabled_at")] - public DateTime? disabled_at { get; set; } + public DateTime? DisabledAt { get; set; } [JsonProperty("url")] - public string url { get; set; } + public string? Url { get; set; } #endregion @@ -33,7 +33,7 @@ public class Webhook : EasyPostObject [CrudOperations.Update] public async Task Update(Dictionary? parameters = null) { - await Update(Method.Patch, $"webhooks/{id}", parameters); + await Update(Method.Patch, $"webhooks/{Id}", parameters); return this; } @@ -44,7 +44,7 @@ public async Task Update(Dictionary? parameters = null) [CrudOperations.Delete] public async Task Delete() { - await DeleteNoResponse($"webhooks/{id}"); + await DeleteNoResponse($"webhooks/{Id}"); } #endregion diff --git a/EasyPost/Models/Shared/Collection.cs b/EasyPost/Models/Shared/Collection.cs index 19948b81d..6dabb192a 100644 --- a/EasyPost/Models/Shared/Collection.cs +++ b/EasyPost/Models/Shared/Collection.cs @@ -9,10 +9,10 @@ public class Collection : EasyPostObject #region JSON Properties [JsonProperty("has_more")] - public bool has_more { get; set; } + public bool? HasMore { get; set; } [JsonProperty("filters")] - internal Dictionary filters { get; set; } + internal Dictionary? Filters { get; set; } #endregion } diff --git a/EasyPost/Services/BillingService.cs b/EasyPost/Services/BillingService.cs index ee32df7c7..c57c300fb 100644 --- a/EasyPost/Services/BillingService.cs +++ b/EasyPost/Services/BillingService.cs @@ -30,7 +30,7 @@ public async Task FundWallet(string amount, PaymentMethod.Priority? priority = n Dictionary parameters = new Dictionary { { "amount", amount } }; - await CreateNoResponse($"{paymentMethod.Endpoint}/{paymentMethod.id}/charge", parameters); + await CreateNoResponse($"{paymentMethod.Endpoint}/{paymentMethod.Id}/charge", parameters); } /// @@ -41,7 +41,7 @@ public async Task FundWallet(string amount, PaymentMethod.Priority? priority = n public async Task RetrievePaymentMethodsSummary() { PaymentMethodsSummary paymentMethodsSummary = await Get("payment_methods"); - if (paymentMethodsSummary.id == null) + if (paymentMethodsSummary.Id == null) { throw new Exception("Please add a payment method via the dashboard."); } @@ -58,7 +58,7 @@ public async Task DeletePaymentMethod(PaymentMethod.Priority priority) { PaymentMethod paymentMethod = await GetPaymentMethodByPriority(priority); - await DeleteNoResponse($"{paymentMethod.Endpoint}/{paymentMethod.id}"); + await DeleteNoResponse($"{paymentMethod.Endpoint}/{paymentMethod.Id}"); } #endregion @@ -81,14 +81,14 @@ private async Task GetPaymentMethodByPriority(PaymentMethod.Prior PaymentMethod? paymentMethod = null; var @switch = new SwitchCase { - { PaymentMethod.Priority.Primary, () => { paymentMethod = paymentMethodsSummarySummary.primary_payment_method; } }, - { PaymentMethod.Priority.Secondary, () => { paymentMethod = paymentMethodsSummarySummary.secondary_payment_method; } }, + { PaymentMethod.Priority.Primary, () => { paymentMethod = paymentMethodsSummarySummary.PrimaryPaymentMethod; } }, + { PaymentMethod.Priority.Secondary, () => { paymentMethod = paymentMethodsSummarySummary.SecondaryPaymentMethod; } }, { SwitchCaseScenario.Default, () => throw new Exception("Invalid priority provided.") } }; @switch.Match(priority); - if (paymentMethod?.id == null) + if (paymentMethod?.Id == null) { throw new Exception("The chosen payment method has not been set up yet."); } diff --git a/EasyPost/Services/ReportService.cs b/EasyPost/Services/ReportService.cs index e6d2d9eb2..eeb7ab1f9 100644 --- a/EasyPost/Services/ReportService.cs +++ b/EasyPost/Services/ReportService.cs @@ -56,7 +56,7 @@ public async Task Create(string type, Dictionary? parame public async Task All(string type, Dictionary? parameters = null) { ReportCollection reportCollection = await List($"reports/{type}", parameters); - reportCollection.type = type; + reportCollection.Type = type; reportCollection.Client = Client; return reportCollection; } diff --git a/EasyPost/Services/ShipmentService.cs b/EasyPost/Services/ShipmentService.cs index 4931c670a..369c926df 100644 --- a/EasyPost/Services/ShipmentService.cs +++ b/EasyPost/Services/ShipmentService.cs @@ -54,7 +54,7 @@ public async Task Create(Dictionary parameters, bool w [CrudOperations.Create] public async Task CreateReturn(Shipment shipment) { - if (shipment.id == null) + if (shipment.Id == null) { throw new Exception("Shipment.id is null."); } @@ -62,9 +62,9 @@ public async Task CreateReturn(Shipment shipment) return await Create( new Dictionary { - { "to_address", shipment.from_address }, - { "from_address", shipment.to_address }, - { "parcel", shipment.parcel }, + { "to_address", shipment.FromAddress }, + { "from_address", shipment.ToAddress }, + { "parcel", shipment.Parcel }, { "is_return", true }, }); } diff --git a/EasyPost/Utilities/Annotations/CrudOperations.cs b/EasyPost/Utilities/Annotations/CrudOperations.cs index 807e37097..9f3373481 100644 --- a/EasyPost/Utilities/Annotations/CrudOperations.cs +++ b/EasyPost/Utilities/Annotations/CrudOperations.cs @@ -7,33 +7,21 @@ internal static class CrudOperations [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] internal class Create : BaseCustomAttribute { - public Create() - { - } } [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] internal class Read : BaseCustomAttribute { - public Read() - { - } } [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] internal class Update : BaseCustomAttribute { - public Update() - { - } } [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] internal class Delete : BaseCustomAttribute { - public Delete() - { - } } } } diff --git a/EasyPost/Utilities/SwitchCase.cs b/EasyPost/Utilities/SwitchCase.cs index 48c87f0df..e8084d96f 100644 --- a/EasyPost/Utilities/SwitchCase.cs +++ b/EasyPost/Utilities/SwitchCase.cs @@ -64,7 +64,7 @@ internal class SwitchCase : IEnumerable { private readonly List _list = new List(); - private Action? _defaultCaseAction = null; + private Action? _defaultCaseAction; /// /// Add a case where matching a static value triggers an Action diff --git a/EasyPost/_base/EasyPostClient.cs b/EasyPost/_base/EasyPostClient.cs index 23768bab9..992e8b6c7 100644 --- a/EasyPost/_base/EasyPostClient.cs +++ b/EasyPost/_base/EasyPostClient.cs @@ -97,7 +97,7 @@ internal async Task Request(Method method, string url, ApiVersion apiVersi internal async Task Request(Method method, string url, ApiVersion apiVersion, Dictionary? parameters = null) { // Build the request - Request request = new Request(url, method, apiVersion, parameters, null); + Request request = new Request(url, method, apiVersion, parameters); RestRequest restRequest = PrepareRequest(request); // Execute the request diff --git a/EasyPost/_base/EasyPostObject.cs b/EasyPost/_base/EasyPostObject.cs index 1dfdd2fde..4f90cc2a8 100644 --- a/EasyPost/_base/EasyPostObject.cs +++ b/EasyPost/_base/EasyPostObject.cs @@ -17,13 +17,13 @@ public abstract class EasyPostObject : WithClient, IEasyPostObject #region JSON Properties [JsonProperty("created_at")] - public DateTime? created_at { get; internal set; } + public DateTime? CreatedAt { get; internal set; } [JsonProperty("id")] - public string? id { get; internal set; } + public string? Id { get; internal set; } [JsonProperty("mode")] - public string? mode { get; internal set; } + public string? Mode { get; internal set; } [JsonProperty("updated_at")] - public DateTime? updated_at { get; internal set; } + public DateTime? UpdatedAt { get; internal set; } [JsonProperty("object")] internal string? Object { get; set; } @@ -31,16 +31,7 @@ public abstract class EasyPostObject : WithClient, IEasyPostObject internal string? Prefix { - get - { - if (id == null) - { - return null; - } - - string? prefix = id.Split('_').First() ?? null; - return prefix; - } + get { return Id?.Split('_').First(); } } public override bool Equals(object? obj) From 801d735aa7ddbb18394e7a604e17adfe8c13e76d Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Wed, 7 Sep 2022 14:48:10 -0600 Subject: [PATCH 2/9] - Update CHANGELOG.md --- CHANGELOG.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17b68abbb..28f49db37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ - Static methods (i.e. create, retrieve, retrieve all of a resource) exist in services, accessed via property of the client (e.g. `myClient.Address.Create()`). - Instance methods (i.e. update, delete) accessed on instance of a resource (i.e. `myShipment.Update()`). - Library better supports different API versions (i.e. `v2`, `beta`). + - Beta features accessed via, e.g. `myClient.Beta.EndShipper.Create()`. +- All properties are now title-cased rather than snake-cased to match standard .NET naming conventions. + - e.g. `myShipment.shipment_id` is now `myShipment.ShipmentId`.` + - Some properties have been renamed to avoid naming conflicts: + - `Rate.rate` is now `Rate.Price` + - `Message.message` is now `Message.Text` - All objects now share a common base set of properties, including `id`, `created_at`, `updated_at`, and `mode`. - Under the hood improvements: - Underlying `Request`-`Client`-`ClientConfiguration` relationship has been re-architected to allow for thread safety. @@ -14,7 +20,6 @@ - Files have been organized into a more logical structure. - Methods and properties have been organized (e.g. methods ordered by CRUD, properties ordered alphabetically). - Dependencies updated to latest versions, including `RestSharp` v108 -- `EndShipper` moved from beta to general availability. ## v3.4.0 (2022-08-02) From 61d4d5c6692cdce56c1e596ddac05b09ac61b2cd Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Wed, 7 Sep 2022 15:04:22 -0600 Subject: [PATCH 3/9] - Re-record all unit tests - Pickup buy is failing currently (API 500 error) --- EasyPost.Tests/BatchTest.cs | 10 ++ EasyPost.Tests/Fixture.cs | 2 +- EasyPost.Tests/cassettes/net/address/all.json | 20 +-- .../cassettes/net/address/create.json | 20 +-- .../net/address/create_and_verify.json | 18 +-- .../cassettes/net/address/create_verify.json | 20 +-- .../net/address/create_verify_strict.json | 18 +-- .../cassettes/net/address/retrieve.json | 42 +++---- .../cassettes/net/address/verify.json | 45 +++---- .../cassettes/net/api_key/all_api_keys.json | 14 +-- .../net/batch/add_remove_shipments.json | 87 +++++++------ EasyPost.Tests/cassettes/net/batch/all.json | 18 +-- EasyPost.Tests/cassettes/net/batch/buy.json | 41 +++---- .../cassettes/net/batch/create.json | 18 +-- .../cassettes/net/batch/create_and_buy.json | 18 +-- .../cassettes/net/batch/create_scan_form.json | 59 +++++---- EasyPost.Tests/cassettes/net/batch/label.json | 60 ++++----- .../cassettes/net/batch/retrieve.json | 41 +++---- .../cassettes/net/carrier_account/all.json | 44 +++---- .../cassettes/net/carrier_account/create.json | 80 ++++++------ .../cassettes/net/carrier_account/delete.json | 62 +++++----- .../net/carrier_account/retrieve.json | 84 ++++++------- .../cassettes/net/carrier_account/types.json | 24 ++-- .../cassettes/net/carrier_account/update.json | 101 ++++++++------- .../cassettes/net/customs_info/create.json | 20 +-- .../cassettes/net/customs_info/retrieve.json | 38 +++--- .../cassettes/net/customs_item/create.json | 20 +-- .../cassettes/net/customs_item/retrieve.json | 43 ++++--- .../cassettes/net/end_shipper/all.json | 44 +++---- .../cassettes/net/end_shipper/create.json | 16 +-- .../cassettes/net/end_shipper/retrieve.json | 36 +++--- .../cassettes/net/end_shipper/update.json | 39 +++--- .../cassettes/net/error/bad_parameters.json | 12 +- EasyPost.Tests/cassettes/net/event/all.json | 19 ++- .../cassettes/net/event/retrieve.json | 42 +++---- .../cassettes/net/insurance/all.json | 19 +-- .../cassettes/net/insurance/create.json | 40 +++--- .../cassettes/net/insurance/retrieve.json | 60 ++++----- EasyPost.Tests/cassettes/net/order/buy.json | 38 +++--- .../cassettes/net/order/create.json | 18 +-- .../cassettes/net/order/get_rates.json | 36 +++--- .../cassettes/net/order/lowest_rate.json | 20 +-- .../cassettes/net/order/retrieve.json | 42 +++---- .../cassettes/net/parcel/create.json | 16 +-- .../cassettes/net/parcel/retrieve.json | 40 +++--- EasyPost.Tests/cassettes/net/pickup/buy.json | 67 +++++----- .../cassettes/net/pickup/cancel.json | 110 +++++------------ .../cassettes/net/pickup/create.json | 42 +++---- .../cassettes/net/pickup/lowest_rate.json | 40 +++--- .../cassettes/net/pickup/retrieve.json | 60 ++++----- .../cassettes/net/rate/retrieve.json | 40 +++--- EasyPost.Tests/cassettes/net/refund/all.json | 19 ++- .../cassettes/net/refund/create.json | 60 ++++----- .../cassettes/net/refund/retrieve.json | 94 +++++++------- EasyPost.Tests/cassettes/net/report/all.json | 16 +-- .../cassettes/net/report/create_report.json | 16 +-- ...create_report_with_additional_columns.json | 19 +-- .../report/create_report_with_columns.json | 16 +-- .../cassettes/net/report/retrieve_report.json | 38 +++--- .../cassettes/net/scan_form/all.json | 19 ++- .../cassettes/net/scan_form/create.json | 40 +++--- .../cassettes/net/scan_form/retrieve.json | 58 ++++----- .../cassettes/net/shipment/all.json | 20 +-- .../cassettes/net/shipment/buy.json | 46 +++---- .../buy_shipment_with_carbon_offset.json | 48 ++++---- .../cassettes/net/shipment/convert_label.json | 46 +++---- .../cassettes/net/shipment/create.json | 22 ++-- .../net/shipment/create_empty_objects.json | 24 ++-- .../create_shipment_with_carbon_offset.json | 22 ++-- .../net/shipment/create_tax_identifiers.json | 25 ++-- .../cassettes/net/shipment/insure.json | 49 ++++---- .../cassettes/net/shipment/lowest_rate.json | 24 ++-- .../shipment/lowest_smartrate_instance.json | 44 +++---- .../net/shipment/lowest_smartrate_static.json | 44 +++---- ..._call_buy_shipment_with_carbon_offset.json | 22 ++-- .../cassettes/net/shipment/refund.json | 46 +++---- .../net/shipment/regenerate_rates.json | 46 +++---- .../regenerate_rates_with_carbon_offset.json | 44 +++---- .../cassettes/net/shipment/retrieve.json | 48 ++++---- .../cassettes/net/shipment/smartrate.json | 44 +++---- EasyPost.Tests/cassettes/net/tracker/all.json | 16 +-- .../cassettes/net/tracker/create.json | 20 +-- .../cassettes/net/tracker/create_list.json | 50 ++++---- .../cassettes/net/tracker/retrieve.json | 42 +++---- EasyPost.Tests/cassettes/net/user/create.json | 74 +++++------ EasyPost.Tests/cassettes/net/user/delete.json | 58 ++++----- .../cassettes/net/user/retrieve.json | 89 +++++++------- .../cassettes/net/user/retrieve_me.json | 44 +++---- EasyPost.Tests/cassettes/net/user/update.json | 99 ++++++++------- .../cassettes/net/user/update_brand.json | 97 ++++++++------- EasyPost.Tests/cassettes/net/webhook/all.json | 44 +++---- .../cassettes/net/webhook/create.json | 82 ++++++------- .../cassettes/net/webhook/delete.json | 84 +++++++------ .../cassettes/net/webhook/retrieve.json | 84 ++++++------- .../cassettes/net/webhook/update.json | 100 +++++++-------- .../cassettes/netstandard/address/all.json | 17 ++- .../cassettes/netstandard/address/create.json | 20 +-- .../address/create_and_verify.json | 21 ++-- .../netstandard/address/create_verify.json | 20 +-- .../address/create_verify_strict.json | 21 ++-- .../netstandard/address/retrieve.json | 42 +++---- .../cassettes/netstandard/address/verify.json | 42 +++---- .../netstandard/api_key/all_api_keys.json | 12 +- .../batch/add_remove_shipments.json | 88 +++++++------- .../cassettes/netstandard/batch/all.json | 18 +-- .../cassettes/netstandard/batch/buy.json | 42 +++---- .../cassettes/netstandard/batch/create.json | 20 +-- .../netstandard/batch/create_and_buy.json | 20 +-- .../netstandard/batch/create_scan_form.json | 61 +++++----- .../cassettes/netstandard/batch/label.json | 56 ++++----- .../cassettes/netstandard/batch/retrieve.json | 40 +++--- .../netstandard/carrier_account/all.json | 44 +++---- .../netstandard/carrier_account/create.json | 80 ++++++------ .../netstandard/carrier_account/delete.json | 60 ++++----- .../netstandard/carrier_account/retrieve.json | 85 ++++++------- .../netstandard/carrier_account/types.json | 26 ++-- .../netstandard/carrier_account/update.json | 100 +++++++-------- .../netstandard/customs_info/create.json | 20 +-- .../netstandard/customs_info/retrieve.json | 42 +++---- .../netstandard/customs_item/create.json | 20 +-- .../netstandard/customs_item/retrieve.json | 44 +++---- .../netstandard/end_shipper/all.json | 44 +++---- .../netstandard/end_shipper/create.json | 18 +-- .../netstandard/end_shipper/retrieve.json | 39 +++--- .../netstandard/end_shipper/update.json | 38 +++--- .../netstandard/error/bad_parameters.json | 14 +-- .../cassettes/netstandard/event/all.json | 19 ++- .../cassettes/netstandard/event/retrieve.json | 45 +++---- .../cassettes/netstandard/insurance/all.json | 21 ++-- .../netstandard/insurance/create.json | 42 +++---- .../netstandard/insurance/retrieve.json | 65 +++++----- .../cassettes/netstandard/order/buy.json | 43 +++---- .../cassettes/netstandard/order/create.json | 18 +-- .../netstandard/order/get_rates.json | 44 +++---- .../netstandard/order/lowest_rate.json | 16 +-- .../cassettes/netstandard/order/retrieve.json | 47 ++++--- .../cassettes/netstandard/parcel/create.json | 20 +-- .../netstandard/parcel/retrieve.json | 42 +++---- .../cassettes/netstandard/pickup/buy.json | 69 ++++++----- .../cassettes/netstandard/pickup/cancel.json | 115 +++++------------- .../cassettes/netstandard/pickup/create.json | 42 +++---- .../netstandard/pickup/lowest_rate.json | 42 +++---- .../netstandard/pickup/retrieve.json | 58 ++++----- .../cassettes/netstandard/rate/retrieve.json | 44 +++---- .../cassettes/netstandard/refund/all.json | 20 +-- .../cassettes/netstandard/refund/create.json | 58 ++++----- .../netstandard/refund/retrieve.json | 104 ++++++++-------- .../cassettes/netstandard/report/all.json | 19 ++- .../netstandard/report/create_report.json | 16 +-- ...create_report_with_additional_columns.json | 18 +-- .../report/create_report_with_columns.json | 18 +-- .../netstandard/report/retrieve_report.json | 40 +++--- .../cassettes/netstandard/scan_form/all.json | 18 +-- .../netstandard/scan_form/create.json | 45 ++++--- .../netstandard/scan_form/retrieve.json | 62 +++++----- .../cassettes/netstandard/shipment/all.json | 20 +-- .../cassettes/netstandard/shipment/buy.json | 40 +++--- .../buy_shipment_with_carbon_offset.json | 42 +++---- .../netstandard/shipment/convert_label.json | 39 +++--- .../netstandard/shipment/create.json | 18 +-- .../shipment/create_empty_objects.json | 20 +-- .../create_shipment_with_carbon_offset.json | 18 +-- .../shipment/create_tax_identifiers.json | 20 +-- .../netstandard/shipment/insure.json | 38 +++--- .../netstandard/shipment/lowest_rate.json | 18 +-- .../shipment/lowest_smartrate_instance.json | 37 +++--- .../shipment/lowest_smartrate_static.json | 36 +++--- ..._call_buy_shipment_with_carbon_offset.json | 18 +-- .../netstandard/shipment/refund.json | 37 +++--- .../shipment/regenerate_rates.json | 40 +++--- .../regenerate_rates_with_carbon_offset.json | 36 +++--- .../netstandard/shipment/retrieve.json | 37 +++--- .../netstandard/shipment/smartrate.json | 37 +++--- .../cassettes/netstandard/tracker/all.json | 20 +-- .../cassettes/netstandard/tracker/create.json | 20 +-- .../netstandard/tracker/create_list.json | 50 ++++---- .../netstandard/tracker/retrieve.json | 42 +++---- .../cassettes/netstandard/user/create.json | 76 ++++++------ .../cassettes/netstandard/user/delete.json | 58 ++++----- .../cassettes/netstandard/user/retrieve.json | 88 +++++++------- .../netstandard/user/retrieve_me.json | 44 +++---- .../cassettes/netstandard/user/update.json | 99 +++++++-------- .../netstandard/user/update_brand.json | 94 +++++++------- .../cassettes/netstandard/webhook/all.json | 45 +++---- .../cassettes/netstandard/webhook/create.json | 85 +++++++------ .../cassettes/netstandard/webhook/delete.json | 85 ++++++------- .../netstandard/webhook/retrieve.json | 85 ++++++------- .../cassettes/netstandard/webhook/update.json | 100 +++++++-------- 188 files changed, 3938 insertions(+), 4033 deletions(-) diff --git a/EasyPost.Tests/BatchTest.cs b/EasyPost.Tests/BatchTest.cs index f5f305845..c79635dfd 100644 --- a/EasyPost.Tests/BatchTest.cs +++ b/EasyPost.Tests/BatchTest.cs @@ -100,6 +100,11 @@ public async Task TestCreateScanForm() Batch batch = await CreateOneCallBuyBatch(); + if (IsRecording()) // Yes, this is needed. Otherwise, the API says we can't modify a batch while it's being created. + { + Thread.Sleep(10000); // Wait enough time to process + } + batch = await batch.Buy(); if (IsRecording()) @@ -121,6 +126,11 @@ public async Task TestLabel() Batch batch = await CreateOneCallBuyBatch(); + if (IsRecording()) // Yes, this is needed. Otherwise, the API says we can't modify a batch while it's being created. + { + Thread.Sleep(10000); // Wait enough time to process + } + batch = await batch.Buy(); if (IsRecording()) diff --git a/EasyPost.Tests/Fixture.cs b/EasyPost.Tests/Fixture.cs index f46b53dd5..623e099b6 100644 --- a/EasyPost.Tests/Fixture.cs +++ b/EasyPost.Tests/Fixture.cs @@ -107,7 +107,7 @@ public static Dictionary BasicPickup { get { - const string pickupDate = "2022-08-25"; + const string pickupDate = "2022-09-09"; return new Dictionary { { "address", BasicAddress }, diff --git a/EasyPost.Tests/cassettes/net/address/all.json b/EasyPost.Tests/cassettes/net/address/all.json index 13bd10641..467458808 100644 --- a/EasyPost.Tests/cassettes/net/address/all.json +++ b/EasyPost.Tests/cassettes/net/address/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 236, - "RecordedAt": "2022-08-24T13:53:33.520297-06:00", + "Duration": 322, + "RecordedAt": "2022-09-07T14:53:57.99197-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/addresses?page_size=5" }, "Response": { - "Body": "{\"addresses\":[{\"id\":\"adr_6f54480e23e611ed8ee3ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},{\"id\":\"adr_6f52717723e611eda15bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},{\"id\":\"adr_6f3959d723e611ed88d9ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},{\"id\":\"adr_6f130c5923e611ed8ec7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},{\"id\":\"adr_6f11b77f23e611eda141ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}],\"has_more\":true}", + "Body": "{\"addresses\":[{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},{\"id\":\"adr_3166e1072eef11eda089ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},{\"id\":\"adr_3166c2082eef11ed8fd1ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},{\"id\":\"adr_3164862d2eef11ed987eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},{\"id\":\"adr_316495352eef11ed987fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "2675" + "Content-Length": "2301" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,15 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681bdf7a8e6ad00794b81", + "x-ep-request-uuid": "3bde9a27631904e6e799fa43002e0cad", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"8a78bd6e6f2a6d445d76838a0f49d49b\"", - "x-runtime": "0.041141", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"b4a0d0767afa295af1c9c8185ae67f6c\"", + "x-runtime": "0.037155", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/address/create.json b/EasyPost.Tests/cassettes/net/address/create.json index a6812dfce..b8f60d857 100644 --- a/EasyPost.Tests/cassettes/net/address/create.json +++ b/EasyPost.Tests/cassettes/net/address/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 280, - "RecordedAt": "2022-08-24T13:53:32.378537-06:00", + "Duration": 295, + "RecordedAt": "2022-09-07T14:53:56.509591-06:00", "Request": { "Body": "{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses" }, "Response": { - "Body": "{\"id\":\"adr_6eb1dabe23e611eda114ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", + "Body": "{\"id\":\"adr_30995cd82eef11ed9824ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bcf7efa83200794aac", + "x-ep-request-uuid": "3bde9a29631904e4e799f6ec002e0bf9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_6eb1dabe23e611eda114ac1f6bc72124", - "ETag": "W/\"faf68d4f120855df758ccd7bf595b4a6\"", - "x-runtime": "0.099993", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_30995cd82eef11ed9824ac1f6bc72124", + "ETag": "W/\"29ce331ba6f5fa61e57cf4c8427c34e8\"", + "x-runtime": "0.035693", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/address/create_and_verify.json b/EasyPost.Tests/cassettes/net/address/create_and_verify.json index 829f99c9a..63ea0af0b 100644 --- a/EasyPost.Tests/cassettes/net/address/create_and_verify.json +++ b/EasyPost.Tests/cassettes/net/address/create_and_verify.json @@ -1,7 +1,7 @@ [ { - "Duration": 244, - "RecordedAt": "2022-08-24T13:53:33.268761-06:00", + "Duration": 319, + "RecordedAt": "2022-09-07T14:53:57.644658-06:00", "Request": { "Body": "{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"verify_strict\":[true]}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses/create_and_verify" }, "Response": { - "Body": "{\"address\":{\"id\":\"adr_6f3959d723e611ed88d9ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}}", + "Body": "{\"address\":{\"id\":\"adr_314722512eef11ed9874ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bdf7b9ef9600794b56", + "x-ep-request-uuid": "3bde9a27631904e5e799fa24002e0c86", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_6f3959d723e611ed88d9ac1f6b0a0d1e", - "ETag": "W/\"19949e2213bff6251c8dbf8391a37225\"", - "x-runtime": "0.048069", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_314722512eef11ed9874ac1f6bc72124", + "ETag": "W/\"ea19e0dba1e7d0f74a1cd786bb41b07e\"", + "x-runtime": "0.046089", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/address/create_verify.json b/EasyPost.Tests/cassettes/net/address/create_verify.json index 791d631ac..bd60ae5c1 100644 --- a/EasyPost.Tests/cassettes/net/address/create_verify.json +++ b/EasyPost.Tests/cassettes/net/address/create_verify.json @@ -1,7 +1,7 @@ [ { - "Duration": 237, - "RecordedAt": "2022-08-24T13:53:32.633327-06:00", + "Duration": 303, + "RecordedAt": "2022-09-07T14:53:56.842664-06:00", "Request": { "Body": "{\"verify\":[true],\"street1\":\"417 montgomery street\",\"street2\":\"FL 5\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94104\",\"country\":\"US\",\"company\":\"EasyPost\",\"phone\":\"\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses" }, "Response": { - "Body": "{\"id\":\"adr_6ed8d57f23e611ed88adac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":null,\"company\":\"EASYPOST\",\"street1\":\"417 MONTGOMERY ST FL 5\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94104-1129\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[{\"code\":\"E.SECONDARY_INFORMATION.INVALID\",\"field\":\"street2\",\"message\":\"Invalid secondary information(Apt/Suite#)\",\"suggestion\":null}],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[{\"code\":\"E.SECONDARY_INFORMATION.INVALID\",\"field\":\"street2\",\"message\":\"Invalid secondary information(Apt/Suite#)\",\"suggestion\":null}],\"details\":{\"latitude\":37.79342,\"longitude\":-122.40288,\"time_zone\":\"America/Los_Angeles\"}}}}", + "Body": "{\"id\":\"adr_30cc4ea42eef11ed9841ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":null,\"company\":\"EASYPOST\",\"street1\":\"417 MONTGOMERY ST FL 5\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94104-1129\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[{\"code\":\"E.SECONDARY_INFORMATION.INVALID\",\"field\":\"street2\",\"message\":\"Invalid secondary information(Apt/Suite#)\",\"suggestion\":null}],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[{\"code\":\"E.SECONDARY_INFORMATION.INVALID\",\"field\":\"street2\",\"message\":\"Invalid secondary information(Apt/Suite#)\",\"suggestion\":null}],\"details\":{\"latitude\":37.79342,\"longitude\":-122.40288,\"time_zone\":\"America/Los_Angeles\"}}}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bcf7eea13e00794ae6", + "x-ep-request-uuid": "3bde9a28631904e4e799f70a002e0c20", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_6ed8d57f23e611ed88adac1f6b0a0d1e", - "ETag": "W/\"df69bd26928ecbfa37d88f6e0bbd6d9e\"", - "x-runtime": "0.042237", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_30cc4ea42eef11ed9841ac1f6bc72124", + "ETag": "W/\"b768a7fec27bd233232ddfeb3aa72898\"", + "x-runtime": "0.060502", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/address/create_verify_strict.json b/EasyPost.Tests/cassettes/net/address/create_verify_strict.json index 1c8320fbc..7f93be0da 100644 --- a/EasyPost.Tests/cassettes/net/address/create_verify_strict.json +++ b/EasyPost.Tests/cassettes/net/address/create_verify_strict.json @@ -1,7 +1,7 @@ [ { - "Duration": 404, - "RecordedAt": "2022-08-24T13:53:31.649683-06:00", + "Duration": 420, + "RecordedAt": "2022-09-07T14:53:55.517329-06:00", "Request": { "Body": "{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"verify_strict\":[true]}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses" }, "Response": { - "Body": "{\"id\":\"adr_6e427f0423e611eda0f4ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}", + "Body": "{\"id\":\"adr_2ff9e6422eef11ed97d0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681bbf7b698ee00794a42", + "x-ep-request-uuid": "3bde9a2a631904e3e799f68b002e0b86", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_6e427f0423e611eda0f4ac1f6bc72124", - "ETag": "W/\"9b2c772d590f882a14a4cd09763e5abb\"", - "x-runtime": "0.041535", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_2ff9e6422eef11ed97d0ac1f6bc72124", + "ETag": "W/\"0e64f8752e18b2f36b6b0aae1b2dd427\"", + "x-runtime": "0.056874", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/address/retrieve.json b/EasyPost.Tests/cassettes/net/address/retrieve.json index 661b4139b..a4fd5c150 100644 --- a/EasyPost.Tests/cassettes/net/address/retrieve.json +++ b/EasyPost.Tests/cassettes/net/address/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 254, - "RecordedAt": "2022-08-24T13:53:31.970482-06:00", + "Duration": 380, + "RecordedAt": "2022-09-07T14:53:56.040726-06:00", "Request": { "Body": "{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses" }, "Response": { - "Body": "{\"id\":\"adr_6e7373b323e611ed8889ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", + "Body": "{\"id\":\"adr_305174d12eef11ed9802ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bcf7cb887300794a72", + "x-ep-request-uuid": "3bde9a2a631904e4e799f6cd002e0bcb", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_6e7373b323e611ed8889ac1f6b0a0d1e", - "ETag": "W/\"0acd71ce610680877be49bb457d1a9b4\"", - "x-runtime": "0.029013", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_305174d12eef11ed9802ac1f6bc72124", + "ETag": "W/\"e6ce679dd6ca44da9c84751d87771bc4\"", + "x-runtime": "0.035806", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 61, - "RecordedAt": "2022-08-24T13:53:32.058776-06:00", + "Duration": 111, + "RecordedAt": "2022-09-07T14:53:56.166302-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/addresses/adr_6e7373b323e611ed8889ac1f6b0a0d1e" + "Uri": "https://api.easypost.com/v2/addresses/adr_305174d12eef11ed9802ac1f6bc72124" }, "Response": { - "Body": "{\"id\":\"adr_6e7373b323e611ed8889ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", + "Body": "{\"id\":\"adr_305174d12eef11ed9802ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bcf7cb887300794a83", + "x-ep-request-uuid": "3bde9a2a631904e4e799f6cd002e0bda", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"0acd71ce610680877be49bb457d1a9b4\"", - "x-runtime": "0.024295", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"e6ce679dd6ca44da9c84751d87771bc4\"", + "x-runtime": "0.031889", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/address/verify.json b/EasyPost.Tests/cassettes/net/address/verify.json index 2a1da4f37..e7ff287b5 100644 --- a/EasyPost.Tests/cassettes/net/address/verify.json +++ b/EasyPost.Tests/cassettes/net/address/verify.json @@ -1,7 +1,7 @@ [ { - "Duration": 227, - "RecordedAt": "2022-08-24T13:53:32.887245-06:00", + "Duration": 301, + "RecordedAt": "2022-09-07T14:53:57.165347-06:00", "Request": { "Body": "{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses" }, "Response": { - "Body": "{\"id\":\"adr_6efd377a23e611ed8ebeac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", + "Body": "{\"id\":\"adr_30fdc4b72eef11edb628ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681bcf7b7294d00794b0e", + "x-ep-request-uuid": "3bde9a25631904e5e799fa1f002e0c4f", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_6efd377a23e611ed8ebeac1f6bc7b362", - "ETag": "W/\"444bcbbbb97ef235393bcafb3d866efc\"", - "x-runtime": "0.040264", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_30fdc4b72eef11edb628ac1f6bc7bdc6", + "ETag": "W/\"670be9597db443e4fc6f0ebedabcb614\"", + "x-runtime": "0.033284", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 84, - "RecordedAt": "2022-08-24T13:53:33.005685-06:00", + "Duration": 110, + "RecordedAt": "2022-09-07T14:53:57.306811-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/addresses/adr_6efd377a23e611ed8ebeac1f6bc7b362/verify" + "Uri": "https://api.easypost.com/v2/addresses/adr_30fdc4b72eef11edb628ac1f6bc7bdc6/verify" }, "Response": { - "Body": "{\"address\":{\"id\":\"adr_6f11b77f23e611eda141ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}}", + "Body": "{\"address\":{\"id\":\"adr_311379f12eef11ed985eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,16 +84,17 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681bdf7b7294d00794b21", + "x-ep-request-uuid": "3bde9a25631904e5e799fa1f002e0c5b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_6f11b77f23e611eda141ac1f6bc72124", - "ETag": "W/\"9141b523756fb80f58bde100fb219ae1\"", - "x-runtime": "0.046927", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_311379f12eef11ed985eac1f6bc72124", + "ETag": "W/\"9c254f98f45f9bee2f58680b111a1e85\"", + "x-runtime": "0.049866", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,5 +102,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/api_key/all_api_keys.json b/EasyPost.Tests/cassettes/net/api_key/all_api_keys.json index acbbf26db..83eb408a0 100644 --- a/EasyPost.Tests/cassettes/net/api_key/all_api_keys.json +++ b/EasyPost.Tests/cassettes/net/api_key/all_api_keys.json @@ -1,7 +1,7 @@ [ { - "Duration": 634, - "RecordedAt": "2022-08-30T15:17:41.029541-06:00", + "Duration": 490, + "RecordedAt": "2022-09-07T14:53:55.542593-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -31,15 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96af630e7e74e788558300113918", + "x-ep-request-uuid": "3bde9a29631904e3e799f6c4002e0b92", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", "ETag": "W/\"d2c7f1cab89f9296401d89b317b2fa3a\"", - "x-runtime": "0.143080", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "x-runtime": "0.034260", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/batch/add_remove_shipments.json b/EasyPost.Tests/cassettes/net/batch/add_remove_shipments.json index 71b87305f..57aae8fae 100644 --- a/EasyPost.Tests/cassettes/net/batch/add_remove_shipments.json +++ b/EasyPost.Tests/cassettes/net/batch/add_remove_shipments.json @@ -1,7 +1,7 @@ [ { - "Duration": 191, - "RecordedAt": "2022-08-24T13:53:44.921864-06:00", + "Duration": 225, + "RecordedAt": "2022-09-07T14:57:54.406874-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:44Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780616\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_7599a00e23e611ed911dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:44-06:00\",\"updated_at\":\"2022-08-24T13:53:44-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_ebaeb7f8c46442e8ab7d0e3f64ba8cc3\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:44Z\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_8f6ed312981d4965b8af9cc2665adc60\",\"created_at\":\"2022-08-24T19:53:44Z\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:44Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/1f882f7e0e0b407ea6ac385d1de3b2cd.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e46e07ad31274a6084476aeb970ab11b\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:44Z\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c3710c0ebe464e168632f7766378f084\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:44Z\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e0f26315d68a402b860e23548ba921e0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:44Z\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_95308ede7fd8492692b83d0ff2fefe9d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:44Z\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_e46e07ad31274a6084476aeb970ab11b\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:44Z\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_889ee604857a4870bf548e1e552e3d76\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780616\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:44Z\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzg4OWVlNjA0ODU3YTQ4NzBiZjU0OGUxZTU1MmUzZDc2\"},\"to_address\":{\"id\":\"adr_7598351c23e611eda3a4ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:44-06:00\",\"updated_at\":\"2022-08-24T13:53:44-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_7599a00e23e611ed911dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:44-06:00\",\"updated_at\":\"2022-08-24T13:53:44-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_7598351c23e611eda3a4ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:44-06:00\",\"updated_at\":\"2022-08-24T13:53:44-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:57:53Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478320\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:57:53-06:00\",\"updated_at\":\"2022-09-07T14:57:53-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_cbc16896e7e644b68cd189c7d2909660\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:57:53Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_a3f237a81ebc4de9a2a37d4543221935\",\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:57:54Z\",\"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/20220907/ab959cda5e3d4492bfb9a0af75fe1117.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_6c55f7d6fee5453da1b37ab36d42aaa8\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:57:53Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_868daa7a154640d5a22959c3b34e539d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:57:53Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:57:53Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6a5f8624c40e4b98b74815af07eea390\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:57:53Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_392924bb796a4aaa836a0f818b565fb7\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478320\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzM5MjkyNGJiNzk2YTRhYWE4MzZhMGY4MThiNTY1ZmI3\"},\"to_address\":{\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:57:53-06:00\",\"updated_at\":\"2022-09-07T14:57:53-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:57:53-06:00\",\"updated_at\":\"2022-09-07T14:57:53-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:57:53-06:00\",\"updated_at\":\"2022-09-07T14:57:53-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681c8f7a7ce2b00795092", + "x-ep-request-uuid": "3bde9a2b631905d1e799fb4f002e5105", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_810fc503aa214ec0a74e2a5bb0e3243c", - "ETag": "W/\"854d0b208329cd51a9c85111465e5a77\"", - "x-runtime": "0.950159", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_2ceb28765894462a9a8da67a3fbe7871", + "ETag": "W/\"15bb03ce387bf0c2a112f738b6f33e9a\"", + "x-runtime": "0.946092", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 70, - "RecordedAt": "2022-08-24T13:53:45.02128-06:00", + "Duration": 98, + "RecordedAt": "2022-09-07T14:57:54.608336-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -69,12 +69,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_18e7af1280294fc88095670f530e93f6\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-08-24T19:53:45Z\",\"updated_at\":\"2022-08-24T19:53:45Z\",\"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}", + "Body": "{\"id\":\"batch_55c39599290e4aca8016231009defb94\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "383" + "Content-Length": "401" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -84,15 +84,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681c9f7a7ce2b00795112", + "x-ep-request-uuid": "3bde9a2b631905d2e799fb4f002e5144", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"c2c4d9080e4ddb019813eca9480db1f6\"", - "x-runtime": "0.031244", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"899e10f78523450f053579cff4578c15\"", + "x-runtime": "0.029485", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, @@ -103,14 +102,14 @@ } }, { - "Duration": 90, - "RecordedAt": "2022-08-24T13:53:45.127617-06:00", + "Duration": 122, + "RecordedAt": "2022-09-07T14:57:54.801803-06:00", "Request": { - "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"adr_7598351c23e611eda3a4ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"adr_7599a00e23e611ed911dac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"prcl_ebaeb7f8c46442e8ab7d0e3f64ba8cc3\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:44Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/1f882f7e0e0b407ea6ac385d1de3b2cd.png\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"pl_8f6ed312981d4965b8af9cc2665adc60\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"rate_e46e07ad31274a6084476aeb970ab11b\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"rate_c3710c0ebe464e168632f7766378f084\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"rate_e0f26315d68a402b860e23548ba921e0\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"rate_95308ede7fd8492692b83d0ff2fefe9d\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"adr_7599a00e23e611ed911dac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"rate_e46e07ad31274a6084476aeb970ab11b\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"adr_7598351c23e611eda3a4ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzg4OWVlNjA0ODU3YTQ4NzBiZjU0OGUxZTU1MmUzZDc2\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780616\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"trk_889ee604857a4870bf548e1e552e3d76\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780616\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Shipment\"}]}", + "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"prcl_cbc16896e7e644b68cd189c7d2909660\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:57:54Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/ab959cda5e3d4492bfb9a0af75fe1117.png\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"pl_a3f237a81ebc4de9a2a37d4543221935\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_6c55f7d6fee5453da1b37ab36d42aaa8\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_868daa7a154640d5a22959c3b34e539d\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_6a5f8624c40e4b98b74815af07eea390\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzM5MjkyNGJiNzk2YTRhYWE4MzZhMGY4MThiNTY1ZmI3\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478320\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"trk_392924bb796a4aaa836a0f818b565fb7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478320\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Shipment\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6024" + "Content-Length": "6000" }, "Method": "POST", "RequestHeaders": { @@ -119,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_18e7af1280294fc88095670f530e93f6/add_shipments" + "Uri": "https://api.easypost.com/v2/batches/batch_55c39599290e4aca8016231009defb94/add_shipments" }, "Response": { - "Body": "{\"id\":\"batch_18e7af1280294fc88095670f530e93f6\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:45Z\",\"updated_at\":\"2022-08-24T19:53:45Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361134780616\",\"id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_55c39599290e4aca8016231009defb94\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361136478320\",\"id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -137,15 +136,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681c9f7a7ce2b0079511e", + "x-ep-request-uuid": "3bde9a2b631905d2e799fb4f002e514f", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6fcc53cef9184923775b94831f68b6ab\"", - "x-runtime": "0.045295", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"4e5c8927be1202cd569354f7d8c5fe28\"", + "x-runtime": "0.050529", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, @@ -156,14 +154,14 @@ } }, { - "Duration": 82, - "RecordedAt": "2022-08-24T13:53:45.228396-06:00", + "Duration": 125, + "RecordedAt": "2022-09-07T14:57:54.95046-06:00", "Request": { - "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"adr_7598351c23e611eda3a4ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"adr_7599a00e23e611ed911dac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"prcl_ebaeb7f8c46442e8ab7d0e3f64ba8cc3\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:44Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/1f882f7e0e0b407ea6ac385d1de3b2cd.png\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"pl_8f6ed312981d4965b8af9cc2665adc60\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"rate_e46e07ad31274a6084476aeb970ab11b\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"rate_c3710c0ebe464e168632f7766378f084\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"rate_e0f26315d68a402b860e23548ba921e0\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"rate_95308ede7fd8492692b83d0ff2fefe9d\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"adr_7599a00e23e611ed911dac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"rate_e46e07ad31274a6084476aeb970ab11b\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"adr_7598351c23e611eda3a4ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzg4OWVlNjA0ODU3YTQ4NzBiZjU0OGUxZTU1MmUzZDc2\",\"shipment_id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780616\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"trk_889ee604857a4870bf548e1e552e3d76\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780616\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:44Z\",\"id\":\"shp_810fc503aa214ec0a74e2a5bb0e3243c\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"object\":\"Shipment\"}]}", + "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"prcl_cbc16896e7e644b68cd189c7d2909660\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:57:54Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/ab959cda5e3d4492bfb9a0af75fe1117.png\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"pl_a3f237a81ebc4de9a2a37d4543221935\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_6c55f7d6fee5453da1b37ab36d42aaa8\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_868daa7a154640d5a22959c3b34e539d\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_6a5f8624c40e4b98b74815af07eea390\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzM5MjkyNGJiNzk2YTRhYWE4MzZhMGY4MThiNTY1ZmI3\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478320\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"trk_392924bb796a4aaa836a0f818b565fb7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478320\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Shipment\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6024" + "Content-Length": "6000" }, "Method": "POST", "RequestHeaders": { @@ -172,10 +170,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_18e7af1280294fc88095670f530e93f6/remove_shipments" + "Uri": "https://api.easypost.com/v2/batches/batch_55c39599290e4aca8016231009defb94/remove_shipments" }, "Response": { - "Body": "{\"id\":\"batch_18e7af1280294fc88095670f530e93f6\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-08-24T19:53:45Z\",\"updated_at\":\"2022-08-24T19:53:45Z\",\"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}", + "Body": "{\"id\":\"batch_55c39599290e4aca8016231009defb94\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -190,16 +188,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681c9f7a7ce2b0079512b", + "x-ep-request-uuid": "3bde9a2b631905d2e799fb4f002e5156", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"5884cf634db577972a08ff52dc2fa246\"", - "x-runtime": "0.038564", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"2e64f604c8eceef05461ce6472a1d569\"", + "x-runtime": "0.049944", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -207,5 +204,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/batch/all.json b/EasyPost.Tests/cassettes/net/batch/all.json index 010f3e0c5..1eb924492 100644 --- a/EasyPost.Tests/cassettes/net/batch/all.json +++ b/EasyPost.Tests/cassettes/net/batch/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 322, - "RecordedAt": "2022-08-24T13:53:43.698209-06:00", + "Duration": 328, + "RecordedAt": "2022-09-07T14:57:53.151748-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/batches?page_size=5" }, "Response": { - "Body": "{\"batches\":[{\"id\":\"batch_8e8de7ecda584fa8b347a67a3158518b\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-07-29T22:21:29Z\",\"updated_at\":\"2022-07-29T22:21:29Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361130690742\",\"id\":\"shp_0205a0ae381f44d18b3d7e81e8d543c6\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":{\"id\":\"pickup_232eeabbdacf471b9aef9e6a5140904a\",\"object\":\"Pickup\",\"created_at\":\"2022-07-29T22:21:29Z\",\"updated_at\":\"2022-07-29T22:21:29Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-06-04T00:00:00Z\",\"max_datetime\":\"2022-06-04T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_cae205140f8c11edad58ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-07-29T16:21:29-06:00\",\"updated_at\":\"2022-07-29T16:21:29-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"carrier_accounts\":[],\"pickup_rates\":[]},\"label_url\":null},{\"id\":\"batch_4e4391bff1f744daa85da0d6c1aa55a8\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-07-29T22:21:31Z\",\"updated_at\":\"2022-07-29T22:21:31Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361130690759\",\"id\":\"shp_f0790789429847e49cd1673e741b117a\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":{\"id\":\"pickup_a160908a99d64008aae29b546fd3b1f1\",\"object\":\"Pickup\",\"created_at\":\"2022-07-29T22:21:31Z\",\"updated_at\":\"2022-07-29T22:21:31Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-06-04T00:00:00Z\",\"max_datetime\":\"2022-06-04T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_cbfbe8b60f8c11ed9bb0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-07-29T16:21:31-06:00\",\"updated_at\":\"2022-07-29T16:21:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"carrier_accounts\":[],\"pickup_rates\":[]},\"label_url\":null},{\"id\":\"batch_70a4c528844b48109392e4b0db9be994\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-07-29T22:21:33Z\",\"updated_at\":\"2022-07-29T22:21:33Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361130690766\",\"id\":\"shp_64548fe835d246f0a7ace6b98320dd62\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":{\"id\":\"pickup_b688ada25e6f468ab2bb0db85040a76d\",\"object\":\"Pickup\",\"created_at\":\"2022-07-29T22:21:33Z\",\"updated_at\":\"2022-07-29T22:21:33Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-06-04T00:00:00Z\",\"max_datetime\":\"2022-06-04T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_cd40d6600f8c11ed9bf0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-07-29T16:21:33-06:00\",\"updated_at\":\"2022-07-29T16:21:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"carrier_accounts\":[],\"pickup_rates\":[]},\"label_url\":null},{\"id\":\"batch_b3e21f523c804635b077ac60d7d2386f\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-07-29T22:21:35Z\",\"updated_at\":\"2022-07-29T22:21:35Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361130690773\",\"id\":\"shp_ff1aa920a9ce494299392ca9d2b813eb\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":{\"id\":\"pickup_a5676eb5e5d94b26adfbc815eb7f71e6\",\"object\":\"Pickup\",\"created_at\":\"2022-07-29T22:21:35Z\",\"updated_at\":\"2022-07-29T22:21:35Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-06-04T00:00:00Z\",\"max_datetime\":\"2022-06-04T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_ce6658d70f8c11eda317ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-07-29T16:21:35-06:00\",\"updated_at\":\"2022-07-29T16:21:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"carrier_accounts\":[],\"pickup_rates\":[]},\"label_url\":null},{\"id\":\"batch_52b03eae64984fc5bf7fcdf0c9540163\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-07-29T22:21:36Z\",\"updated_at\":\"2022-07-29T22:21:36Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361130690797\",\"id\":\"shp_774a97e2d2974de1a65aee89c51288ba\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":{\"id\":\"pickup_a04ba9b84619421d99baa57777aa5e3c\",\"object\":\"Pickup\",\"created_at\":\"2022-07-29T22:21:37Z\",\"updated_at\":\"2022-07-29T22:21:37Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-06-04T00:00:00Z\",\"max_datetime\":\"2022-06-04T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_cf812bd20f8c11edae5cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-07-29T16:21:36-06:00\",\"updated_at\":\"2022-07-29T16:21:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"carrier_accounts\":[],\"pickup_rates\":[]},\"label_url\":null}],\"has_more\":true}", + "Body": "{\"batches\":[{\"id\":\"batch_41e9aaf17d6643d7a1cfb6732df5ecb5\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-08T23:33:53Z\",\"updated_at\":\"2022-08-08T23:33:53Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_8529e9fea32140709ffcef01e7d50052\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null},{\"id\":\"batch_fa9fec53024d4cc8b3e2a99cc69a29a8\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-08T23:33:53Z\",\"updated_at\":\"2022-08-08T23:33:53Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_6ea38acae3e6400faf4e7e0f151651e4\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null},{\"id\":\"batch_c2f965d123bf4dd09b413ff378668122\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-08T23:33:53Z\",\"updated_at\":\"2022-08-08T23:33:53Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_740837f18d3d47388ce18981113f1578\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null},{\"id\":\"batch_39ead6df77784bb3a8fe4306f9bff29a\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-08T23:34:35Z\",\"updated_at\":\"2022-08-08T23:34:35Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_81ae8d11eb4f4ad680d84a6f617aed67\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null},{\"id\":\"batch_c86a3c7460da4b80af5aa1e5631cb3a6\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-08T23:34:35Z\",\"updated_at\":\"2022-08-08T23:34:35Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_f6d23f58374347fc8ad8215f9df09aa6\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "7064" + "Content-Length": "2594" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,13 +31,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681c7f7cd313700795065", + "x-ep-request-uuid": "3bde9a27631905d1e799fb4e002e50e9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"8ba166741283759ced4cacd0cf973fe9\"", - "x-runtime": "0.143455", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"5c1208ab5ed3aec43155cd3045185046\"", + "x-runtime": "0.075468", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/batch/buy.json b/EasyPost.Tests/cassettes/net/batch/buy.json index eee753e5c..c264df06e 100644 --- a/EasyPost.Tests/cassettes/net/batch/buy.json +++ b/EasyPost.Tests/cassettes/net/batch/buy.json @@ -1,7 +1,7 @@ [ { - "Duration": 416, - "RecordedAt": "2022-08-24T13:53:31.656986-06:00", + "Duration": 424, + "RecordedAt": "2022-09-07T14:57:30.444153-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_e92cdfd361be46caa43e7381a1e8f5ac\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"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}", + "Body": "{\"id\":\"batch_01cfacc536304a52b4c6f7255b976e8e\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:30Z\",\"updated_at\":\"2022-09-07T20:57:30Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681bbe68cd60b00794a43", + "x-ep-request-uuid": "3bde9a2b631905bae799fb47002e4b2c", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"1d898eb9da087a39d7802bd255023e4f\"", - "x-runtime": "0.048519", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"305442efd5e7d351c690dc14f10cad29\"", + "x-runtime": "0.053307", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -52,8 +52,8 @@ } }, { - "Duration": 198, - "RecordedAt": "2022-08-24T13:53:31.920964-06:00", + "Duration": 129, + "RecordedAt": "2022-09-07T14:57:30.698788-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_e92cdfd361be46caa43e7381a1e8f5ac/buy" + "Uri": "https://api.easypost.com/v2/batches/batch_01cfacc536304a52b4c6f7255b976e8e/buy" }, "Response": { - "Body": "{\"id\":\"batch_e92cdfd361be46caa43e7381a1e8f5ac\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_2b819f7907ee4331b47df1010cbee85e\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_01cfacc536304a52b4c6f7255b976e8e\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:30Z\",\"updated_at\":\"2022-09-07T20:57:30Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_9e956114141c42f3836df895d77a5d61\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,16 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681bbe68cd60b00794a53", + "x-ep-request-uuid": "3bde9a2b631905bae799fb47002e4b48", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"38387b14c4918aa98a67cee9ef471077\"", - "x-runtime": "0.151648", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"58585a6b87ff65f2029f9a1a5eb54a52\"", + "x-runtime": "0.058709", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -100,5 +99,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/batch/create.json b/EasyPost.Tests/cassettes/net/batch/create.json index 99010bf04..f4d4c9382 100644 --- a/EasyPost.Tests/cassettes/net/batch/create.json +++ b/EasyPost.Tests/cassettes/net/batch/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 217, - "RecordedAt": "2022-08-24T13:53:32.747016-06:00", + "Duration": 285, + "RecordedAt": "2022-09-07T14:57:31.765011-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_43a146522b6740eba4c83debffbed89e\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"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}", + "Body": "{\"id\":\"batch_882188004631472e8cb6fc483e6758ed\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:31Z\",\"updated_at\":\"2022-09-07T20:57:31Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bce68cb92400794aff", + "x-ep-request-uuid": "3bde9a29631905bbe799fb4a002e4b9d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"43de672c5e6b24d9f33dbcb0947c4bc0\"", - "x-runtime": "0.035700", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"0b3580c4827211f6037035f90e73d5da\"", + "x-runtime": "0.030982", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/batch/create_and_buy.json b/EasyPost.Tests/cassettes/net/batch/create_and_buy.json index 2baca66b5..07e29ad89 100644 --- a/EasyPost.Tests/cassettes/net/batch/create_and_buy.json +++ b/EasyPost.Tests/cassettes/net/batch/create_and_buy.json @@ -1,7 +1,7 @@ [ { - "Duration": 224, - "RecordedAt": "2022-08-24T13:53:32.512686-06:00", + "Duration": 293, + "RecordedAt": "2022-09-07T14:57:31.461203-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches/create_and_buy" }, "Response": { - "Body": "{\"id\":\"batch_d8638e8cdddc441fae393fa321b7c5c2\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"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}", + "Body": "{\"id\":\"batch_2d947642514a4f03887284497279092a\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:31Z\",\"updated_at\":\"2022-09-07T20:57:31Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681bcf8012bb300794ad2", + "x-ep-request-uuid": "3bde9a25631905bbe799fb49002e4b83", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"75a5603390b5e797e4730f0a2589ade8\"", - "x-runtime": "0.039068", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"30fcfb849506dc66cef93774156cc450\"", + "x-runtime": "0.034799", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/batch/create_scan_form.json b/EasyPost.Tests/cassettes/net/batch/create_scan_form.json index 7121b62bf..e0b2aa9a4 100644 --- a/EasyPost.Tests/cassettes/net/batch/create_scan_form.json +++ b/EasyPost.Tests/cassettes/net/batch/create_scan_form.json @@ -1,7 +1,7 @@ [ { - "Duration": 222, - "RecordedAt": "2022-08-24T13:53:32.986082-06:00", + "Duration": 315, + "RecordedAt": "2022-09-07T14:57:32.098263-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_9deb7a618b6d4a349cbd444bd2a05af1\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"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}", + "Body": "{\"id\":\"batch_edd16069b9134894ba1524fbcbda475b\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:32Z\",\"updated_at\":\"2022-09-07T20:57:32Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,16 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bdf7ed883c00794b1f", + "x-ep-request-uuid": "3bde9a29631905bce799fb4b002e4bb9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"493202669698ab1dceddb128c92436d9\"", - "x-runtime": "0.043104", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"eed80a88d0d123a90ff72a8aa934524d\"", + "x-runtime": "0.030606", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +52,8 @@ } }, { - "Duration": 86, - "RecordedAt": "2022-08-24T13:53:33.091871-06:00", + "Duration": 325, + "RecordedAt": "2022-09-07T14:57:42.447399-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_9deb7a618b6d4a349cbd444bd2a05af1/buy" + "Uri": "https://api.easypost.com/v2/batches/batch_edd16069b9134894ba1524fbcbda475b/buy" }, "Response": { - "Body": "{\"id\":\"batch_9deb7a618b6d4a349cbd444bd2a05af1\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_e735a06f00d24d83bef416a3cec46a75\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_edd16069b9134894ba1524fbcbda475b\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:32Z\",\"updated_at\":\"2022-09-07T20:57:32Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_f2508e1913614047b2603954cb5b8cbd\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,13 +83,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bdf7ed883c00794b31", + "x-ep-request-uuid": "3bde9a28631905c6e799fb4c002e4e4d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"1729ab6a8fcf8cf89c7685056c70d3bb\"", - "x-runtime": "0.049575", + "ETag": "W/\"4676e2f566a44926fcd1e7d596677cf7\"", + "x-runtime": "0.054613", "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -102,8 +101,8 @@ } }, { - "Duration": 244, - "RecordedAt": "2022-08-24T13:53:43.3544-06:00", + "Duration": 337, + "RecordedAt": "2022-09-07T14:57:52.798366-06:00", "Request": { "Body": "{\"file_format\":\"pdf\"}", "BodyContentType": "Json", @@ -118,10 +117,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_9deb7a618b6d4a349cbd444bd2a05af1/scan_form" + "Uri": "https://api.easypost.com/v2/batches/batch_edd16069b9134894ba1524fbcbda475b/scan_form" }, "Response": { - "Body": "{\"id\":\"batch_9deb7a618b6d4a349cbd444bd2a05af1\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:43Z\",\"scan_form\":{\"id\":\"sf_fe9723f9d8db4d03bfbcdf17f8d98c7f\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:43Z\",\"updated_at\":\"2022-08-24T19:53:43Z\",\"tracking_codes\":[],\"address\":null,\"status\":\"creating\",\"message\":null,\"form_url\":null,\"form_file_type\":null,\"batch_id\":\"batch_9deb7a618b6d4a349cbd444bd2a05af1\",\"confirmation\":null},\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361134780494\",\"id\":\"shp_e735a06f00d24d83bef416a3cec46a75\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_edd16069b9134894ba1524fbcbda475b\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:32Z\",\"updated_at\":\"2022-09-07T20:57:52Z\",\"scan_form\":{\"id\":\"sf_3c69ed79f08a47c89629e2ba869f32d1\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:57:52Z\",\"updated_at\":\"2022-09-07T20:57:52Z\",\"tracking_codes\":[],\"address\":null,\"status\":\"creating\",\"message\":null,\"form_url\":null,\"form_file_type\":null,\"batch_id\":\"batch_edd16069b9134894ba1524fbcbda475b\",\"confirmation\":null},\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361136478313\",\"id\":\"shp_f2508e1913614047b2603954cb5b8cbd\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -136,15 +135,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681c7f7cca99b0079504a", + "x-ep-request-uuid": "3bde9a25631905d0e799fb4d002e50d0", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"14d01b8ae72fd31a5209640432fb802f\"", - "x-runtime": "0.061486", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"89036c9d64b145be011d03bcefa332db\"", + "x-runtime": "0.069226", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -152,5 +151,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/batch/label.json b/EasyPost.Tests/cassettes/net/batch/label.json index cee6f7f51..48a5e7109 100644 --- a/EasyPost.Tests/cassettes/net/batch/label.json +++ b/EasyPost.Tests/cassettes/net/batch/label.json @@ -1,7 +1,7 @@ [ { - "Duration": 207, - "RecordedAt": "2022-08-24T13:53:45.457715-06:00", + "Duration": 311, + "RecordedAt": "2022-09-07T14:57:55.277457-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_36f8609e0d214769b6557dbd58690eb1\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:45Z\",\"updated_at\":\"2022-08-24T19:53:45Z\",\"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}", + "Body": "{\"id\":\"batch_5a5f7f7ae2e14da5a4bf95e19b67435c\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:55Z\",\"updated_at\":\"2022-09-07T20:57:55Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681c9e68d49840079514d", + "x-ep-request-uuid": "3bde9a2c631905d3e799fb50002e5169", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"5dd21ffac57033892087d29a8182de49\"", - "x-runtime": "0.035884", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"a124cc316287255472fc63eef7b73834\"", + "x-runtime": "0.051532", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 96, - "RecordedAt": "2022-08-24T13:53:45.567047-06:00", + "Duration": 308, + "RecordedAt": "2022-09-07T14:58:05.598119-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_36f8609e0d214769b6557dbd58690eb1/buy" + "Uri": "https://api.easypost.com/v2/batches/batch_5a5f7f7ae2e14da5a4bf95e19b67435c/buy" }, "Response": { - "Body": "{\"id\":\"batch_36f8609e0d214769b6557dbd58690eb1\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:45Z\",\"updated_at\":\"2022-08-24T19:53:45Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_706f87fba5ea4befb4cb05f3640fe411\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_5a5f7f7ae2e14da5a4bf95e19b67435c\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:55Z\",\"updated_at\":\"2022-09-07T20:57:55Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_bcd46a9b18d74e9dbf8dbe3cdf02d32d\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,13 +83,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681c9e68d498400795155", + "x-ep-request-uuid": "3bde9a2b631905dde79a6036002e53db", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"e81b25828ac96069ad196305287829cb\"", - "x-runtime": "0.059102", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"6a3442312044eae3162afb978c70ed55\"", + "x-runtime": "0.051693", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -101,8 +101,8 @@ } }, { - "Duration": 208, - "RecordedAt": "2022-08-24T13:53:55.792113-06:00", + "Duration": 291, + "RecordedAt": "2022-09-07T14:58:15.904311-06:00", "Request": { "Body": "{\"file_format\":\"ZPL\"}", "BodyContentType": "Json", @@ -117,10 +117,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_36f8609e0d214769b6557dbd58690eb1/label" + "Uri": "https://api.easypost.com/v2/batches/batch_5a5f7f7ae2e14da5a4bf95e19b67435c/label" }, "Response": { - "Body": "{\"id\":\"batch_36f8609e0d214769b6557dbd58690eb1\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"label_generating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:45Z\",\"updated_at\":\"2022-08-24T19:53:55Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361134780623\",\"id\":\"shp_706f87fba5ea4befb4cb05f3640fe411\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_5a5f7f7ae2e14da5a4bf95e19b67435c\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"label_generating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:55Z\",\"updated_at\":\"2022-09-07T20:58:15Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361136478351\",\"id\":\"shp_bcd46a9b18d74e9dbf8dbe3cdf02d32d\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -135,15 +135,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681d3e68c34c500795648", + "x-ep-request-uuid": "3bde9a28631905e7e79a6038002e56e5", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"a3205e43a36abf9e1c3aea6998785024\"", - "x-runtime": "0.032567", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"04a114900c7962c2ce38b328febea459\"", + "x-runtime": "0.031086", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -151,5 +151,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/batch/retrieve.json b/EasyPost.Tests/cassettes/net/batch/retrieve.json index d4ca9cfa9..d7a26add9 100644 --- a/EasyPost.Tests/cassettes/net/batch/retrieve.json +++ b/EasyPost.Tests/cassettes/net/batch/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 237, - "RecordedAt": "2022-08-24T13:53:32.177266-06:00", + "Duration": 296, + "RecordedAt": "2022-09-07T14:57:31.048701-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_cd702c36f6b041c684d9e1d8db29ac14\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"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}", + "Body": "{\"id\":\"batch_f6be859e67fd4528bb4b57f9f0ba5585\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:31Z\",\"updated_at\":\"2022-09-07T20:57:31Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681bcf7f0343100794a94", + "x-ep-request-uuid": "3bde9a2b631905bbe799fb48002e4b61", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"95968bfad0ac33bb07cb9fe38c84cd66\"", - "x-runtime": "0.048317", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"ac082924278cafa201f21d844762b31f\"", + "x-runtime": "0.038388", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 60, - "RecordedAt": "2022-08-24T13:53:32.256033-06:00", + "Duration": 81, + "RecordedAt": "2022-09-07T14:57:31.147269-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_cd702c36f6b041c684d9e1d8db29ac14" + "Uri": "https://api.easypost.com/v2/batches/batch_f6be859e67fd4528bb4b57f9f0ba5585" }, "Response": { - "Body": "{\"id\":\"batch_cd702c36f6b041c684d9e1d8db29ac14\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"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}", + "Body": "{\"id\":\"batch_f6be859e67fd4528bb4b57f9f0ba5585\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:31Z\",\"updated_at\":\"2022-09-07T20:57:31Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681bcf7f0343100794aa3", + "x-ep-request-uuid": "3bde9a2b631905bbe799fb48002e4b69", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"95968bfad0ac33bb07cb9fe38c84cd66\"", - "x-runtime": "0.020723", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"1f80e20679f0af8045110a3bf3943f56\"", + "x-runtime": "0.022293", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, @@ -100,5 +99,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/carrier_account/all.json b/EasyPost.Tests/cassettes/net/carrier_account/all.json index 29a31b9f7..aa9a126e9 100644 --- a/EasyPost.Tests/cassettes/net/carrier_account/all.json +++ b/EasyPost.Tests/cassettes/net/carrier_account/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 412, - "RecordedAt": "2022-08-24T13:53:32.107291-06:00", + "Duration": 434, + "RecordedAt": "2022-09-07T14:53:56.092157-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -22,26 +22,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "3191" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bcf7ca5eb100794a71", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"da4a827c91b0a4c71d2fd21f58ae5fbb\"", - "x-runtime": "0.172353", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2b631904e4e799f6cc002e0bc9", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"da4a827c91b0a4c71d2fd21f58ae5fbb\"", + "x-runtime": "0.084375", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/carrier_account/create.json b/EasyPost.Tests/cassettes/net/carrier_account/create.json index 46f74b4d3..75aa05eec 100644 --- a/EasyPost.Tests/cassettes/net/carrier_account/create.json +++ b/EasyPost.Tests/cassettes/net/carrier_account/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 327, - "RecordedAt": "2022-08-24T13:53:32.457481-06:00", + "Duration": 384, + "RecordedAt": "2022-09-07T14:53:56.500389-06:00", "Request": { "Body": "{\"type\":\"UpsAccount\",\"credentials\":{}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/carrier_accounts" }, "Response": { - "Body": "{\"id\":\"ca_205078970b7341bfb1d1b06f167384e1\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_e434f8bd50fc4113a73ec7daaf03ae64\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bcf7db562f00794ab3", + "x-ep-request-uuid": "3bde9a26631904e4e799f6eb002e0bef", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"964d9d9c40666d7b668556613d8ca260\"", - "x-runtime": "0.127813", + "ETag": "W/\"e3c67bc739279c8a8dc44737bc56ae65\"", + "x-runtime": "0.128247", "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -52,8 +52,8 @@ } }, { - "Duration": 70, - "RecordedAt": "2022-08-24T13:53:32.548958-06:00", + "Duration": 83, + "RecordedAt": "2022-09-07T14:53:56.600327-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_205078970b7341bfb1d1b06f167384e1" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_e434f8bd50fc4113a73ec7daaf03ae64" }, "Response": { - "Body": "{\"id\":\"ca_205078970b7341bfb1d1b06f167384e1\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_e434f8bd50fc4113a73ec7daaf03ae64\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,14 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bcf7db562f00794ad9", + "x-ep-request-uuid": "3bde9a26631904e4e799f6eb002e0c03", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"964d9d9c40666d7b668556613d8ca260\"", - "x-runtime": "0.024958", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"e3c67bc739279c8a8dc44737bc56ae65\"", + "x-runtime": "0.026792", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", + "x-canary": "direct", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, @@ -101,8 +102,8 @@ } }, { - "Duration": 164, - "RecordedAt": "2022-08-24T13:53:32.725984-06:00", + "Duration": 176, + "RecordedAt": "2022-09-07T14:53:56.789849-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,7 +115,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_205078970b7341bfb1d1b06f167384e1" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_e434f8bd50fc4113a73ec7daaf03ae64" }, "Response": { "Body": "{}", @@ -123,26 +124,27 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bcf7db562f00794aed", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.120933", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a26631904e4e799f6eb002e0c14", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.120417", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-canary": "direct", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/carrier_account/delete.json b/EasyPost.Tests/cassettes/net/carrier_account/delete.json index 486de321e..c0efe3361 100644 --- a/EasyPost.Tests/cassettes/net/carrier_account/delete.json +++ b/EasyPost.Tests/cassettes/net/carrier_account/delete.json @@ -1,7 +1,7 @@ [ { - "Duration": 314, - "RecordedAt": "2022-08-24T13:53:34.638446-06:00", + "Duration": 389, + "RecordedAt": "2022-09-07T14:53:58.942053-06:00", "Request": { "Body": "{\"type\":\"UpsAccount\",\"credentials\":{}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/carrier_accounts" }, "Response": { - "Body": "{\"id\":\"ca_3c81368bedd6421fa9eed921cf4da419\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_3ea414c1b08b40e1882ca6b52ec9a129\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bef7a8e37100794c2c", + "x-ep-request-uuid": "3bde9a2c631904e6e799fa48002e0cf7", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"c5be52cebd8b0dcd5c5742c10d4a2131\"", - "x-runtime": "0.124157", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"250e5691f82a320436ae0e4fc2d3de5b\"", + "x-runtime": "0.141341", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -52,8 +52,8 @@ } }, { - "Duration": 156, - "RecordedAt": "2022-08-24T13:53:34.806435-06:00", + "Duration": 243, + "RecordedAt": "2022-09-07T14:53:59.196547-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,7 +65,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_3c81368bedd6421fa9eed921cf4da419" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_3ea414c1b08b40e1882ca6b52ec9a129" }, "Response": { "Body": "{}", @@ -74,26 +74,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bef7a8e37100794c43", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.116192", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631904e7e799fa48002e0d14", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.184544", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/carrier_account/retrieve.json b/EasyPost.Tests/cassettes/net/carrier_account/retrieve.json index 46f56edcb..0f870077a 100644 --- a/EasyPost.Tests/cassettes/net/carrier_account/retrieve.json +++ b/EasyPost.Tests/cassettes/net/carrier_account/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 319, - "RecordedAt": "2022-08-24T13:53:33.060363-06:00", + "Duration": 387, + "RecordedAt": "2022-09-07T14:53:57.191872-06:00", "Request": { "Body": "{\"type\":\"UpsAccount\",\"credentials\":{}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/carrier_accounts" }, "Response": { - "Body": "{\"id\":\"ca_db799d338efb41ccb21d2b082ca033d3\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_ce47407e1de8442b87ede6d69f82236a\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bdf7ee8ace00794b1e", + "x-ep-request-uuid": "3bde9a28631904e5e799fa1e002e0c44", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"82e3c0491b7e9523679663d1f40b1b64\"", - "x-runtime": "0.118451", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"0aba0443088852007daacbf4785af7f3\"", + "x-runtime": "0.122011", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 73, - "RecordedAt": "2022-08-24T13:53:33.240776-06:00", + "Duration": 156, + "RecordedAt": "2022-09-07T14:53:57.46107-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_db799d338efb41ccb21d2b082ca033d3" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_ce47407e1de8442b87ede6d69f82236a" }, "Response": { - "Body": "{\"id\":\"ca_db799d338efb41ccb21d2b082ca033d3\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_ce47407e1de8442b87ede6d69f82236a\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bdf7ee8ace00794b57", + "x-ep-request-uuid": "3bde9a28631904e5e799fa1e002e0c6c", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"82e3c0491b7e9523679663d1f40b1b64\"", - "x-runtime": "0.032025", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"0aba0443088852007daacbf4785af7f3\"", + "x-runtime": "0.100204", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,8 +101,8 @@ } }, { - "Duration": 153, - "RecordedAt": "2022-08-24T13:53:33.406049-06:00", + "Duration": 170, + "RecordedAt": "2022-09-07T14:53:57.642436-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,7 +114,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_db799d338efb41ccb21d2b082ca033d3" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_ce47407e1de8442b87ede6d69f82236a" }, "Response": { "Body": "{}", @@ -123,26 +123,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bdf7ee8ace00794b6c", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.113796", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a28631904e5e799fa1e002e0c7e", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.112770", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/carrier_account/types.json b/EasyPost.Tests/cassettes/net/carrier_account/types.json index 935ccf954..06157074a 100644 --- a/EasyPost.Tests/cassettes/net/carrier_account/types.json +++ b/EasyPost.Tests/cassettes/net/carrier_account/types.json @@ -1,7 +1,7 @@ [ { - "Duration": 353, - "RecordedAt": "2022-08-24T13:53:31.569504-06:00", + "Duration": 506, + "RecordedAt": "2022-09-07T14:53:55.518082-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/carrier_types" }, "Response": { - "Body": "[{\"object\":\"CarrierType\",\"type\":\"AmazonMwsAccount\",\"readable\":\"Amazon MWS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ApcAccount\",\"readable\":\"APC\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AsendiaAccount\",\"readable\":\"Asendia USA (Legacy)\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AsendiaUsaAccount\",\"readable\":\"Asendia USA\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AustraliaPostAccount\",\"readable\":\"Australia Post\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AxlehireV3Account\",\"readable\":\"AxlehireV3\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"BetterTrucksAccount\",\"readable\":\"Better Trucks\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"BondAccount\",\"readable\":\"Bond\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CanadaPostAccount\",\"readable\":\"Canada Post\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"CanparAccount\",\"readable\":\"Canpar\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ColumbusLastMileAccount\",\"readable\":\"CDL Last Mile Solutions\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CourierExpressAccount\",\"readable\":\"Courier Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CouriersPleaseAccount\",\"readable\":\"CouriersPlease\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DaiPostAccount\",\"readable\":\"Dai Post\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DeutschePostUKAccount\",\"readable\":\"Deutsche Post UK\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlEcommerceAsiaAccount\",\"readable\":\"DHL Ecommerce Asia\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlEcsAccount\",\"readable\":\"DHL eCommerce Solutions\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlExpressAccount\",\"readable\":\"DHL Express\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlParcelAccount\",\"readable\":\"DHL Parcel\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DpdAccount\",\"readable\":\"DPD\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DpdUkAccount\",\"readable\":\"DPD UK\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"EstafetaAccount\",\"readable\":\"Estafeta\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FastwayAccount\",\"readable\":\"Fastway\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexAccount\",\"readable\":\"FedEx\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{},\"creation_fields\":{\"credential_information\":{\"account_number\":{\"label\":\"FedEx Account #\",\"visibility\":\"visible\"}},\"company_information\":{\"corporate_first_name\":{\"label\":\"Company Contact First Name\",\"visibility\":\"visible\"},\"corporate_last_name\":{\"label\":\"Company Contact Last Name\",\"visibility\":\"visible\"},\"corporate_job_title\":{\"label\":\"Company Contact Job Title\",\"visibility\":\"visible\"},\"corporate_company_name\":{\"label\":\"Company Name\",\"visibility\":\"visible\"},\"corporate_phone_number\":{\"label\":\"Company Phone\",\"visibility\":\"visible\"},\"corporate_email_address\":{\"label\":\"Company Email\",\"visibility\":\"visible\"},\"corporate_streets\":{\"label\":\"Company Street\",\"visibility\":\"visible\"},\"corporate_city\":{\"label\":\"Company City\",\"visibility\":\"visible\"},\"corporate_state\":{\"label\":\"Company State\",\"visibility\":\"visible\"},\"corporate_postal_code\":{\"label\":\"Company Postal Code\",\"visibility\":\"visible\"},\"corporate_country_code\":{\"label\":\"Company Country Code\",\"visibility\":\"visible\"}},\"address_information\":{\"shipping_streets\":{\"label\":\"Shipping Street\",\"visibility\":\"visible\"},\"shipping_city\":{\"label\":\"Shipping City\",\"visibility\":\"visible\"},\"shipping_state\":{\"label\":\"Shipping State\",\"visibility\":\"visible\"},\"shipping_postal_code\":{\"label\":\"Shipping Postal Code \",\"visibility\":\"visible\"},\"shipping_country_code\":{\"label\":\"Shipping Country Code\",\"visibility\":\"visible\"}}},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"FedexCrossBorderAccount\",\"readable\":\"FedEx Cross Border\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexMailviewAccount\",\"readable\":\"FedEx MailView\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexSamedayCityAccount\",\"readable\":\"FedEx SameDay City\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexSmartpostAccount\",\"readable\":\"FedEx SmartPost\",\"logo\":null,\"fields\":{\"credentials\":{},\"creation_fields\":{\"credential_information\":{\"account_number\":{\"label\":\"FedEx SmartPost Account #\",\"visibility\":\"visible\"},\"hub_id\":{\"label\":\"FedEx SmartPost Hub ID\",\"visibility\":\"visible\"}},\"company_information\":{\"corporate_first_name\":{\"label\":\"Company Contact First Name\",\"visibility\":\"visible\"},\"corporate_last_name\":{\"label\":\"Company Contact Last Name\",\"visibility\":\"visible\"},\"corporate_job_title\":{\"label\":\"Company Contact Job Title\",\"visibility\":\"visible\"},\"corporate_company_name\":{\"label\":\"Company Name\",\"visibility\":\"visible\"},\"corporate_phone_number\":{\"label\":\"Company Phone\",\"visibility\":\"visible\"},\"corporate_email_address\":{\"label\":\"Company Email\",\"visibility\":\"visible\"},\"corporate_streets\":{\"label\":\"Company Street\",\"visibility\":\"visible\"},\"corporate_city\":{\"label\":\"Company City\",\"visibility\":\"visible\"},\"corporate_state\":{\"label\":\"Company State\",\"visibility\":\"visible\"},\"corporate_postal_code\":{\"label\":\"Company Postal Code\",\"visibility\":\"visible\"},\"corporate_country_code\":{\"label\":\"Company Country Code\",\"visibility\":\"visible\"}},\"address_information\":{\"shipping_streets\":{\"label\":\"Shipping Street\",\"visibility\":\"visible\"},\"shipping_city\":{\"label\":\"Shipping City\",\"visibility\":\"visible\"},\"shipping_state\":{\"label\":\"Shipping State\",\"visibility\":\"visible\"},\"shipping_postal_code\":{\"label\":\"Shipping Postal Code \",\"visibility\":\"visible\"},\"shipping_country_code\":{\"label\":\"Shipping Country Code\",\"visibility\":\"visible\"}}},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"GlobegisticsAccount\",\"readable\":\"Globegistics\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"GsoAccount\",\"readable\":\"GSO\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"HermesAccount\",\"readable\":\"Evri\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"InterlinkExpressAccount\",\"readable\":\"Interlink Express\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LasershipV2Account\",\"readable\":\"LaserShipV2\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LoomisExpressAccount\",\"readable\":\"Loomis Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LsoAccount\",\"readable\":\"LSO\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"NewgisticsAccount\",\"readable\":\"Newgistics\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OmniParcelAccount\",\"readable\":\"OmniParcel\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OntracAccount\",\"readable\":\"OnTrac\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OsmWorldwideAccount\",\"readable\":\"OSM Worldwide\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ParcelForceAccount\",\"readable\":\"Parcel Force\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ParcllAccount\",\"readable\":\"Parcll\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"PassportGlobalAccount\",\"readable\":\"Passport Global\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"PurolatorAccount\",\"readable\":\"Purolator\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"RoyalMailAccount\",\"readable\":\"Royal Mail\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"RRDonnelleyAccount\",\"readable\":\"ePost Global\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SendleAccount\",\"readable\":\"Sendle\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SfExpressAccount\",\"readable\":\"SF Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SpeedeeAccount\",\"readable\":\"Spee-Dee\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"StarTrackAccount\",\"readable\":\"StarTrack\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SwyftAccount\",\"readable\":\"Swyft\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"TforceConciseAccount\",\"readable\":\"TForce\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UdsAccount\",\"readable\":\"UDS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UpsAccount\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"UpsIparcelAccount\",\"readable\":\"UPS i-Parcel\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UpsMailInnovationsAccount\",\"readable\":\"UPS Mail Innovations\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UspsAccount\",\"readable\":\"USPS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"VehoAccount\",\"readable\":\"Veho\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}}]", + "Body": "[{\"object\":\"CarrierType\",\"type\":\"AmazonMwsAccount\",\"readable\":\"Amazon MWS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ApcAccount\",\"readable\":\"APC\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AsendiaAccount\",\"readable\":\"Asendia USA (Legacy)\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AsendiaUsaAccount\",\"readable\":\"Asendia USA\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AustraliaPostAccount\",\"readable\":\"Australia Post\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AxlehireV3Account\",\"readable\":\"AxlehireV3\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"BetterTrucksAccount\",\"readable\":\"Better Trucks\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"BondAccount\",\"readable\":\"Bond\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CanadaPostAccount\",\"readable\":\"Canada Post\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"CanparAccount\",\"readable\":\"Canpar\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ColumbusLastMileAccount\",\"readable\":\"CDL Last Mile Solutions\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CourierExpressAccount\",\"readable\":\"Courier Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CouriersPleaseAccount\",\"readable\":\"CouriersPlease\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DaiPostAccount\",\"readable\":\"Dai Post\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DeutschePostUKAccount\",\"readable\":\"Deutsche Post UK\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlEcommerceAsiaAccount\",\"readable\":\"DHL Ecommerce Asia\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlEcsAccount\",\"readable\":\"DHL eCommerce Solutions\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlExpressAccount\",\"readable\":\"DHL Express\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlParcelAccount\",\"readable\":\"DHL Parcel\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DpdAccount\",\"readable\":\"DPD\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DpdUkAccount\",\"readable\":\"DPD UK\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"EstafetaAccount\",\"readable\":\"Estafeta\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FastwayAccount\",\"readable\":\"Fastway\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexAccount\",\"readable\":\"FedEx\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{},\"creation_fields\":{\"credential_information\":{\"account_number\":{\"label\":\"FedEx Account #\",\"visibility\":\"visible\"}},\"company_information\":{\"corporate_first_name\":{\"label\":\"Company Contact First Name\",\"visibility\":\"visible\"},\"corporate_last_name\":{\"label\":\"Company Contact Last Name\",\"visibility\":\"visible\"},\"corporate_job_title\":{\"label\":\"Company Contact Job Title\",\"visibility\":\"visible\"},\"corporate_company_name\":{\"label\":\"Company Name\",\"visibility\":\"visible\"},\"corporate_phone_number\":{\"label\":\"Company Phone\",\"visibility\":\"visible\"},\"corporate_email_address\":{\"label\":\"Company Email\",\"visibility\":\"visible\"},\"corporate_streets\":{\"label\":\"Company Street\",\"visibility\":\"visible\"},\"corporate_city\":{\"label\":\"Company City\",\"visibility\":\"visible\"},\"corporate_state\":{\"label\":\"Company State\",\"visibility\":\"visible\"},\"corporate_postal_code\":{\"label\":\"Company Postal Code\",\"visibility\":\"visible\"},\"corporate_country_code\":{\"label\":\"Company Country Code\",\"visibility\":\"visible\"}},\"address_information\":{\"shipping_streets\":{\"label\":\"Shipping Street\",\"visibility\":\"visible\"},\"shipping_city\":{\"label\":\"Shipping City\",\"visibility\":\"visible\"},\"shipping_state\":{\"label\":\"Shipping State\",\"visibility\":\"visible\"},\"shipping_postal_code\":{\"label\":\"Shipping Postal Code \",\"visibility\":\"visible\"},\"shipping_country_code\":{\"label\":\"Shipping Country Code\",\"visibility\":\"visible\"}}},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"FedexCrossBorderAccount\",\"readable\":\"FedEx Cross Border\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexMailviewAccount\",\"readable\":\"FedEx MailView\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexSamedayCityAccount\",\"readable\":\"FedEx SameDay City\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexSmartpostAccount\",\"readable\":\"FedEx SmartPost\",\"logo\":null,\"fields\":{\"credentials\":{},\"creation_fields\":{\"credential_information\":{\"account_number\":{\"label\":\"FedEx SmartPost Account #\",\"visibility\":\"visible\"},\"hub_id\":{\"label\":\"FedEx SmartPost Hub ID\",\"visibility\":\"visible\"}},\"company_information\":{\"corporate_first_name\":{\"label\":\"Company Contact First Name\",\"visibility\":\"visible\"},\"corporate_last_name\":{\"label\":\"Company Contact Last Name\",\"visibility\":\"visible\"},\"corporate_job_title\":{\"label\":\"Company Contact Job Title\",\"visibility\":\"visible\"},\"corporate_company_name\":{\"label\":\"Company Name\",\"visibility\":\"visible\"},\"corporate_phone_number\":{\"label\":\"Company Phone\",\"visibility\":\"visible\"},\"corporate_email_address\":{\"label\":\"Company Email\",\"visibility\":\"visible\"},\"corporate_streets\":{\"label\":\"Company Street\",\"visibility\":\"visible\"},\"corporate_city\":{\"label\":\"Company City\",\"visibility\":\"visible\"},\"corporate_state\":{\"label\":\"Company State\",\"visibility\":\"visible\"},\"corporate_postal_code\":{\"label\":\"Company Postal Code\",\"visibility\":\"visible\"},\"corporate_country_code\":{\"label\":\"Company Country Code\",\"visibility\":\"visible\"}},\"address_information\":{\"shipping_streets\":{\"label\":\"Shipping Street\",\"visibility\":\"visible\"},\"shipping_city\":{\"label\":\"Shipping City\",\"visibility\":\"visible\"},\"shipping_state\":{\"label\":\"Shipping State\",\"visibility\":\"visible\"},\"shipping_postal_code\":{\"label\":\"Shipping Postal Code \",\"visibility\":\"visible\"},\"shipping_country_code\":{\"label\":\"Shipping Country Code\",\"visibility\":\"visible\"}}},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"GlobegisticsAccount\",\"readable\":\"Globegistics\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"GsoAccount\",\"readable\":\"GSO\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"HermesAccount\",\"readable\":\"Evri\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"InterlinkExpressAccount\",\"readable\":\"Interlink Express\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LasershipV2Account\",\"readable\":\"LaserShipV2\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LoomisExpressAccount\",\"readable\":\"Loomis Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LsoAccount\",\"readable\":\"LSO\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"NewgisticsAccount\",\"readable\":\"Newgistics\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OmniParcelAccount\",\"readable\":\"OmniParcel\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OntracAccount\",\"readable\":\"OnTrac\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OsmWorldwideAccount\",\"readable\":\"OSM Worldwide\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ParcelForceAccount\",\"readable\":\"Parcel Force\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ParcllAccount\",\"readable\":\"Parcll\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"PassportGlobalAccount\",\"readable\":\"Passport Global\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"PurolatorAccount\",\"readable\":\"Purolator\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"RoyalMailAccount\",\"readable\":\"Royal Mail\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"RRDonnelleyAccount\",\"readable\":\"ePost Global\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SendleAccount\",\"readable\":\"Sendle\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SfExpressAccount\",\"readable\":\"SF Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SpeedeeAccount\",\"readable\":\"Spee-Dee\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"StarTrackAccount\",\"readable\":\"StarTrack\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SwyftAccount\",\"readable\":\"Swyft\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"TforceConciseAccount\",\"readable\":\"TForce\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UdsAccount\",\"readable\":\"UDS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UpsAccount\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"UpsIparcelAccount\",\"readable\":\"UPS i-Parcel\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UpsMailInnovationsAccount\",\"readable\":\"UPS Mail Innovations\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UspsAccount\",\"readable\":\"USPS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"VehoAccount\",\"readable\":\"Veho\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"XDeliveryAccount\",\"readable\":\"XDelivery\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}}]", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "32708" + "Content-Length": "33114" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,21 +31,21 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bbf7de313700794a23", + "x-ep-request-uuid": "3bde9a2c631904e3e799f687002e0b7d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"520345ce7fba75ebc602d7f8070d61c7\"", - "x-runtime": "0.027947", + "ETag": "W/\"ab9b21e41223013b1cefac95928e4073\"", + "x-runtime": "0.034295", "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, - "Status": { - "Code": 200, - "Message": "OK" + "Status": { + "Code": 200, + "Message": "OK" + } } - } } ] diff --git a/EasyPost.Tests/cassettes/net/carrier_account/update.json b/EasyPost.Tests/cassettes/net/carrier_account/update.json index cb9cb857a..11c2d7476 100644 --- a/EasyPost.Tests/cassettes/net/carrier_account/update.json +++ b/EasyPost.Tests/cassettes/net/carrier_account/update.json @@ -1,7 +1,7 @@ [ { - "Duration": 381, - "RecordedAt": "2022-08-24T13:53:33.801079-06:00", + "Duration": 386, + "RecordedAt": "2022-09-07T14:53:58.043123-06:00", "Request": { "Body": "{\"type\":\"UpsAccount\",\"credentials\":{}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/carrier_accounts" }, "Response": { - "Body": "{\"id\":\"ca_3b71bf261d8d41f99b7fc5153373b7d7\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_a67890cd7e9340f8a41879e324cf62a7\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bdf7a4a6d700794b95", + "x-ep-request-uuid": "3bde9a25631904e5e799fa42002e0ca9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"081a559c621a600fced9bfa987513244\"", - "x-runtime": "0.185530", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"21e2d7cbd0a567172a1b36d1e31f9293\"", + "x-runtime": "0.120040", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +52,8 @@ } }, { - "Duration": 241, - "RecordedAt": "2022-08-24T13:53:34.054926-06:00", + "Duration": 186, + "RecordedAt": "2022-09-07T14:53:58.242763-06:00", "Request": { "Body": "{\"description\":\"my custom description\"}", "BodyContentType": "Json", @@ -69,10 +68,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_3b71bf261d8d41f99b7fc5153373b7d7" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_a67890cd7e9340f8a41879e324cf62a7" }, "Response": { - "Body": "{\"id\":\"ca_3b71bf261d8d41f99b7fc5153373b7d7\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"description\":\"my custom description\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_a67890cd7e9340f8a41879e324cf62a7\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"description\":\"my custom description\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,13 +86,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bdf7a4a6d700794bc1", + "x-ep-request-uuid": "3bde9a25631904e6e799fa42002e0cb9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"3768a3f7ce66e41daa602f9377372655\"", - "x-runtime": "0.202393", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"8911114251bf292d97ba3298bfc13a27\"", + "x-runtime": "0.127481", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -105,8 +104,8 @@ } }, { - "Duration": 64, - "RecordedAt": "2022-08-24T13:53:34.137361-06:00", + "Duration": 91, + "RecordedAt": "2022-09-07T14:53:58.350708-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -118,10 +117,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_3b71bf261d8d41f99b7fc5153373b7d7" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_a67890cd7e9340f8a41879e324cf62a7" }, "Response": { - "Body": "{\"id\":\"ca_3b71bf261d8d41f99b7fc5153373b7d7\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"description\":\"my custom description\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_a67890cd7e9340f8a41879e324cf62a7\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"description\":\"my custom description\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -136,13 +135,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bef7a4a6d700794be4", + "x-ep-request-uuid": "3bde9a25631904e6e799fa42002e0ccb", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"3768a3f7ce66e41daa602f9377372655\"", - "x-runtime": "0.025820", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"8911114251bf292d97ba3298bfc13a27\"", + "x-runtime": "0.027940", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -154,8 +153,8 @@ } }, { - "Duration": 147, - "RecordedAt": "2022-08-24T13:53:34.296105-06:00", + "Duration": 177, + "RecordedAt": "2022-09-07T14:53:58.53997-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -167,7 +166,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_3b71bf261d8d41f99b7fc5153373b7d7" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_a67890cd7e9340f8a41879e324cf62a7" }, "Response": { "Body": "{}", @@ -176,26 +175,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bef7a4a6d700794bf5", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.109178", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a25631904e6e799fa42002e0cd3", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.118381", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/customs_info/create.json b/EasyPost.Tests/cassettes/net/customs_info/create.json index 10ac1fa81..5be2abb38 100644 --- a/EasyPost.Tests/cassettes/net/customs_info/create.json +++ b/EasyPost.Tests/cassettes/net/customs_info/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 340, - "RecordedAt": "2022-08-24T13:53:31.58095-06:00", + "Duration": 519, + "RecordedAt": "2022-09-07T14:53:55.568229-06:00", "Request": { "Body": "{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/customs_infos" }, "Response": { - "Body": "{\"id\":\"cstinfo_385d4b2bfb83499e983844c470a7c5a2\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", + "Body": "{\"id\":\"cstinfo_d2851d52138c4ec9838d07190f020cce\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bbf7a5a1b200794a34", + "x-ep-request-uuid": "3bde9a2b631904e3e799f6a5002e0b87", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/customs_infos/cstinfo_385d4b2bfb83499e983844c470a7c5a2", - "ETag": "W/\"8aa7f9b170e06c49ff21e156018fe709\"", - "x-runtime": "0.034028", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/customs_infos/cstinfo_d2851d52138c4ec9838d07190f020cce", + "ETag": "W/\"64903d0dbf301c49940193abe815c396\"", + "x-runtime": "0.140844", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/customs_info/retrieve.json b/EasyPost.Tests/cassettes/net/customs_info/retrieve.json index 8ab752e13..ee86016a6 100644 --- a/EasyPost.Tests/cassettes/net/customs_info/retrieve.json +++ b/EasyPost.Tests/cassettes/net/customs_info/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 273, - "RecordedAt": "2022-08-24T13:53:31.965677-06:00", + "Duration": 372, + "RecordedAt": "2022-09-07T14:53:56.042391-06:00", "Request": { "Body": "{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/customs_infos" }, "Response": { - "Body": "{\"id\":\"cstinfo_31ea72c06e8347f9b7117af70d5251be\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", + "Body": "{\"id\":\"cstinfo_ebbc1cabf94048eba6b746f25ed1f374\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bcf7ee06eb00794a70", + "x-ep-request-uuid": "3bde9a2c631904e4e799f6e5002e0bcc", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/customs_infos/cstinfo_31ea72c06e8347f9b7117af70d5251be", - "ETag": "W/\"5052bba665e1933d4dad64ecb5089b53\"", - "x-runtime": "0.027576", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/customs_infos/cstinfo_ebbc1cabf94048eba6b746f25ed1f374", + "ETag": "W/\"ea19cef00676df7aa20e20af0f0a76cf\"", + "x-runtime": "0.026879", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 65, - "RecordedAt": "2022-08-24T13:53:32.052914-06:00", + "Duration": 112, + "RecordedAt": "2022-09-07T14:53:56.190751-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/customs_infos/cstinfo_31ea72c06e8347f9b7117af70d5251be" + "Uri": "https://api.easypost.com/v2/customs_infos/cstinfo_ebbc1cabf94048eba6b746f25ed1f374" }, "Response": { - "Body": "{\"id\":\"cstinfo_31ea72c06e8347f9b7117af70d5251be\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", + "Body": "{\"id\":\"cstinfo_ebbc1cabf94048eba6b746f25ed1f374\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,13 +84,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bcf7ee06eb00794a82", + "x-ep-request-uuid": "3bde9a2c631904e4e799f6e5002e0bde", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"5052bba665e1933d4dad64ecb5089b53\"", - "x-runtime": "0.022321", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"ea19cef00676df7aa20e20af0f0a76cf\"", + "x-runtime": "0.021759", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/customs_item/create.json b/EasyPost.Tests/cassettes/net/customs_item/create.json index d93279477..53ef25263 100644 --- a/EasyPost.Tests/cassettes/net/customs_item/create.json +++ b/EasyPost.Tests/cassettes/net/customs_item/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 325, - "RecordedAt": "2022-08-24T13:53:31.567506-06:00", + "Duration": 499, + "RecordedAt": "2022-09-07T14:53:55.554574-06:00", "Request": { "Body": "{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/customs_items" }, "Response": { - "Body": "{\"id\":\"cstitem_006abef5af454cf7af977c52eb6be23b\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", + "Body": "{\"id\":\"cstitem_48b50aa6b35a4eefb2bb285d3710534a\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bbf7f1e72000794a32", + "x-ep-request-uuid": "3bde9a29631904e3e799f6c5002e0b97", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/customs_items/cstitem_006abef5af454cf7af977c52eb6be23b", - "ETag": "W/\"980aa394cbe1be4e4157648bb0a2b9f4\"", - "x-runtime": "0.028275", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/customs_items/cstitem_48b50aa6b35a4eefb2bb285d3710534a", + "ETag": "W/\"9d604b4996f638a5ad579798ed267acc\"", + "x-runtime": "0.029169", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/customs_item/retrieve.json b/EasyPost.Tests/cassettes/net/customs_item/retrieve.json index bb01d91f8..746ba243a 100644 --- a/EasyPost.Tests/cassettes/net/customs_item/retrieve.json +++ b/EasyPost.Tests/cassettes/net/customs_item/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 249, - "RecordedAt": "2022-08-24T13:53:31.943179-06:00", + "Duration": 355, + "RecordedAt": "2022-09-07T14:53:56.011503-06:00", "Request": { "Body": "{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/customs_items" }, "Response": { - "Body": "{\"id\":\"cstitem_9d9675e892e34a7ca0ec7798ac855470\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", + "Body": "{\"id\":\"cstitem_8bcf582a8a4447f3bfbcf86f0e9885b8\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bcf7a8573200794a6b", + "x-ep-request-uuid": "3bde9a28631904e4e799f6c9002e0bbc", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/customs_items/cstitem_9d9675e892e34a7ca0ec7798ac855470", - "ETag": "W/\"3c94ee7589b65dbff371203c181d96ff\"", - "x-runtime": "0.028361", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/customs_items/cstitem_8bcf582a8a4447f3bfbcf86f0e9885b8", + "ETag": "W/\"5cecf4067e49be139e9ae584ca6c4eac\"", + "x-runtime": "0.053268", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 61, - "RecordedAt": "2022-08-24T13:53:32.018947-06:00", + "Duration": 116, + "RecordedAt": "2022-09-07T14:53:56.14167-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/customs_items/cstitem_9d9675e892e34a7ca0ec7798ac855470" + "Uri": "https://api.easypost.com/v2/customs_items/cstitem_8bcf582a8a4447f3bfbcf86f0e9885b8" }, "Response": { - "Body": "{\"id\":\"cstitem_9d9675e892e34a7ca0ec7798ac855470\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", + "Body": "{\"id\":\"cstitem_8bcf582a8a4447f3bfbcf86f0e9885b8\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,16 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bcf7a8573200794a7d", + "x-ep-request-uuid": "3bde9a28631904e4e799f6c9002e0bd8", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"3c94ee7589b65dbff371203c181d96ff\"", - "x-runtime": "0.021447", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"5cecf4067e49be139e9ae584ca6c4eac\"", + "x-runtime": "0.024617", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/end_shipper/all.json b/EasyPost.Tests/cassettes/net/end_shipper/all.json index 91337ce68..82cc6437b 100644 --- a/EasyPost.Tests/cassettes/net/end_shipper/all.json +++ b/EasyPost.Tests/cassettes/net/end_shipper/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 246, - "RecordedAt": "2022-08-24T13:53:32.726011-06:00", + "Duration": 361, + "RecordedAt": "2022-09-07T14:53:57.070938-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -22,26 +22,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "1801" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681bcf7f1d95000794af7", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"00c862705e26113b8ffeb007f410f95f\"", - "x-runtime": "0.057809", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a29631904e5e799f70d002e0c3b", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"00c862705e26113b8ffeb007f410f95f\"", + "x-runtime": "0.056605", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/end_shipper/create.json b/EasyPost.Tests/cassettes/net/end_shipper/create.json index 8339029ee..e3a1df4e7 100644 --- a/EasyPost.Tests/cassettes/net/end_shipper/create.json +++ b/EasyPost.Tests/cassettes/net/end_shipper/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 291, - "RecordedAt": "2022-08-24T13:53:32.456311-06:00", + "Duration": 327, + "RecordedAt": "2022-09-07T14:53:56.691447-06:00", "Request": { "Body": "{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/beta/end_shippers" }, "Response": { - "Body": "{\"id\":\"es_a1cfc65b7fc841dc90f97023ceba840d\",\"object\":\"EndShipper\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", + "Body": "{\"id\":\"es_9b6a1f72f5bf4d46bbeb729bc7ae0f1c\",\"object\":\"EndShipper\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bce68c40e600794ab8", + "x-ep-request-uuid": "3bde9a27631904e4e799f707002e0c0d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"a705183600abdd828260ae6d2cb0528b\"", - "x-runtime": "0.112840", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"bea0794c7af006d99db98b4fa513effd\"", + "x-runtime": "0.044790", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/end_shipper/retrieve.json b/EasyPost.Tests/cassettes/net/end_shipper/retrieve.json index a3b1dc95a..ceb6da67b 100644 --- a/EasyPost.Tests/cassettes/net/end_shipper/retrieve.json +++ b/EasyPost.Tests/cassettes/net/end_shipper/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 240, - "RecordedAt": "2022-08-24T13:53:32.05322-06:00", + "Duration": 323, + "RecordedAt": "2022-09-07T14:53:56.192831-06:00", "Request": { "Body": "{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/beta/end_shippers" }, "Response": { - "Body": "{\"id\":\"es_4b13bc34a3074c4983d6c35426333aac\",\"object\":\"EndShipper\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", + "Body": "{\"id\":\"es_b73885f2b53a4a2abf1358d86d781b4f\",\"object\":\"EndShipper\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bcf7a7def400794a7f", + "x-ep-request-uuid": "3bde9a2b631904e4e799f6e9002e0bdd", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"25c52b1ba7f74b4956fc60176937038b\"", - "x-runtime": "0.038250", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"701647e32002505ee51c7ab8878bbbb6\"", + "x-runtime": "0.042757", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -52,8 +52,8 @@ } }, { - "Duration": 60, - "RecordedAt": "2022-08-24T13:53:32.139423-06:00", + "Duration": 109, + "RecordedAt": "2022-09-07T14:53:56.340627-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/end_shippers/es_4b13bc34a3074c4983d6c35426333aac" + "Uri": "https://api.easypost.com/beta/end_shippers/es_b73885f2b53a4a2abf1358d86d781b4f" }, "Response": { - "Body": "{\"id\":\"es_4b13bc34a3074c4983d6c35426333aac\",\"object\":\"EndShipper\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", + "Body": "{\"id\":\"es_b73885f2b53a4a2abf1358d86d781b4f\",\"object\":\"EndShipper\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bcf7a7def400794a8e", + "x-ep-request-uuid": "3bde9a2b631904e4e799f6e9002e0be9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"64c4acfb70b1376dcee5ff48dd428203\"", - "x-runtime": "0.022576", + "ETag": "W/\"d7f365f53c7b4fc9ce38325950080d68\"", + "x-runtime": "0.036788", "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -99,5 +99,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/end_shipper/update.json b/EasyPost.Tests/cassettes/net/end_shipper/update.json index 969b846f5..1427f9ce5 100644 --- a/EasyPost.Tests/cassettes/net/end_shipper/update.json +++ b/EasyPost.Tests/cassettes/net/end_shipper/update.json @@ -1,7 +1,7 @@ [ { - "Duration": 382, - "RecordedAt": "2022-08-24T13:53:31.612008-06:00", + "Duration": 404, + "RecordedAt": "2022-09-07T14:53:55.515436-06:00", "Request": { "Body": "{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/beta/end_shippers" }, "Response": { - "Body": "{\"id\":\"es_4b27e098eb66462a9440f59f9435d9e2\",\"object\":\"EndShipper\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", + "Body": "{\"id\":\"es_3a926d513ca54abb9a13f3f2c5215f9f\",\"object\":\"EndShipper\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bbf7c9e75500794a3d", + "x-ep-request-uuid": "3bde9a27631904e3e799f688002e0b82", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"4dca7716ea375320c2cb88db852bd3ce\"", - "x-runtime": "0.038635", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"eb44d9d35e4ae7f509ca1f9b48f9c974\"", + "x-runtime": "0.039519", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 96, - "RecordedAt": "2022-08-24T13:53:31.783198-06:00", + "Duration": 198, + "RecordedAt": "2022-09-07T14:53:55.842889-06:00", "Request": { "Body": "{\"address\":{\"name\":\"NEW NAME\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}}", "BodyContentType": "Json", @@ -68,10 +68,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/end_shippers/es_4b27e098eb66462a9440f59f9435d9e2" + "Uri": "https://api.easypost.com/beta/end_shippers/es_3a926d513ca54abb9a13f3f2c5215f9f" }, "Response": { - "Body": "{\"id\":\"es_4b27e098eb66462a9440f59f9435d9e2\",\"object\":\"EndShipper\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"NEW NAME\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", + "Body": "{\"id\":\"es_3a926d513ca54abb9a13f3f2c5215f9f\",\"object\":\"EndShipper\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"NEW NAME\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -86,15 +86,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bbf7c9e75500794a4f", + "x-ep-request-uuid": "3bde9a27631904e3e799f688002e0ba8", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"d22ea9b2d236185bda54a1527da1f018\"", - "x-runtime": "0.059102", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"b6b57d699bc5a57e20e368e9c157b333\"", + "x-runtime": "0.130149", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/error/bad_parameters.json b/EasyPost.Tests/cassettes/net/error/bad_parameters.json index 13f0efa50..a80b5ee3f 100644 --- a/EasyPost.Tests/cassettes/net/error/bad_parameters.json +++ b/EasyPost.Tests/cassettes/net/error/bad_parameters.json @@ -1,7 +1,7 @@ [ { - "Duration": 333, - "RecordedAt": "2022-08-24T13:53:31.567265-06:00", + "Duration": 449, + "RecordedAt": "2022-09-07T14:53:55.514506-06:00", "Request": { "Body": "{\"shipment\":{},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -34,12 +34,12 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bbf7b6a57400794a33", + "x-ep-request-uuid": "3bde9a2c631904e3e799f6a8002e0b8b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.033808", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-runtime": "0.031300", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/event/all.json b/EasyPost.Tests/cassettes/net/event/all.json index b4ef422e7..3232910f5 100644 --- a/EasyPost.Tests/cassettes/net/event/all.json +++ b/EasyPost.Tests/cassettes/net/event/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 386, - "RecordedAt": "2022-08-24T13:53:32.29806-06:00", + "Duration": 498, + "RecordedAt": "2022-09-07T14:53:56.361662-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,7 +16,7 @@ "Uri": "https://api.easypost.com/v2/events?page_size=5" }, "Response": { - "Body": "{\"events\":[{\"description\":\"batch.created\",\"id\":\"evt_6ea0c5dc23e611ed942e4b85788d0b94\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:32.383Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.empty\",\"id\":\"evt_6e810a6223e611ed8ba73b98d56825b2\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:32.175Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.new\",\"id\":\"evt_6e75d8fe23e611ed96fa07ecf13a9808\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:32.102Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.empty\",\"id\":\"evt_6e5c62fc23e611ed8e2b7106d362653d\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:31.935Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"batch.updated\",\"id\":\"evt_6e5461d823e611ed923d35e9546a3eaf\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:31.882Z\",\"mode\":\"test\",\"object\":\"Event\"}],\"has_more\":true}", + "Body": "{\"events\":[{\"description\":\"batch.updated\",\"id\":\"evt_30727d642eef11ed8d932b72bce3d6cd\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T20:53:56.322Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"batch.created\",\"id\":\"evt_306793b82eef11eda9c8516e82e85ebc\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T20:53:56.25Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.empty\",\"id\":\"evt_3060bb602eef11ed9f6e3d92c7a7f410\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T20:53:56.206Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.new\",\"id\":\"evt_3054191e2eef11ed818e03d90aa76974\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T20:53:56.123Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.empty\",\"id\":\"evt_30257a1e2eef11eda1db55a9f05dd70e\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T20:53:55.817Z\",\"mode\":\"test\",\"object\":\"Event\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -31,16 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681bcf7dfd70300794a8d", + "x-ep-request-uuid": "3bde9a27631904e4e799f6e8002e0bdc", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"9ae70abaed2a653d5dd416abf9ecefa0\"", - "x-runtime": "0.189716", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"2244df193bc215bd1337c3bfb13b7393\"", + "x-runtime": "0.229692", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/event/retrieve.json b/EasyPost.Tests/cassettes/net/event/retrieve.json index 1d620a561..8fbc1c3ff 100644 --- a/EasyPost.Tests/cassettes/net/event/retrieve.json +++ b/EasyPost.Tests/cassettes/net/event/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 566, - "RecordedAt": "2022-08-24T13:53:31.806637-06:00", + "Duration": 750, + "RecordedAt": "2022-09-07T14:53:55.690991-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/events?page_size=5" }, "Response": { - "Body": "{\"events\":[{\"description\":\"batch.updated\",\"id\":\"evt_6e5461d823e611ed923d35e9546a3eaf\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:31.882Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"batch.created\",\"id\":\"evt_6e479da423e611ed9f667f8b36abe0b3\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:31.799Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.new\",\"id\":\"evt_6e44ce2623e611edbd1649a71c87ae48\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:31.78Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"batch.updated\",\"id\":\"evt_6dd6aad623e611ed8b6255ac271160c0\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:31.058Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"batch.updated\",\"id\":\"evt_6d32e96e23e611ed834805a6c24afe15\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:29.985Z\",\"mode\":\"test\",\"object\":\"Event\"}],\"has_more\":true}", + "Body": "{\"events\":[{\"description\":\"batch.created\",\"id\":\"evt_300df5382eef11ed9faa37ef9dc95b29\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T20:53:55.663Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.new\",\"id\":\"evt_300c818a2eef11edbbe867e7d355e246\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T20:53:55.654Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"tracker.created\",\"id\":\"evt_2fae09ca2eef11ed981a5bbacfdbbb8f\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T20:53:55.034Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"tracker.created\",\"id\":\"evt_2eba5e2e2eef11edaa4669f4d056b2ae\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T20:53:53.438Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"tracker.created\",\"id\":\"evt_2db20b802eef11ed97144f487e59f9af\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T20:53:51.705Z\",\"mode\":\"test\",\"object\":\"Event\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1105" + "Content-Length": "1111" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,15 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bbf7daebf400794a45", + "x-ep-request-uuid": "3bde9a2c631904e3e799f685002e0b7e", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6b49cc929ab5df8bb9f5200e5bc4d440\"", - "x-runtime": "0.200477", + "ETag": "W/\"fcfe757119609cbbcfe6bf2fcf5e7310\"", + "x-runtime": "0.283444", "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -49,8 +49,8 @@ } }, { - "Duration": 67, - "RecordedAt": "2022-08-24T13:53:31.893875-06:00", + "Duration": 92, + "RecordedAt": "2022-09-07T14:53:55.803701-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -62,15 +62,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/events/evt_6e5461d823e611ed923d35e9546a3eaf" + "Uri": "https://api.easypost.com/v2/events/evt_300df5382eef11ed9faa37ef9dc95b29" }, "Response": { - "Body": "{\"description\":\"batch.updated\",\"mode\":\"test\",\"previous_attributes\":{\"state\":\"creating\"},\"created_at\":\"2022-08-24T19:53:32Z\",\"pending_urls\":[\"https://example.com/retrieve\"],\"completed_urls\":[],\"updated_at\":\"2022-08-24T19:53:32Z\",\"id\":\"evt_6e5461d823e611ed923d35e9546a3eaf\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"object\":\"Event\"}", + "Body": "{\"description\":\"batch.created\",\"mode\":\"test\",\"previous_attributes\":{},\"created_at\":\"2022-09-07T20:53:56Z\",\"pending_urls\":[\"https://example.com/retrieve\"],\"completed_urls\":[],\"updated_at\":\"2022-09-07T20:53:56Z\",\"id\":\"evt_300df5382eef11ed9faa37ef9dc95b29\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"object\":\"Event\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "366" + "Content-Length": "348" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -80,15 +80,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bbf7daebf400794a63", + "x-ep-request-uuid": "3bde9a2c631904e3e799f685002e0bb3", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"165a3b044032d63eddaf552486c0536c\"", - "x-runtime": "0.024014", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"bcecfae712f26ef4519f25971b230f9f\"", + "x-runtime": "0.030220", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -96,5 +96,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/insurance/all.json b/EasyPost.Tests/cassettes/net/insurance/all.json index c965c77bb..c91492d13 100644 --- a/EasyPost.Tests/cassettes/net/insurance/all.json +++ b/EasyPost.Tests/cassettes/net/insurance/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 400, - "RecordedAt": "2022-08-24T13:53:33.471047-06:00", + "Duration": 486, + "RecordedAt": "2022-09-07T14:53:57.513616-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/insurances?page_size=5" }, "Response": { - "Body": "{\"insurances\":[{\"id\":\"ins_de748705567b4c65866d0bb4681c6d93\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_6f00af8723e611ed8724ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_6f04c97723e611eda13eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_9246fcd8acd14c49932a607bf6192a17\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780449\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:32Z\",\"shipment_id\":\"shp_817405c9cdc84375a219c0b96209c7fd\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:32Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:32Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzkyNDZmY2Q4YWNkMTRjNDk5MzJhNjA3YmY2MTkyYTE3\",\"fees\":[]},\"tracking_code\":\"9400100109361134780449\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\"},{\"id\":\"ins_2e1738d566314b07b3ef7d48c33337e8\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"purchased\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_69cde8a023e611ed8615ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:24-06:00\",\"updated_at\":\"2022-08-24T13:53:24-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_69cfbe5f23e611ed86dfac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:24-06:00\",\"updated_at\":\"2022-08-24T13:53:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipment_id\":\"shp_6044dc41c60e49059cf97c142ed6415c\",\"tracker\":{\"id\":\"trk_ae259ef2e6fe4ebb8553a3b00ad98304\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780395\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:25Z\",\"updated_at\":\"2022-08-24T19:53:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:25Z\",\"shipment_id\":\"shp_6044dc41c60e49059cf97c142ed6415c\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:25Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:25Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2FlMjU5ZWYyZTZmZTRlYmI4NTUzYTNiMDBhZDk4MzA0\",\"fees\":[]},\"tracking_code\":\"9400100109361134780395\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-24T19:53:25Z\",\"updated_at\":\"2022-08-24T19:53:25Z\"},{\"id\":\"ins_f55b2d83dbf745bfb52e68f2bf3f641a\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_6004b65723e611ed83c0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_60088dbb23e611ed9c80ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_7f1041d8add14b24add9f60d236962d0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780210\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:07Z\",\"shipment_id\":\"shp_7c01ed0c88ba460d99f381edc58539a8\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzdmMTA0MWQ4YWRkMTRiMjRhZGQ5ZjYwZDIzNjk2MmQw\",\"fees\":[]},\"tracking_code\":\"9400100109361134780210\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\"},{\"id\":\"ins_700f235f45d64c0e92f6975c2f827a8a\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_5e7b17f223e611ed8343ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:05-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_5e7f17c623e611ed9bfaac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:05-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_75946a1b1cb246379fc140ed2dcf5664\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780142\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:05Z\",\"shipment_id\":\"shp_1979c48868a440709bd03c51dbf07aa2\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzc1OTQ2YTFiMWNiMjQ2Mzc5ZmMxNDBlZDJkY2Y1NjY0\",\"fees\":[]},\"tracking_code\":\"9400100109361134780142\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\"},{\"id\":\"ins_e4ed0f5ed7b44cc782d8f9e42134fa92\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"purchased\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_06502341226711ed96c6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:09:00-06:00\",\"updated_at\":\"2022-08-22T16:09:00-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_065200ac226711ed96c7ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:09:00-06:00\",\"updated_at\":\"2022-08-22T16:09:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipment_id\":\"shp_bf47c48ff22c42788820529d540d7be1\",\"tracker\":{\"id\":\"trk_8da3034065804eb49ff925352d082f15\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134350277\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-08-22T22:09:01Z\",\"updated_at\":\"2022-08-22T22:12:01Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-08-22T22:12:01Z\",\"shipment_id\":\"shp_bf47c48ff22c42788820529d540d7be1\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-22T22:12:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-23T10:49:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-23T20:54:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-24T22:30:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-25T01:21:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T07:01:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-07-25T07:11:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-07-25T12:03:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-07-25T12:03:01Z\"},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzhkYTMwMzQwNjU4MDRlYjQ5ZmY5MjUzNTJkMDgyZjE1\",\"fees\":[]},\"tracking_code\":\"9400100109361134350277\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-22T22:09:01Z\",\"updated_at\":\"2022-08-22T22:09:01Z\"}],\"has_more\":true}", + "Body": "{\"insurances\":[{\"id\":\"ins_a44d84ddcf2748fc8fa8012db16ae8cd\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_30c9126d2eef11edb611ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_30cd022f2eef11edb614ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_3b87ff9c2b5d4a6ea37ace77e8f0ecb7\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477781\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:56Z\",\"shipment_id\":\"shp_26032efe9b2c4421881d69d1fe56813f\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:56Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:56Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzNiODdmZjljMmI1ZDRhNmVhMzdhY2U3N2U4ZjBlY2I3\",\"fees\":[]},\"tracking_code\":\"9400100109361136477781\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\"},{\"id\":\"ins_45e5e231c9474f69916fcac801214c59\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_1adebca82eef11ed852bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:20-06:00\",\"updated_at\":\"2022-09-07T14:53:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_1ae2db012eef11ed852cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:20-06:00\",\"updated_at\":\"2022-09-07T14:53:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_573615d4c3764408bea02735221fd335\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477644\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:20Z\",\"updated_at\":\"2022-09-07T20:53:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:20Z\",\"shipment_id\":\"shp_9e9b88fbf3d543cbb9f51de76e184010\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzU3MzYxNWQ0YzM3NjQ0MDhiZWEwMjczNTIyMWZkMzM1\",\"fees\":[]},\"tracking_code\":\"9400100109361136477644\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-09-07T20:53:20Z\",\"updated_at\":\"2022-09-07T20:53:20Z\"},{\"id\":\"ins_c50f506ae7d247c6bfc7a22c64ad81ed\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_19934af62eef11ed849dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:17-06:00\",\"updated_at\":\"2022-09-07T14:53:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_19978df42eef11edaf33ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:17-06:00\",\"updated_at\":\"2022-09-07T14:53:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_563d5cfa0eab449ba28ed1fc8a32a3a9\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477552\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:17Z\",\"updated_at\":\"2022-09-07T20:53:17Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:17Z\",\"shipment_id\":\"shp_e72165b3fe084a5da4512e9583f62fb0\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:17Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:17Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzU2M2Q1Y2ZhMGVhYjQ0OWJhMjhlZDFmYzhhMzJhM2E5\",\"fees\":[]},\"tracking_code\":\"9400100109361136477552\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-09-07T20:53:17Z\",\"updated_at\":\"2022-09-07T20:53:18Z\"},{\"id\":\"ins_185cbdfeb58c469cabc626fd4eae0c33\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"purchased\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_5c424f9228ac11ed9e2aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:26-06:00\",\"updated_at\":\"2022-08-30T15:40:26-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_5c444ee628ac11ed803dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:26-06:00\",\"updated_at\":\"2022-08-30T15:40:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"tracker\":{\"id\":\"trk_a427d239c4164b7398736b1bfc1a606d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658099\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-08-30T21:40:27Z\",\"updated_at\":\"2022-08-30T21:43:27Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:43:27Z\",\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:43:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:20:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-31T20:25:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-01T22:01:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-02T00:52:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-02T06:32:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-02T06:42:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-08-02T11:34:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-08-02T11:34:27Z\"},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrX2E0MjdkMjM5YzQxNjRiNzM5ODczNmIxYmZjMWE2MDZk\",\"fees\":[]},\"tracking_code\":\"9400100109361135658099\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-30T21:40:27Z\",\"updated_at\":\"2022-08-30T21:40:27Z\"},{\"id\":\"ins_e08eaa0d274541fc8d6811d9a3aede9a\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"purchased\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_3f93381c28ac11edb715ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_3f956f8828ac11edb717ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"tracker\":{\"id\":\"trk_90e673a44f1048499afec00695fdb048\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658006\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-08-30T21:39:39Z\",\"updated_at\":\"2022-08-30T21:42:39Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:42:39Z\",\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:42:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:19:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-31T20:24:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-01T22:00:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-02T00:51:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-02T06:31:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-02T06:41:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-08-02T11:33:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-08-02T11:33:39Z\"},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzkwZTY3M2E0NGYxMDQ4NDk5YWZlYzAwNjk1ZmRiMDQ4\",\"fees\":[]},\"tracking_code\":\"9400100109361135658006\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-30T21:39:39Z\",\"updated_at\":\"2022-08-30T21:39:39Z\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "18897" + "Content-Length": "20954" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,14 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bdf7efb5b800794b55", + "x-ep-request-uuid": "3bde9a2c631904e5e799fa20002e0c53", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"b6e81771c643773a279730b2b26c2ba4\"", - "x-runtime": "0.212155", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"0200bd3e64cdddae1d0f51a079afad17\"", + "x-runtime": "0.214991", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", + "x-canary": "direct", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, diff --git a/EasyPost.Tests/cassettes/net/insurance/create.json b/EasyPost.Tests/cassettes/net/insurance/create.json index 0d6da8633..c11580d9c 100644 --- a/EasyPost.Tests/cassettes/net/insurance/create.json +++ b/EasyPost.Tests/cassettes/net/insurance/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 542, - "RecordedAt": "2022-08-24T13:53:32.775611-06:00", + "Duration": 600, + "RecordedAt": "2022-09-07T14:53:56.655537-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:31Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780449\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6e3f42ad23e611ed8e78ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6f04edc0544841b28d2cc93f4d147bee\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0a2ff7b287f44f81bdf21d9e4c8ca5c0\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/8557a712e9f54b07946183197f49f504.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e69655812e0046c1b14129ab6a0d38b6\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_817405c9cdc84375a219c0b96209c7fd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ce4aaa2c15db426c84793f80efc8869e\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_817405c9cdc84375a219c0b96209c7fd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b98ce960d35b4d0ab00e134114c0fd78\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_817405c9cdc84375a219c0b96209c7fd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_85e18702013647e2ac2603877e57808a\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_817405c9cdc84375a219c0b96209c7fd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_ce4aaa2c15db426c84793f80efc8869e\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_817405c9cdc84375a219c0b96209c7fd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_9246fcd8acd14c49932a607bf6192a17\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780449\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_817405c9cdc84375a219c0b96209c7fd\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzkyNDZmY2Q4YWNkMTRjNDk5MzJhNjA3YmY2MTkyYTE3\"},\"to_address\":{\"id\":\"adr_6e3c617a23e611eda0f2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6e3f42ad23e611ed8e78ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6e3c617a23e611eda0f2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_817405c9cdc84375a219c0b96209c7fd\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:55Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477781\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_300aa6e92eef11edb5dcac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7bc28116f25e4981af6cb5b2f2ccc454\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_811d625417fa4facaacd53cace68f7f6\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:56Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/7fe90f4a27a34afebf10b8e4c57d4949.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_8dedbcd682534cf399711e2199d50cae\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_26032efe9b2c4421881d69d1fe56813f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_43819bf095dc4d92b62b026a00556b05\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_26032efe9b2c4421881d69d1fe56813f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7a38c8f987714c17869f54bd51fa2fb2\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_26032efe9b2c4421881d69d1fe56813f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ea1bc42835e5480c868ecc74d5c75f78\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_26032efe9b2c4421881d69d1fe56813f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7a38c8f987714c17869f54bd51fa2fb2\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_26032efe9b2c4421881d69d1fe56813f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_3b87ff9c2b5d4a6ea37ace77e8f0ecb7\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477781\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_26032efe9b2c4421881d69d1fe56813f\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzNiODdmZjljMmI1ZDRhNmVhMzdhY2U3N2U4ZjBlY2I3\"},\"to_address\":{\"id\":\"adr_300823ea2eef11edb5dbac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_300aa6e92eef11edb5dcac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_300823ea2eef11edb5dbac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_26032efe9b2c4421881d69d1fe56813f\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bbe68a86fd00794a30", + "x-ep-request-uuid": "3bde9a26631904e3e799f6ab002e0b98", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_817405c9cdc84375a219c0b96209c7fd", - "ETag": "W/\"ece50f906496c6628e40f6f2b14747ae\"", - "x-runtime": "1.244949", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_26032efe9b2c4421881d69d1fe56813f", + "ETag": "W/\"dfd803afc8f4b88c75d69eb3d2416e9f\"", + "x-runtime": "1.128175", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,10 +53,10 @@ } }, { - "Duration": 166, - "RecordedAt": "2022-08-24T13:53:32.980952-06:00", + "Duration": 224, + "RecordedAt": "2022-09-07T14:53:56.927564-06:00", "Request": { - "Body": "{\"insurance\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"tracking_code\":\"9400100109361134780449\",\"carrier\":\"USPS\",\"amount\":100}}", + "Body": "{\"insurance\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"tracking_code\":\"9400100109361136477781\",\"carrier\":\"USPS\",\"amount\":100}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/insurances" }, "Response": { - "Body": "{\"id\":\"ins_de748705567b4c65866d0bb4681c6d93\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_6f00af8723e611ed8724ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_6f04c97723e611eda13eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_9246fcd8acd14c49932a607bf6192a17\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780449\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:32Z\",\"shipment_id\":\"shp_817405c9cdc84375a219c0b96209c7fd\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:32Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:32Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzkyNDZmY2Q4YWNkMTRjNDk5MzJhNjA3YmY2MTkyYTE3\",\"fees\":[]},\"tracking_code\":\"9400100109361134780449\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\"}", + "Body": "{\"id\":\"ins_a44d84ddcf2748fc8fa8012db16ae8cd\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_30c9126d2eef11edb611ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_30cd022f2eef11edb614ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_3b87ff9c2b5d4a6ea37ace77e8f0ecb7\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477781\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:56Z\",\"shipment_id\":\"shp_26032efe9b2c4421881d69d1fe56813f\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:56Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:56Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzNiODdmZjljMmI1ZDRhNmVhMzdhY2U3N2U4ZjBlY2I3\",\"fees\":[]},\"tracking_code\":\"9400100109361136477781\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,14 +87,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bce68a86fd00794b10", + "x-ep-request-uuid": "3bde9a26631904e4e799f6ab002e0c1a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/insurances/ins_de748705567b4c65866d0bb4681c6d93", - "ETag": "W/\"6fbede09a3a6fcb4d635c95d7b004221\"", - "x-runtime": "0.129009", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/insurances/ins_a44d84ddcf2748fc8fa8012db16ae8cd", + "ETag": "W/\"63364660bee9ae9799efd8600a38a784\"", + "x-runtime": "0.157793", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -104,5 +104,5 @@ "Message": "Created" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/insurance/retrieve.json b/EasyPost.Tests/cassettes/net/insurance/retrieve.json index ca9c0db53..d8873ded2 100644 --- a/EasyPost.Tests/cassettes/net/insurance/retrieve.json +++ b/EasyPost.Tests/cassettes/net/insurance/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 209, - "RecordedAt": "2022-08-24T13:53:34.718602-06:00", + "Duration": 331, + "RecordedAt": "2022-09-07T14:53:58.876616-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:33Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780524\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6f7f833623e611eda179ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_1d0579b88d1e4b879ea5dca26d016ee9\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_2c8bcfb987304a49809a4b7517833c0c\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/b1cdbdaedc9b4f83a44abb5b637ab8f0.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_0906fd0ca6254b7fb2b13b7b775bbd06\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2f5af106a68448e0b929aa735e9fc7f3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bd674b1b8b6f4ec390c5308c896950d8\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_2f5af106a68448e0b929aa735e9fc7f3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_93722370eca34639a56a460f85b8cb0d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_2f5af106a68448e0b929aa735e9fc7f3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_37240846b0ef4857b7b11fb60e7b9ec0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2f5af106a68448e0b929aa735e9fc7f3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_0906fd0ca6254b7fb2b13b7b775bbd06\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2f5af106a68448e0b929aa735e9fc7f3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_d61212b5a7c84047a3834c369257ba60\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780524\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_2f5af106a68448e0b929aa735e9fc7f3\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2Q2MTIxMmI1YTdjODQwNDdhMzgzNGMzNjkyNTdiYTYw\"},\"to_address\":{\"id\":\"adr_6f7de65523e611ed88feac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6f7f833623e611eda179ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6f7de65523e611ed88feac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_2f5af106a68448e0b929aa735e9fc7f3\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477859\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3166c2082eef11ed8fd1ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_3e3b67fcb44a4b5583c8364b0dffe820\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_58e59d90ef4d4b55a87b8bdab505cffb\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/f8ca98fea87a4173b4a9dbe1fb18c939.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_0de172aab00f4c0b822ba9f2ce180d37\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b0d6041253554fcfb3ed113101b30e30\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ad704186b9b447c3bf955ec6bbaf6dae\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d2ffc799094d4d08a0497db036b5a49a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_0de172aab00f4c0b822ba9f2ce180d37\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_1d11796bc97d419ca61de49a61b5c1d4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477859\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzFkMTE3OTZiYzk3ZDQxOWNhNjFkZTQ5YTYxYjVjMWQ0\"},\"to_address\":{\"id\":\"adr_316468a22eef11eda086ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3166c2082eef11ed8fd1ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_316468a22eef11eda086ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bde68d450100794ba0", + "x-ep-request-uuid": "3bde9a2c631904e5e799fa41002e0c9a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_2f5af106a68448e0b929aa735e9fc7f3", - "ETag": "W/\"52881604c30f15ba34540045e6299cfa\"", - "x-runtime": "1.019404", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_da351b4842ab4a768fce4cc8ad0a42ca", + "ETag": "W/\"ed2d1c8508909b4ec6fbf058251b83d9\"", + "x-runtime": "1.062359", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,10 +53,10 @@ } }, { - "Duration": 210, - "RecordedAt": "2022-08-24T13:53:34.966512-06:00", + "Duration": 221, + "RecordedAt": "2022-09-07T14:53:59.119666-06:00", "Request": { - "Body": "{\"insurance\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"tracking_code\":\"9400100109361134780524\",\"carrier\":\"USPS\",\"amount\":100}}", + "Body": "{\"insurance\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"tracking_code\":\"9400100109361136477859\",\"carrier\":\"USPS\",\"amount\":100}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/insurances" }, "Response": { - "Body": "{\"id\":\"ins_228b2970915d40c0a3b688e3b6b10bbe\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_7029b66223e611ed8f3cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_70311ae323e611eda1b2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_d61212b5a7c84047a3834c369257ba60\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780524\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:34Z\",\"shipment_id\":\"shp_2f5af106a68448e0b929aa735e9fc7f3\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:34Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:34Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2Q2MTIxMmI1YTdjODQwNDdhMzgzNGMzNjkyNTdiYTYw\",\"fees\":[]},\"tracking_code\":\"9400100109361134780524\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\"}", + "Body": "{\"id\":\"ins_09b4cbd7c92845c9902b84a55b18bdf8\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_3216ed2e2eef11ed98ceac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:59-06:00\",\"updated_at\":\"2022-09-07T14:53:59-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_321ba67c2eef11ed98d2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:59-06:00\",\"updated_at\":\"2022-09-07T14:53:59-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_1d11796bc97d419ca61de49a61b5c1d4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477859\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:59Z\",\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzFkMTE3OTZiYzk3ZDQxOWNhNjFkZTQ5YTYxYjVjMWQ0\",\"fees\":[]},\"tracking_code\":\"9400100109361136477859\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,14 +87,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bee68d450100794c50", + "x-ep-request-uuid": "3bde9a2c631904e7e799fa41002e0d10", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/insurances/ins_228b2970915d40c0a3b688e3b6b10bbe", - "ETag": "W/\"4096fef633f468c264e62f21773884b2\"", - "x-runtime": "0.170177", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/insurances/ins_09b4cbd7c92845c9902b84a55b18bdf8", + "ETag": "W/\"18fe53acf9e142b331447bad67c9c50c\"", + "x-runtime": "0.163333", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -106,8 +106,8 @@ } }, { - "Duration": 92, - "RecordedAt": "2022-08-24T13:53:35.084113-06:00", + "Duration": 230, + "RecordedAt": "2022-09-07T14:53:59.363951-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -119,10 +119,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/insurances/ins_228b2970915d40c0a3b688e3b6b10bbe" + "Uri": "https://api.easypost.com/v2/insurances/ins_09b4cbd7c92845c9902b84a55b18bdf8" }, "Response": { - "Body": "{\"id\":\"ins_228b2970915d40c0a3b688e3b6b10bbe\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_7029b66223e611ed8f3cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_70311ae323e611eda1b2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_d61212b5a7c84047a3834c369257ba60\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780524\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:34Z\",\"shipment_id\":\"shp_2f5af106a68448e0b929aa735e9fc7f3\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:34Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:34Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2Q2MTIxMmI1YTdjODQwNDdhMzgzNGMzNjkyNTdiYTYw\",\"fees\":[]},\"tracking_code\":\"9400100109361134780524\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\"}", + "Body": "{\"id\":\"ins_09b4cbd7c92845c9902b84a55b18bdf8\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_3216ed2e2eef11ed98ceac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:59-06:00\",\"updated_at\":\"2022-09-07T14:53:59-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_321ba67c2eef11ed98d2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:59-06:00\",\"updated_at\":\"2022-09-07T14:53:59-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_1d11796bc97d419ca61de49a61b5c1d4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477859\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:59Z\",\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzFkMTE3OTZiYzk3ZDQxOWNhNjFkZTQ5YTYxYjVjMWQ0\",\"fees\":[]},\"tracking_code\":\"9400100109361136477859\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -137,13 +137,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bfe68d450100794c6b", + "x-ep-request-uuid": "3bde9a2c631904e7e799fa41002e0d26", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"0d6e08bb7213cfffd85d57e936eea086\"", - "x-runtime": "0.052895", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"ddb26e65706738647b39371f7a598683\"", + "x-runtime": "0.166143", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -153,5 +153,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/order/buy.json b/EasyPost.Tests/cassettes/net/order/buy.json index ae91dc73a..526c65b79 100644 --- a/EasyPost.Tests/cassettes/net/order/buy.json +++ b/EasyPost.Tests/cassettes/net/order/buy.json @@ -1,7 +1,7 @@ [ { - "Duration": 931, - "RecordedAt": "2022-08-24T13:53:32.165827-06:00", + "Duration": 175, + "RecordedAt": "2022-09-07T14:53:56.221289-06:00", "Request": { "Body": "{\"order\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/orders" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_6e4255a723e611ed8e7bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_6e40df3423e611ed8e7aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6e40df3423e611ed8e7aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_6e4255a723e611ed8e7bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:31Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:31Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6e4255a723e611ed8e7bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_6f767b7e701f4bf6a87a4f89cc288981\",\"parcel\":{\"id\":\"prcl_773289ae296e4c9594cab1dae062a171\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8396ae8ee18d4aedb3840bc3d3a55acc\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7fe38a573d1e482197fb5938563baa1d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_edd57925bd1643fe85ea36bfcc5278be\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9e6b3b0ec716442c8972e3ee35fb8e28\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_6e40df3423e611ed8e7aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6e4255a723e611ed8e7bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6e40df3423e611ed8e7aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_8396ae8ee18d4aedb3840bc3d3a55acc\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7fe38a573d1e482197fb5938563baa1d\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_edd57925bd1643fe85ea36bfcc5278be\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9e6b3b0ec716442c8972e3ee35fb8e28\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_6f767b7e701f4bf6a87a4f89cc288981\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_2ff954eb2eef11ed8f2eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_2ff77fc02eef11ed8f2cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_2ff77fc02eef11ed8f2cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_2ff954eb2eef11ed8f2eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T20:53:55Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:53:55Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_2ff954eb2eef11ed8f2eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_9e622ff8fe244b7d80c6faf4e3314fe8\",\"parcel\":{\"id\":\"prcl_aced32c5d90c48a5ac2be679abb53437\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_aff502ad98274eaabdb515175664985e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_28d490ed625d4547877891886bf7ea8e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_81f91344cf8f4348a640c9b9912bc5a2\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_437f6aa080154031abe3abbbb900416a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_2ff77fc02eef11ed8f2cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_2ff954eb2eef11ed8f2eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_2ff77fc02eef11ed8f2cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_aff502ad98274eaabdb515175664985e\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_28d490ed625d4547877891886bf7ea8e\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_81f91344cf8f4348a640c9b9912bc5a2\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_437f6aa080154031abe3abbbb900416a\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_9e622ff8fe244b7d80c6faf4e3314fe8\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681bbf7a6475600794a44", + "x-ep-request-uuid": "3bde9a27631904e3e799f68a002e0b80", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/orders/order_6f767b7e701f4bf6a87a4f89cc288981", - "ETag": "W/\"0009b9e3733ae7e0995419827e90d4ec\"", - "x-runtime": "0.554309", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/orders/order_9e622ff8fe244b7d80c6faf4e3314fe8", + "ETag": "W/\"fe982adcf464f9fd93cfe9fdab6bbafa\"", + "x-runtime": "0.813295", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 909, - "RecordedAt": "2022-08-24T13:53:33.178609-06:00", + "Duration": 23, + "RecordedAt": "2022-09-07T14:53:57.294206-06:00", "Request": { "Body": "{\"carrier\":\"USPS\",\"service\":\"First\"}", "BodyContentType": "Json", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/orders/order_6f767b7e701f4bf6a87a4f89cc288981/buy" + "Uri": "https://api.easypost.com/v2/orders/order_9e622ff8fe244b7d80c6faf4e3314fe8/buy" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_6e4255a723e611ed8e7bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_6e40df3423e611ed8e7aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"buyer_address\":{\"id\":\"adr_6e40df3423e611ed8e7aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"return_address\":{\"id\":\"adr_6e4255a723e611ed8e7bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:31Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780470\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6e4255a723e611ed8e7bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_6f767b7e701f4bf6a87a4f89cc288981\",\"parcel\":{\"id\":\"prcl_773289ae296e4c9594cab1dae062a171\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_a0ac30f953c64cfcb81e6a5299ed7c85\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/7087b86162eb4ab3a8ee58f071aa033e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_8396ae8ee18d4aedb3840bc3d3a55acc\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7fe38a573d1e482197fb5938563baa1d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_edd57925bd1643fe85ea36bfcc5278be\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9e6b3b0ec716442c8972e3ee35fb8e28\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7fe38a573d1e482197fb5938563baa1d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_6f421542833e41309a71cc1e5b00c8bb\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780470\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzZmNDIxNTQyODMzZTQxMzA5YTcxY2MxZTViMDBjOGJi\"},\"to_address\":{\"id\":\"adr_6e40df3423e611ed8e7aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6e4255a723e611ed8e7bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6e40df3423e611ed8e7aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_8396ae8ee18d4aedb3840bc3d3a55acc\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7fe38a573d1e482197fb5938563baa1d\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_edd57925bd1643fe85ea36bfcc5278be\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9e6b3b0ec716442c8972e3ee35fb8e28\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da4cda8d8b2e4d2d933fccfd67b74fc4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_6f767b7e701f4bf6a87a4f89cc288981\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_2ff954eb2eef11ed8f2eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_2ff77fc02eef11ed8f2cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"buyer_address\":{\"id\":\"adr_2ff77fc02eef11ed8f2cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"return_address\":{\"id\":\"adr_2ff954eb2eef11ed8f2eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T20:53:55Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477811\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_2ff954eb2eef11ed8f2eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_9e622ff8fe244b7d80c6faf4e3314fe8\",\"parcel\":{\"id\":\"prcl_aced32c5d90c48a5ac2be679abb53437\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_20946456e71a4fbf93d7bad70a10fed1\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:56Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/2be5390aabe34e69b11bde364510903d.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_aff502ad98274eaabdb515175664985e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_28d490ed625d4547877891886bf7ea8e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_81f91344cf8f4348a640c9b9912bc5a2\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_437f6aa080154031abe3abbbb900416a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_437f6aa080154031abe3abbbb900416a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_72d635ab50c04d5ea243f923fe2e3189\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477811\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzcyZDYzNWFiNTBjMDRkNWVhMjQzZjkyM2ZlMmUzMTg5\"},\"to_address\":{\"id\":\"adr_2ff77fc02eef11ed8f2cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_2ff954eb2eef11ed8f2eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_2ff77fc02eef11ed8f2cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_aff502ad98274eaabdb515175664985e\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_28d490ed625d4547877891886bf7ea8e\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_81f91344cf8f4348a640c9b9912bc5a2\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_437f6aa080154031abe3abbbb900416a\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a85254a193b24e57a29d76c007e2ba7f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_9e622ff8fe244b7d80c6faf4e3314fe8\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681bcf7a6475600794aa7", + "x-ep-request-uuid": "3bde9a27631904e4e799f68a002e0bec", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"1c069de3cfd03c82821071e905b49a0d\"", - "x-runtime": "0.870220", + "ETag": "W/\"8f34d1aaf5ec162a0f823566c568f56a\"", + "x-runtime": "0.960114", "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -103,5 +103,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/order/create.json b/EasyPost.Tests/cassettes/net/order/create.json index f3a9b012a..5a504d5c4 100644 --- a/EasyPost.Tests/cassettes/net/order/create.json +++ b/EasyPost.Tests/cassettes/net/order/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 779, - "RecordedAt": "2022-08-24T13:53:37.156428-06:00", + "Duration": 118, + "RecordedAt": "2022-09-07T14:54:02.094875-06:00", "Request": { "Body": "{\"order\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/orders" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_713628af23e611ed89afac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_7134e83123e611ed8fa7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_7134e83123e611ed8fa7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_713628af23e611ed89afac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:36Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:36Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_713628af23e611ed89afac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_44e2b782500b4edf950503495382890e\",\"parcel\":{\"id\":\"prcl_a4c5167cf94c45b3b2d99ee62c85437f\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_dd2e3be09115434fb56f624c069e19e6\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_649c439eb586443fbf296db7f823a88f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7803de3c98554a0ca33d8a86368e481a\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_649c439eb586443fbf296db7f823a88f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6c7146d891f64454ac9f81168b0e2f8c\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_649c439eb586443fbf296db7f823a88f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1aff51c63a0b495f9d19b85920577c9f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_649c439eb586443fbf296db7f823a88f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_7134e83123e611ed8fa7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_713628af23e611ed89afac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_7134e83123e611ed8fa7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_649c439eb586443fbf296db7f823a88f\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_dd2e3be09115434fb56f624c069e19e6\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_649c439eb586443fbf296db7f823a88f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7803de3c98554a0ca33d8a86368e481a\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_649c439eb586443fbf296db7f823a88f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6c7146d891f64454ac9f81168b0e2f8c\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_649c439eb586443fbf296db7f823a88f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1aff51c63a0b495f9d19b85920577c9f\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_649c439eb586443fbf296db7f823a88f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_44e2b782500b4edf950503495382890e\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T20:54:01Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_3377386e2eef11ed9987ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_337618802eef11eda1b5ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_337618802eef11eda1b5ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_3377386e2eef11ed9987ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T20:54:01Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:54:01Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3377386e2eef11ed9987ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_bfcce7bc96a044588a48fc316f32cb9e\",\"parcel\":{\"id\":\"prcl_e3464c634d774c8dab82f19596a50ce4\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:01Z\",\"updated_at\":\"2022-09-07T20:54:01Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_46d42089934048aea7622e01da325b76\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:02Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_edcf912a0ad9422aa8494b58bf9d88da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c0ddd689936e4e2bbcf695e0328dddd9\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:02Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_edcf912a0ad9422aa8494b58bf9d88da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_68092ba15f06408eb6f11dc84ab5c30e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:02Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_edcf912a0ad9422aa8494b58bf9d88da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_286742ec2fca4a7cb9495cd8ac13b338\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:02Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_edcf912a0ad9422aa8494b58bf9d88da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_337618802eef11eda1b5ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3377386e2eef11ed9987ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_337618802eef11eda1b5ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_edcf912a0ad9422aa8494b58bf9d88da\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_46d42089934048aea7622e01da325b76\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_edcf912a0ad9422aa8494b58bf9d88da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c0ddd689936e4e2bbcf695e0328dddd9\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_edcf912a0ad9422aa8494b58bf9d88da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_68092ba15f06408eb6f11dc84ab5c30e\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_edcf912a0ad9422aa8494b58bf9d88da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_286742ec2fca4a7cb9495cd8ac13b338\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_edcf912a0ad9422aa8494b58bf9d88da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_bfcce7bc96a044588a48fc316f32cb9e\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681c0f7a4a6d300794d30", + "x-ep-request-uuid": "3bde9a2c631904e9e799fa67002e0dd8", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/orders/order_44e2b782500b4edf950503495382890e", - "ETag": "W/\"6bd7325201084b5da03ff632c22ecdca\"", - "x-runtime": "0.590719", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/orders/order_bfcce7bc96a044588a48fc316f32cb9e", + "ETag": "W/\"bc9b95d252da21df75d12cf1ab7183b5\"", + "x-runtime": "0.817309", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/order/get_rates.json b/EasyPost.Tests/cassettes/net/order/get_rates.json index 70ea414e4..46b3b4807 100644 --- a/EasyPost.Tests/cassettes/net/order/get_rates.json +++ b/EasyPost.Tests/cassettes/net/order/get_rates.json @@ -1,7 +1,7 @@ [ { - "Duration": 725, - "RecordedAt": "2022-08-24T13:53:34.969141-06:00", + "Duration": 866, + "RecordedAt": "2022-09-07T14:53:59.276202-06:00", "Request": { "Body": "{\"order\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/orders" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_6fee385523e611ed8926ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_6fecfa1423e611ed8765ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6fecfa1423e611ed8765ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_6fee385523e611ed8926ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:34Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6fee385523e611ed8926ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_4b126047ae1443d19239569316150976\",\"parcel\":{\"id\":\"prcl_e1303d5164294b01af4f021267e7f695\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_6201802119934b8b9e065a4844fe3889\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6e2786930a354cd5867789731ac0dee3\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b3ee7adf27c04fe789772d0185639697\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d719140aaa1541ac8d6359bdc2e85956\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_6fecfa1423e611ed8765ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6fee385523e611ed8926ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6fecfa1423e611ed8765ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_6201802119934b8b9e065a4844fe3889\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6e2786930a354cd5867789731ac0dee3\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b3ee7adf27c04fe789772d0185639697\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d719140aaa1541ac8d6359bdc2e85956\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_4b126047ae1443d19239569316150976\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_31ea1b6b2eef11eda0c6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_31e8dabb2eef11ed9013ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_31e8dabb2eef11ed9013ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_31ea1b6b2eef11eda0c6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T20:53:58Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:53:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_31ea1b6b2eef11eda0c6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_9667ad95674f468fb97d3ffb3b934f8f\",\"parcel\":{\"id\":\"prcl_76e48d603b414d9e80abcb4ed9136162\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8baf4cfdb8a34f8fb5b24f402d0e516a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b464f099b92d4a8e84689c98463807dc\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_588036d7dd62483bb697536f4a29fd4b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_414777619e5d4aaa8d30e5525dad9f08\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_31e8dabb2eef11ed9013ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_31ea1b6b2eef11eda0c6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_31e8dabb2eef11ed9013ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_8baf4cfdb8a34f8fb5b24f402d0e516a\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b464f099b92d4a8e84689c98463807dc\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_588036d7dd62483bb697536f4a29fd4b\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_414777619e5d4aaa8d30e5525dad9f08\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_9667ad95674f468fb97d3ffb3b934f8f\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681bef7c9c9cc00794c1d", + "x-ep-request-uuid": "3bde9a27631904e6e799fa46002e0ced", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/orders/order_4b126047ae1443d19239569316150976", - "ETag": "W/\"d5aca2183873a66e76fad5ce793a7ce3\"", - "x-runtime": "0.553119", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/orders/order_9667ad95674f468fb97d3ffb3b934f8f", + "ETag": "W/\"c861647bbc5cc81c2c068e9590cedfba\"", + "x-runtime": "0.599545", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 594, - "RecordedAt": "2022-08-24T13:53:35.603295-06:00", + "Duration": 714, + "RecordedAt": "2022-09-07T14:54:00.015005-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/orders/order_4b126047ae1443d19239569316150976/rates" + "Uri": "https://api.easypost.com/v2/orders/order_9667ad95674f468fb97d3ffb3b934f8f/rates" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_6fee385523e611ed8926ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_6fecfa1423e611ed8765ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6fecfa1423e611ed8765ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_6fee385523e611ed8926ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53: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\":\"2022-08-24T19:53:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6fee385523e611ed8926ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_4b126047ae1443d19239569316150976\",\"parcel\":{\"id\":\"prcl_e1303d5164294b01af4f021267e7f695\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_0adfeb295aaa4bf78b90c40693c1e422\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e5a3cebc86114ae0a69c89d1a426b0a7\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9c9adaa0366340a88f6f5481400b059b\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1b673b3d22374fd9bd8ba1d67d5bdb1c\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_6fecfa1423e611ed8765ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6fee385523e611ed8926ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6fecfa1423e611ed8765ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_0adfeb295aaa4bf78b90c40693c1e422\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e5a3cebc86114ae0a69c89d1a426b0a7\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9c9adaa0366340a88f6f5481400b059b\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1b673b3d22374fd9bd8ba1d67d5bdb1c\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a4df3c587c30476f8e5c70f2ec4f35c6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_4b126047ae1443d19239569316150976\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_31ea1b6b2eef11eda0c6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_31e8dabb2eef11ed9013ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_31e8dabb2eef11ed9013ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_31ea1b6b2eef11eda0c6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T20:53:58Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:53:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_31ea1b6b2eef11eda0c6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_9667ad95674f468fb97d3ffb3b934f8f\",\"parcel\":{\"id\":\"prcl_76e48d603b414d9e80abcb4ed9136162\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_a610c8967a464a0d81d9915a7595c986\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8bb78519851546808ce99f67ceaae742\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c1464f2299a548b6863e7e8b0decf347\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4ab519fc67374a7ea208c2c09eb5e7d7\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_31e8dabb2eef11ed9013ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_31ea1b6b2eef11eda0c6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_31e8dabb2eef11ed9013ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_a610c8967a464a0d81d9915a7595c986\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8bb78519851546808ce99f67ceaae742\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c1464f2299a548b6863e7e8b0decf347\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4ab519fc67374a7ea208c2c09eb5e7d7\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a84c376fd06b4e859ded32c828819808\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_9667ad95674f468fb97d3ffb3b934f8f\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,13 +84,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681bff7c9c9cc00794c6c", + "x-ep-request-uuid": "3bde9a27631904e7e799fa46002e0d31", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"2fa021bceeb37c2a9a0f35f682c91efa\"", - "x-runtime": "0.555330", + "ETag": "W/\"48274fec3101beda5925d36842a76130\"", + "x-runtime": "0.656036", "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/order/lowest_rate.json b/EasyPost.Tests/cassettes/net/order/lowest_rate.json index 478c2f94a..93a4db67b 100644 --- a/EasyPost.Tests/cassettes/net/order/lowest_rate.json +++ b/EasyPost.Tests/cassettes/net/order/lowest_rate.json @@ -1,7 +1,7 @@ [ { - "Duration": 707, - "RecordedAt": "2022-08-24T13:53:36.342402-06:00", + "Duration": 902, + "RecordedAt": "2022-09-07T14:54:00.94355-06:00", "Request": { "Body": "{\"order\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/orders" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_70c3d72023e611ed8974ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_70c294dd23e611ed8f6bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_70c294dd23e611ed8f6bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_70c3d72023e611ed8974ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:36Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:36Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_70c3d72023e611ed8974ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_c67ab753283c4646882a55d8cf0e9cd5\",\"parcel\":{\"id\":\"prcl_976794b43f754b4381a4776d388155c6\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_373a5aeaf3aa41ccb722fcf100d86f19\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9b9f0ea111e44651b77e005edd28f74e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_359a20ed42f34c8ba517b69ca76891d0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_9b9f0ea111e44651b77e005edd28f74e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5c8ec97ff9eb4a96978fa242543a39c1\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_9b9f0ea111e44651b77e005edd28f74e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bc16376260ef4b4988719bed47e6f328\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9b9f0ea111e44651b77e005edd28f74e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_70c294dd23e611ed8f6bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_70c3d72023e611ed8974ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_70c294dd23e611ed8f6bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_9b9f0ea111e44651b77e005edd28f74e\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_373a5aeaf3aa41ccb722fcf100d86f19\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9b9f0ea111e44651b77e005edd28f74e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_359a20ed42f34c8ba517b69ca76891d0\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_9b9f0ea111e44651b77e005edd28f74e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5c8ec97ff9eb4a96978fa242543a39c1\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_9b9f0ea111e44651b77e005edd28f74e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bc16376260ef4b4988719bed47e6f328\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9b9f0ea111e44651b77e005edd28f74e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_c67ab753283c4646882a55d8cf0e9cd5\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T20:54:00Z\",\"updated_at\":\"2022-09-07T20:54:00Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_32e2e7582eef11eda16aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:00-06:00\",\"updated_at\":\"2022-09-07T14:54:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_32e1894c2eef11ed90b5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:00-06:00\",\"updated_at\":\"2022-09-07T14:54:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_32e1894c2eef11ed90b5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:00-06:00\",\"updated_at\":\"2022-09-07T14:54:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_32e2e7582eef11eda16aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:00-06:00\",\"updated_at\":\"2022-09-07T14:54:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T20:54:00Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:54:00Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_32e2e7582eef11eda16aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:00-06:00\",\"updated_at\":\"2022-09-07T14:54:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_d5d1fa6dffbc46c493b4dffda51eb43f\",\"parcel\":{\"id\":\"prcl_4e6b9194d13c448fb5b2a0817cb629d7\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:00Z\",\"updated_at\":\"2022-09-07T20:54:00Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8a0970def74743a080ee492b6a1fe91b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:00Z\",\"updated_at\":\"2022-09-07T20:54:00Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f2053650c31145fdbb228eebfee65dfa\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f1b59f7521374c73ad206675e5efb144\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:00Z\",\"updated_at\":\"2022-09-07T20:54:00Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f2053650c31145fdbb228eebfee65dfa\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fcd2e655648e4c4f9bf8470268838d84\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:00Z\",\"updated_at\":\"2022-09-07T20:54:00Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f2053650c31145fdbb228eebfee65dfa\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_38767bcaef1749c3ac97f81e6e13b4e6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:00Z\",\"updated_at\":\"2022-09-07T20:54:00Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f2053650c31145fdbb228eebfee65dfa\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_32e1894c2eef11ed90b5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:00-06:00\",\"updated_at\":\"2022-09-07T14:54:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_32e2e7582eef11eda16aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:00-06:00\",\"updated_at\":\"2022-09-07T14:54:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_32e1894c2eef11ed90b5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:00-06:00\",\"updated_at\":\"2022-09-07T14:54:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_f2053650c31145fdbb228eebfee65dfa\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_8a0970def74743a080ee492b6a1fe91b\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f2053650c31145fdbb228eebfee65dfa\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f1b59f7521374c73ad206675e5efb144\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f2053650c31145fdbb228eebfee65dfa\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fcd2e655648e4c4f9bf8470268838d84\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f2053650c31145fdbb228eebfee65dfa\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_38767bcaef1749c3ac97f81e6e13b4e6\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f2053650c31145fdbb228eebfee65dfa\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_d5d1fa6dffbc46c493b4dffda51eb43f\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681bff7ed87f600794cd0", + "x-ep-request-uuid": "3bde9a2a631904e8e799fa64002e0d87", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/orders/order_c67ab753283c4646882a55d8cf0e9cd5", - "ETag": "W/\"4ee7f115549edbcd06efb147bb8334fa\"", - "x-runtime": "0.526459", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/orders/order_d5d1fa6dffbc46c493b4dffda51eb43f", + "ETag": "W/\"cafa01e7bfc1aa07736a4b945ec24289\"", + "x-runtime": "0.627227", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/order/retrieve.json b/EasyPost.Tests/cassettes/net/order/retrieve.json index a20edd96a..a7042569b 100644 --- a/EasyPost.Tests/cassettes/net/order/retrieve.json +++ b/EasyPost.Tests/cassettes/net/order/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 803, - "RecordedAt": "2022-08-24T13:53:34.0245-06:00", + "Duration": 814, + "RecordedAt": "2022-09-07T14:53:58.158637-06:00", "Request": { "Body": "{\"order\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/orders" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_6f57b45c23e611ed88e5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_6f55cfc723e611ed8ee4ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6f55cfc723e611ed8ee4ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_6f57b45c23e611ed88e5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:33Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:33Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6f57b45c23e611ed88e5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_f8734336907a428386a5e197329b4a2d\",\"parcel\":{\"id\":\"prcl_a9982eac68064840ba72ae6e0d3486d3\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_1444e97d0bf54aebb8e8fdb202b6e78e\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eb6b7bb7ce4e4767932fa4a405e7e6db\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ca527d8604394993887ec94388cc1f98\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0ea2cee31f264b9faef01f25bd2cd890\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_6f55cfc723e611ed8ee4ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6f57b45c23e611ed88e5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6f55cfc723e611ed8ee4ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_1444e97d0bf54aebb8e8fdb202b6e78e\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eb6b7bb7ce4e4767932fa4a405e7e6db\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ca527d8604394993887ec94388cc1f98\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0ea2cee31f264b9faef01f25bd2cd890\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_f8734336907a428386a5e197329b4a2d\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_3146cefe2eef11edb639ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_3145875b2eef11edb638ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3145875b2eef11edb638ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_3146cefe2eef11edb639ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:53:57Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3146cefe2eef11edb639ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_bdb14a5b16bc4aa9b79824c6a13ff4c0\",\"parcel\":{\"id\":\"prcl_73b5e7be63fe46f0abf33269e55ff011\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_2b888dc2aff141bfa44de9681f4f020a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_108e1182a2704fa5b2f234dcbeda90ff\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c550425e25464d0cb39352e584c0a139\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8171168348b8476388837fbd3c9165eb\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3145875b2eef11edb638ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3146cefe2eef11edb639ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3145875b2eef11edb638ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_2b888dc2aff141bfa44de9681f4f020a\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_108e1182a2704fa5b2f234dcbeda90ff\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c550425e25464d0cb39352e584c0a139\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8171168348b8476388837fbd3c9165eb\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_bdb14a5b16bc4aa9b79824c6a13ff4c0\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bdf7dea4b600794b75", + "x-ep-request-uuid": "3bde9a2a631904e5e799fa25002e0c87", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/orders/order_f8734336907a428386a5e197329b4a2d", - "ETag": "W/\"ec951db7fcb048f3083c7f153d336488\"", - "x-runtime": "0.612916", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/orders/order_bdb14a5b16bc4aa9b79824c6a13ff4c0", + "ETag": "W/\"e35620bd59da4b7ac52419ac07737753\"", + "x-runtime": "0.547346", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 153, - "RecordedAt": "2022-08-24T13:53:34.208673-06:00", + "Duration": 189, + "RecordedAt": "2022-09-07T14:53:58.371892-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/orders/order_f8734336907a428386a5e197329b4a2d" + "Uri": "https://api.easypost.com/v2/orders/order_bdb14a5b16bc4aa9b79824c6a13ff4c0" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_6f57b45c23e611ed88e5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_6f55cfc723e611ed8ee4ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6f55cfc723e611ed8ee4ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_6f57b45c23e611ed88e5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:33Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:33Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6f57b45c23e611ed88e5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_f8734336907a428386a5e197329b4a2d\",\"parcel\":{\"id\":\"prcl_a9982eac68064840ba72ae6e0d3486d3\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_1444e97d0bf54aebb8e8fdb202b6e78e\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eb6b7bb7ce4e4767932fa4a405e7e6db\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ca527d8604394993887ec94388cc1f98\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0ea2cee31f264b9faef01f25bd2cd890\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_6f55cfc723e611ed8ee4ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6f57b45c23e611ed88e5ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6f55cfc723e611ed8ee4ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_1444e97d0bf54aebb8e8fdb202b6e78e\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eb6b7bb7ce4e4767932fa4a405e7e6db\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ca527d8604394993887ec94388cc1f98\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0ea2cee31f264b9faef01f25bd2cd890\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b259afec2b1647acaa2eace6400ebac3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_f8734336907a428386a5e197329b4a2d\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_3146cefe2eef11edb639ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_3145875b2eef11edb638ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3145875b2eef11edb638ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_3146cefe2eef11edb639ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T20:53: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\":\"2022-09-07T20:53:57Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3146cefe2eef11edb639ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_bdb14a5b16bc4aa9b79824c6a13ff4c0\",\"parcel\":{\"id\":\"prcl_73b5e7be63fe46f0abf33269e55ff011\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_2b888dc2aff141bfa44de9681f4f020a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_108e1182a2704fa5b2f234dcbeda90ff\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c550425e25464d0cb39352e584c0a139\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8171168348b8476388837fbd3c9165eb\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3145875b2eef11edb638ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3146cefe2eef11edb639ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3145875b2eef11edb638ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_2b888dc2aff141bfa44de9681f4f020a\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_108e1182a2704fa5b2f234dcbeda90ff\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c550425e25464d0cb39352e584c0a139\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8171168348b8476388837fbd3c9165eb\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9f8728a2f4845b99dc1cb20233774a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_bdb14a5b16bc4aa9b79824c6a13ff4c0\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bef7dea4b600794bdd", + "x-ep-request-uuid": "3bde9a2a631904e6e799fa25002e0cc5", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"d8d2f898adc338c8b78ca3f6bc92d6ad\"", - "x-runtime": "0.115879", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"86becf53dec660cfa1547d5554eaaae7\"", + "x-runtime": "0.115654", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/parcel/create.json b/EasyPost.Tests/cassettes/net/parcel/create.json index 3bb6485a5..f3112baf8 100644 --- a/EasyPost.Tests/cassettes/net/parcel/create.json +++ b/EasyPost.Tests/cassettes/net/parcel/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 481, - "RecordedAt": "2022-08-24T13:53:31.710631-06:00", + "Duration": 497, + "RecordedAt": "2022-09-07T14:53:55.550416-06:00", "Request": { "Body": "{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/parcels" }, "Response": { - "Body": "{\"id\":\"prcl_9038bb47b70e419eadab713296b5a8db\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", + "Body": "{\"id\":\"prcl_a70941ba0e064aeba2777bca8babee0e\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681bbf7cda4bb00794a2d", + "x-ep-request-uuid": "3bde9a2a631904e3e799f6c6002e0b99", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/parcels.prcl_9038bb47b70e419eadab713296b5a8db", - "ETag": "W/\"603fe8a462c51fe0d2b3f9eceaa1aa9b\"", - "x-runtime": "0.172183", + "Location": "/api/v2/parcels.prcl_a70941ba0e064aeba2777bca8babee0e", + "ETag": "W/\"89c62ef87997ed3c1b16d7435623aea5\"", + "x-runtime": "0.027165", "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/parcel/retrieve.json b/EasyPost.Tests/cassettes/net/parcel/retrieve.json index 57a85d33c..07cb8b502 100644 --- a/EasyPost.Tests/cassettes/net/parcel/retrieve.json +++ b/EasyPost.Tests/cassettes/net/parcel/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 231, - "RecordedAt": "2022-08-24T13:53:31.965385-06:00", + "Duration": 385, + "RecordedAt": "2022-09-07T14:53:56.040904-06:00", "Request": { "Body": "{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/parcels" }, "Response": { - "Body": "{\"id\":\"prcl_a1c8f7577a8f416e941e7ec754dc6c51\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", + "Body": "{\"id\":\"prcl_f358eb724d50406d8fef54dfc7fc8e7c\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bcf7ba089900794a73", + "x-ep-request-uuid": "3bde9a2a631904e4e799f6ca002e0bc8", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/parcels.prcl_a1c8f7577a8f416e941e7ec754dc6c51", - "ETag": "W/\"61ca8e5a9b765423cb63f29a94ea96c4\"", - "x-runtime": "0.027025", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/parcels.prcl_f358eb724d50406d8fef54dfc7fc8e7c", + "ETag": "W/\"e355b05c09abf993ed6ee0b541cdcb8a\"", + "x-runtime": "0.028659", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 58, - "RecordedAt": "2022-08-24T13:53:32.037749-06:00", + "Duration": 78, + "RecordedAt": "2022-09-07T14:53:56.141414-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/parcels/prcl_a1c8f7577a8f416e941e7ec754dc6c51" + "Uri": "https://api.easypost.com/v2/parcels/prcl_f358eb724d50406d8fef54dfc7fc8e7c" }, "Response": { - "Body": "{\"id\":\"prcl_a1c8f7577a8f416e941e7ec754dc6c51\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", + "Body": "{\"id\":\"prcl_f358eb724d50406d8fef54dfc7fc8e7c\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,13 +84,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bcf7ba089900794a81", + "x-ep-request-uuid": "3bde9a2a631904e4e799f6ca002e0bdb", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"61ca8e5a9b765423cb63f29a94ea96c4\"", - "x-runtime": "0.017859", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"e355b05c09abf993ed6ee0b541cdcb8a\"", + "x-runtime": "0.019300", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/pickup/buy.json b/EasyPost.Tests/cassettes/net/pickup/buy.json index 94ef8ac17..e93a9d766 100644 --- a/EasyPost.Tests/cassettes/net/pickup/buy.json +++ b/EasyPost.Tests/cassettes/net/pickup/buy.json @@ -1,7 +1,7 @@ [ { - "Duration": 257, - "RecordedAt": "2022-08-24T13:53:32.489994-06:00", + "Duration": 506, + "RecordedAt": "2022-09-07T14:58:55.23494-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:31Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780425\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6e36da8023e611eda0f0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_4fad8ae18e584bb094ddd214b21212ca\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_c9eb2d805f5e4926983279d3df0ec18b\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/e1db318133764106ada9693a70e996fd.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_8acaab9132cf48fc832c2251039f74a6\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_500bb5a7d1b449398c8506004659fdde\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_48ac0776952940e5ad933253f01e845d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d9f23a6593ef4c3aa4823723bb769734\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d9f23a6593ef4c3aa4823723bb769734\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_317399d6e82b40948b566ebb13fc7713\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780425\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzMxNzM5OWQ2ZTgyYjQwOTQ4YjU2NmViYjEzZmM3NzEz\"},\"to_address\":{\"id\":\"adr_6e35232623e611eda0efac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6e36da8023e611eda0f0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6e35232623e611eda0efac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:58:54Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478412\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_e1f058f42eef11ed98f6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:54-06:00\",\"updated_at\":\"2022-09-07T14:58:54-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_1f2c95e7ee9543d6aca02df438d900e5\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6820506b635946209c8f53560051a654\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:58:54Z\",\"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/20220907/024cd620cbc844979c3bc832431af19b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_28bc0a34146b46b4ae80c0b79a9ef3f7\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_468a03e8fa9d47a0a3be9e8169647056\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5fddde1c2746415b96ada68cc7ec1273\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5e1ffdf4571d4c7c97bfb159dd2e4a6e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_468a03e8fa9d47a0a3be9e8169647056\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_c5ce3d43b8b04a9b967818986d8ec4aa\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478412\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:58:55Z\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2M1Y2UzZDQzYjhiMDRhOWI5Njc4MTg5ODZkOGVjNGFh\"},\"to_address\":{\"id\":\"adr_e1ec21ee2eef11ed98f5ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:54-06:00\",\"updated_at\":\"2022-09-07T14:58:54-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_e1f058f42eef11ed98f6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:54-06:00\",\"updated_at\":\"2022-09-07T14:58:54-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e1ec21ee2eef11ed98f5ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:54-06:00\",\"updated_at\":\"2022-09-07T14:58:54-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681bbf7dea3d300794a2c", + "x-ep-request-uuid": "3bde9a2a6319060ee79a605e002e5e74", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_f956d92ddb7b41f6bc2b1ec876c648d4", - "ETag": "W/\"7cec47ce6ef0a64fd4cc9a3f6e3875be\"", - "x-runtime": "0.965717", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_d3d6e88693704f28a4f5deb48b8219cf", + "ETag": "W/\"d95308e6fc6a8f80e830bac44942dbe5\"", + "x-runtime": "1.152278", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,14 +53,14 @@ } }, { - "Duration": 777, - "RecordedAt": "2022-08-24T13:53:33.369696-06:00", + "Duration": 894, + "RecordedAt": "2022-09-07T14:58:56.430194-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-08-25\",\"max_datetime\":\"2022-08-25\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"adr_6e35232623e611eda0efac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"adr_6e36da8023e611eda0f0ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"prcl_4fad8ae18e584bb094ddd214b21212ca\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:32Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/e1db318133764106ada9693a70e996fd.png\",\"created_at\":\"2022-08-24T19:53:32Z\",\"id\":\"pl_c9eb2d805f5e4926983279d3df0ec18b\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"rate_8acaab9132cf48fc832c2251039f74a6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"rate_500bb5a7d1b449398c8506004659fdde\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"rate_48ac0776952940e5ad933253f01e845d\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"rate_d9f23a6593ef4c3aa4823723bb769734\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"adr_6e36da8023e611eda0f0ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"created_at\":\"2022-08-24T19:53:32Z\",\"id\":\"rate_d9f23a6593ef4c3aa4823723bb769734\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"adr_6e35232623e611eda0efac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzMxNzM5OWQ2ZTgyYjQwOTQ4YjU2NmViYjEzZmM3NzEz\",\"shipment_id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780425\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:32Z\",\"id\":\"trk_317399d6e82b40948b566ebb13fc7713\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780425\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"shp_f956d92ddb7b41f6bc2b1ec876c648d4\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"adr_e1ec21ee2eef11ed98f5ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"adr_e1f058f42eef11ed98f6ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"prcl_1f2c95e7ee9543d6aca02df438d900e5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:58:54Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/024cd620cbc844979c3bc832431af19b.png\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"pl_6820506b635946209c8f53560051a654\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"rate_28bc0a34146b46b4ae80c0b79a9ef3f7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"rate_468a03e8fa9d47a0a3be9e8169647056\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"rate_5fddde1c2746415b96ada68cc7ec1273\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"rate_5e1ffdf4571d4c7c97bfb159dd2e4a6e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"adr_e1f058f42eef11ed98f6ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"rate_468a03e8fa9d47a0a3be9e8169647056\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"adr_e1ec21ee2eef11ed98f5ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2M1Y2UzZDQzYjhiMDRhOWI5Njc4MTg5ODZkOGVjNGFh\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478412\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:58:55Z\",\"id\":\"trk_c5ce3d43b8b04a9b967818986d8ec4aa\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478412\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6314" + "Content-Length": "6290" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_f1fc1c4c1cc64c6ebbba16be55bee7db\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_6edd64a523e611ed88aeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_f1fc1c4c1cc64c6ebbba16be55bee7db\",\"id\":\"pickuprate_51a7f015cb054031bd5d2e918a396911\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_fc662eaf2a124f19bd8f8c289dee934c\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:58:55Z\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e2e2e1252eef11ed87abac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:55-06:00\",\"updated_at\":\"2022-09-07T14:58:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:58:56Z\",\"updated_at\":\"2022-09-07T20:58:56Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_fc662eaf2a124f19bd8f8c289dee934c\",\"id\":\"pickuprate_5488440778e948eabad2941b2b98b4c7\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681bcf7dea3d300794af3", + "x-ep-request-uuid": "3bde9a2a6319060fe79a605e002e5ec1", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"826286ef18113ecc702385f9fb7eccdc\"", - "x-runtime": "0.734343", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"d88d2ddcb380ccc69aa6d939e6eaad70\"", + "x-runtime": "0.832108", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -105,8 +105,8 @@ } }, { - "Duration": 148, - "RecordedAt": "2022-08-24T13:53:34.552937-06:00", + "Duration": 975, + "RecordedAt": "2022-09-07T14:58:57.449922-06:00", "Request": { "Body": "{\"carrier\":\"USPS\",\"service\":\"NextDay\"}", "BodyContentType": "Json", @@ -121,15 +121,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_f1fc1c4c1cc64c6ebbba16be55bee7db/buy" + "Uri": "https://api.easypost.com/v2/pickups/pickup_fc662eaf2a124f19bd8f8c289dee934c/buy" }, "Response": { - "Body": "{\"id\":\"pickup_f1fc1c4c1cc64c6ebbba16be55bee7db\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"status\":\"scheduled\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC62071720\",\"address\":{\"id\":\"adr_6edd64a523e611ed88aeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_f1fc1c4c1cc64c6ebbba16be55bee7db\",\"id\":\"pickuprate_51a7f015cb054031bd5d2e918a396911\",\"object\":\"PickupRate\"}]}", + "Body": "{\"error\":{\"code\":\"PICKUP.BUY.FAILED\",\"message\":\"Service availability unknown.ServerCode=500 serverMessage = Internal server error\",\"errors\":[]}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1160" + "Content-Length": "146" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -139,21 +139,20 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681bdf7dea3d300794b7b", + "x-ep-request-uuid": "3bde9a2a63190610e79a605e002e5eea", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6c048134c592172398d14b324ba4f05d\"", - "x-runtime": "1.107422", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-runtime": "0.913555", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { - "Code": 200, - "Message": "OK" + "Code": 400, + "Message": "Bad Request" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/pickup/cancel.json b/EasyPost.Tests/cassettes/net/pickup/cancel.json index 6d52b297d..b402f46a4 100644 --- a/EasyPost.Tests/cassettes/net/pickup/cancel.json +++ b/EasyPost.Tests/cassettes/net/pickup/cancel.json @@ -1,7 +1,7 @@ [ { - "Duration": 121, - "RecordedAt": "2022-08-24T13:53:42.317646-06:00", + "Duration": 216, + "RecordedAt": "2022-09-07T14:59:05.665418-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:41Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780609\",\"updated_at\":\"2022-08-24T19:53:42Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_7414256e23e611ed8842ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:41-06:00\",\"updated_at\":\"2022-08-24T13:53:41-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_75c1ad222feb4f60b3cf0bc6244eb60e\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:41Z\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_7af4133a90b94292b09a14ea6287ba68\",\"created_at\":\"2022-08-24T19:53:42Z\",\"updated_at\":\"2022-08-24T19:53:42Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:42Z\",\"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/20220824/3a11b946f1f84746996f381b7c6cc2fa.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_90dbebcb94a941e3b51e78455df780c8\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:41Z\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7b3cf815d2734e148538185dbd3055db\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:41Z\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_93b06d93bc6b46f2ab39c7583fcf151d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:41Z\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2ad125f0fe484f9c9c97c253e56f2483\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:41Z\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_93b06d93bc6b46f2ab39c7583fcf151d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:42Z\",\"updated_at\":\"2022-08-24T19:53:42Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_df05354e25484e8d82ca6f89da4aac03\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780609\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:42Z\",\"updated_at\":\"2022-08-24T19:53:42Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2RmMDUzNTRlMjU0ODRlOGQ4MmNhNmY4OWRhNGFhYzAz\"},\"to_address\":{\"id\":\"adr_7412581323e611ed8841ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:41-06:00\",\"updated_at\":\"2022-08-24T13:53:41-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_7414256e23e611ed8842ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:41-06:00\",\"updated_at\":\"2022-08-24T13:53:41-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_7412581323e611ed8841ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:41-06:00\",\"updated_at\":\"2022-08-24T13:53:41-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:59:04Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478450\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_e854cb002eef11ed919aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:04-06:00\",\"updated_at\":\"2022-09-07T14:59:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_160538d64ff4454280400c75382e9ba7\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_debb6b0456434814b204f566455fdded\",\"created_at\":\"2022-09-07T20:59:05Z\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:05Z\",\"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/20220907/0996703cabd44383a5bb5aa65b0948b8.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_24b7384f7ed44338836f25d344e1c724\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fc9a678f932c497bb8bbec6be326cbac\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4461bbcec3044a74831501816ccf4a68\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_849b7058e4de485aa235b294536ed45b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_849b7058e4de485aa235b294536ed45b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:05Z\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_6299a7c1c3da4a6c8640905cdeb11958\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478450\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:59:05Z\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzYyOTlhN2MxYzNkYTRhNmM4NjQwOTA1Y2RlYjExOTU4\"},\"to_address\":{\"id\":\"adr_e85233fa2eef11ed894eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:04-06:00\",\"updated_at\":\"2022-09-07T14:59:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_e854cb002eef11ed919aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:04-06:00\",\"updated_at\":\"2022-09-07T14:59:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e85233fa2eef11ed894eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:04-06:00\",\"updated_at\":\"2022-09-07T14:59:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681c5f7de39fd00794f80", + "x-ep-request-uuid": "3bde9a2763190618e79a6079002e60b8", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_f7dce0c70eee4297832337e327c4e9c4", - "ETag": "W/\"3eb3f9eb5d69057f9ce4b082b5ab06ed\"", - "x-runtime": "0.944678", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_98e15d18af11426a946f2317d9c92b4d", + "ETag": "W/\"c9c8abb31618c1ac8f46fdba95c0f6b4\"", + "x-runtime": "0.947380", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,14 +53,14 @@ } }, { - "Duration": 634, - "RecordedAt": "2022-08-24T13:53:42.990095-06:00", + "Duration": 799, + "RecordedAt": "2022-09-07T14:59:06.507601-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-08-25\",\"max_datetime\":\"2022-08-25\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:41Z\",\"id\":\"adr_7412581323e611ed8841ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:41Z\",\"id\":\"adr_7414256e23e611ed8842ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:41Z\",\"id\":\"prcl_75c1ad222feb4f60b3cf0bc6244eb60e\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:42Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/3a11b946f1f84746996f381b7c6cc2fa.png\",\"created_at\":\"2022-08-24T19:53:42Z\",\"id\":\"pl_7af4133a90b94292b09a14ea6287ba68\",\"updated_at\":\"2022-08-24T19:53:42Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"created_at\":\"2022-08-24T19:53:41Z\",\"id\":\"rate_90dbebcb94a941e3b51e78455df780c8\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"created_at\":\"2022-08-24T19:53:41Z\",\"id\":\"rate_7b3cf815d2734e148538185dbd3055db\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"created_at\":\"2022-08-24T19:53:41Z\",\"id\":\"rate_93b06d93bc6b46f2ab39c7583fcf151d\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"created_at\":\"2022-08-24T19:53:41Z\",\"id\":\"rate_2ad125f0fe484f9c9c97c253e56f2483\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:41Z\",\"id\":\"adr_7414256e23e611ed8842ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"created_at\":\"2022-08-24T19:53:42Z\",\"id\":\"rate_93b06d93bc6b46f2ab39c7583fcf151d\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:42Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:41Z\",\"id\":\"adr_7412581323e611ed8841ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2RmMDUzNTRlMjU0ODRlOGQ4MmNhNmY4OWRhNGFhYzAz\",\"shipment_id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780609\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:42Z\",\"id\":\"trk_df05354e25484e8d82ca6f89da4aac03\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:42Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780609\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:41Z\",\"id\":\"shp_f7dce0c70eee4297832337e327c4e9c4\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:42Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"adr_e85233fa2eef11ed894eac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"adr_e854cb002eef11ed919aac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"prcl_160538d64ff4454280400c75382e9ba7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:05Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/0996703cabd44383a5bb5aa65b0948b8.png\",\"created_at\":\"2022-09-07T20:59:05Z\",\"id\":\"pl_debb6b0456434814b204f566455fdded\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"rate_24b7384f7ed44338836f25d344e1c724\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"rate_fc9a678f932c497bb8bbec6be326cbac\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"rate_4461bbcec3044a74831501816ccf4a68\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"rate_849b7058e4de485aa235b294536ed45b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"adr_e854cb002eef11ed919aac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"created_at\":\"2022-09-07T20:59:05Z\",\"id\":\"rate_849b7058e4de485aa235b294536ed45b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"adr_e85233fa2eef11ed894eac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzYyOTlhN2MxYzNkYTRhNmM4NjQwOTA1Y2RlYjExOTU4\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478450\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:59:05Z\",\"id\":\"trk_6299a7c1c3da4a6c8640905cdeb11958\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478450\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6314" + "Content-Length": "6290" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_f3b4470c030e4dcda90d8d9183c54a37\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:42Z\",\"updated_at\":\"2022-08-24T19:53:42Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_74af693623e611ed8873ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:42-06:00\",\"updated_at\":\"2022-08-24T13:53:42-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:43Z\",\"updated_at\":\"2022-08-24T19:53:43Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_f3b4470c030e4dcda90d8d9183c54a37\",\"id\":\"pickuprate_d231408ffc7e4924b1dc7283cc476904\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_c67f059e5df8403ea671549460977200\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:59:05Z\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e8f3c25c2eef11ed91ceac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:05-06:00\",\"updated_at\":\"2022-09-07T14:59:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:59:06Z\",\"updated_at\":\"2022-09-07T20:59:06Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_c67f059e5df8403ea671549460977200\",\"id\":\"pickuprate_d55dfe8da1994864bce03055a97436d4\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,13 +87,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681c6f7de39fd00794ff7", + "x-ep-request-uuid": "3bde9a2763190619e79a6079002e60f8", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"cc050b37f6a7321277e3cd03cb0dbd56\"", - "x-runtime": "0.591733", + "ETag": "W/\"2f3538347b4c109c5ae432140d9697ba\"", + "x-runtime": "0.735430", "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -105,8 +105,8 @@ } }, { - "Duration": 980, - "RecordedAt": "2022-08-24T13:53:44.010482-06:00", + "Duration": 26, + "RecordedAt": "2022-09-07T14:59:07.549726-06:00", "Request": { "Body": "{\"carrier\":\"USPS\",\"service\":\"NextDay\"}", "BodyContentType": "Json", @@ -121,15 +121,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_f3b4470c030e4dcda90d8d9183c54a37/buy" + "Uri": "https://api.easypost.com/v2/pickups/pickup_c67f059e5df8403ea671549460977200/buy" }, "Response": { - "Body": "{\"id\":\"pickup_f3b4470c030e4dcda90d8d9183c54a37\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:42Z\",\"updated_at\":\"2022-08-24T19:53:44Z\",\"mode\":\"test\",\"status\":\"scheduled\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC62071722\",\"address\":{\"id\":\"adr_74af693623e611ed8873ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:42-06:00\",\"updated_at\":\"2022-08-24T13:53:42-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:43Z\",\"updated_at\":\"2022-08-24T19:53:43Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_f3b4470c030e4dcda90d8d9183c54a37\",\"id\":\"pickuprate_d231408ffc7e4924b1dc7283cc476904\",\"object\":\"PickupRate\"}]}", + "Body": "{\"error\":{\"code\":\"PICKUP.BUY.FAILED\",\"message\":\"Service availability unknown.ServerCode=500 serverMessage = Internal server error\",\"errors\":[]}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1160" + "Content-Length": "146" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -139,70 +139,20 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681c7f7de39fd00795030", + "x-ep-request-uuid": "3bde9a276319061ae79a6079002e6126", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"7d9a9e190c4b398f309b4bad2b94f859\"", - "x-runtime": "0.941331", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-runtime": "0.957560", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { - "Code": 200, - "Message": "OK" - } - } - }, - { - "Duration": 944, - "RecordedAt": "2022-08-24T13:53:44.978597-06:00", - "Request": { - "Body": "", - "BodyContentType": "Text", - "ContentHeaders": {}, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_f3b4470c030e4dcda90d8d9183c54a37/cancel" - }, - "Response": { - "Body": "{\"id\":\"pickup_f3b4470c030e4dcda90d8d9183c54a37\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:42Z\",\"updated_at\":\"2022-08-24T19:53:45Z\",\"mode\":\"test\",\"status\":\"canceled\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC62071722\",\"address\":{\"id\":\"adr_74af693623e611ed8873ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:42-06:00\",\"updated_at\":\"2022-08-24T13:53:42-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:43Z\",\"updated_at\":\"2022-08-24T19:53:43Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_f3b4470c030e4dcda90d8d9183c54a37\",\"id\":\"pickuprate_d231408ffc7e4924b1dc7283cc476904\",\"object\":\"PickupRate\"}]}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1159" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681c8f7de39fd007950a1", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"b3982eb658aa021273d68e6b02dd6da7\"", - "x-runtime": "0.906867", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 200, - "Message": "OK" + "Code": 400, + "Message": "Bad Request" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/pickup/create.json b/EasyPost.Tests/cassettes/net/pickup/create.json index 3ea6adade..9721b62ff 100644 --- a/EasyPost.Tests/cassettes/net/pickup/create.json +++ b/EasyPost.Tests/cassettes/net/pickup/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 213, - "RecordedAt": "2022-08-24T13:53:40.105276-06:00", + "Duration": 373, + "RecordedAt": "2022-09-07T14:59:03.720584-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:39Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780579\",\"updated_at\":\"2022-08-24T19:53:40Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_72b5235f23e611eda29fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:39-06:00\",\"updated_at\":\"2022-08-24T13:53:39-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a3936cbe83094e9daf2bd33c7b4f7320\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:39Z\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ba4edc40cb7b4026a8546d45d7cb285a\",\"created_at\":\"2022-08-24T19:53:39Z\",\"updated_at\":\"2022-08-24T19:53:40Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/7dc0c9e4227e4676a0ab21ca523fe150.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_3910b458df9348ceb73ca65803d9b594\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:39Z\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c4abea1942184fe3919185d7fcbe8c6d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:39Z\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7387a3b9664b47e7b28dedbee126f250\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:39Z\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eca8935b923942699091311d8290d251\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:39Z\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_eca8935b923942699091311d8290d251\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:39Z\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_a10d2c2f1070469696dfbc346b807938\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780579\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:40Z\",\"updated_at\":\"2022-08-24T19:53:40Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2ExMGQyYzJmMTA3MDQ2OTY5NmRmYmMzNDZiODA3OTM4\"},\"to_address\":{\"id\":\"adr_72b31e4123e611ed902bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:39-06:00\",\"updated_at\":\"2022-08-24T13:53:39-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_72b5235f23e611eda29fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:39-06:00\",\"updated_at\":\"2022-08-24T13:53:39-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_72b31e4123e611ed902bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:39-06:00\",\"updated_at\":\"2022-08-24T13:53:39-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:59:02Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478443\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_e71e481d2eef11ed88faac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:02-06:00\",\"updated_at\":\"2022-09-07T14:59:02-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_18c8b540c0ab4765a41485a037e74d42\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0ca762923c43462ea9c50da3c6e2de18\",\"created_at\":\"2022-09-07T20:59:03Z\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:03Z\",\"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/20220907/59dcb2eefb924a038bcd71c6e29afc8f.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e5935dccec574d7795bc81df10496614\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d6ece1a027344ecf987e90ce89eef796\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7b4cb28d0e8b4e12a529032e1e78ed6c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_10f66d3a986340a7a290a42e5dfdb056\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7b4cb28d0e8b4e12a529032e1e78ed6c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:03Z\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_8a8902e091054d0eb459d80453a92abd\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478443\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:59:03Z\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzhhODkwMmUwOTEwNTRkMGViNDU5ZDgwNDUzYTkyYWJk\"},\"to_address\":{\"id\":\"adr_e71bb7972eef11ed9154ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:02-06:00\",\"updated_at\":\"2022-09-07T14:59:03-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_e71e481d2eef11ed88faac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:02-06:00\",\"updated_at\":\"2022-09-07T14:59:02-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e71bb7972eef11ed9154ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:02-06:00\",\"updated_at\":\"2022-09-07T14:59:03-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9886746788484385802022c96f92813a\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681c3f7eceed600794e85", + "x-ep-request-uuid": "3bde9a2963190616e79a6078002e6049", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_0ae18234596f4d8bb4349d5ebfdd515a", - "ETag": "W/\"9be34ff92d084beea31b8a9dc3f07096\"", - "x-runtime": "1.028968", + "Location": "/api/v2/shipments/shp_9886746788484385802022c96f92813a", + "ETag": "W/\"03db825765be60316eb799e3752a3bd0\"", + "x-runtime": "1.039023", "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 32, - "RecordedAt": "2022-08-24T13:53:41.169544-06:00", + "Duration": 684, + "RecordedAt": "2022-09-07T14:59:04.427159-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-08-25\",\"max_datetime\":\"2022-08-25\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"adr_72b31e4123e611ed902bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"adr_72b5235f23e611eda29fac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"prcl_a3936cbe83094e9daf2bd33c7b4f7320\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:39Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/7dc0c9e4227e4676a0ab21ca523fe150.png\",\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"pl_ba4edc40cb7b4026a8546d45d7cb285a\",\"updated_at\":\"2022-08-24T19:53:40Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"rate_3910b458df9348ceb73ca65803d9b594\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"rate_c4abea1942184fe3919185d7fcbe8c6d\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"rate_7387a3b9664b47e7b28dedbee126f250\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"rate_eca8935b923942699091311d8290d251\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"adr_72b5235f23e611eda29fac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"rate_eca8935b923942699091311d8290d251\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"adr_72b31e4123e611ed902bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:39Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2ExMGQyYzJmMTA3MDQ2OTY5NmRmYmMzNDZiODA3OTM4\",\"shipment_id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780579\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:40Z\",\"id\":\"trk_a10d2c2f1070469696dfbc346b807938\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:40Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780579\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:39Z\",\"id\":\"shp_0ae18234596f4d8bb4349d5ebfdd515a\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:40Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"adr_e71bb7972eef11ed9154ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"adr_e71e481d2eef11ed88faac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"prcl_18c8b540c0ab4765a41485a037e74d42\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:03Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/59dcb2eefb924a038bcd71c6e29afc8f.png\",\"created_at\":\"2022-09-07T20:59:03Z\",\"id\":\"pl_0ca762923c43462ea9c50da3c6e2de18\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"rate_e5935dccec574d7795bc81df10496614\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"rate_d6ece1a027344ecf987e90ce89eef796\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"rate_7b4cb28d0e8b4e12a529032e1e78ed6c\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"rate_10f66d3a986340a7a290a42e5dfdb056\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"adr_e71e481d2eef11ed88faac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"created_at\":\"2022-09-07T20:59:03Z\",\"id\":\"rate_7b4cb28d0e8b4e12a529032e1e78ed6c\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"adr_e71bb7972eef11ed9154ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzhhODkwMmUwOTEwNTRkMGViNDU5ZDgwNDUzYTkyYWJk\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478443\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:59:03Z\",\"id\":\"trk_8a8902e091054d0eb459d80453a92abd\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478443\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"shp_9886746788484385802022c96f92813a\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6314" + "Content-Length": "6290" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_99a6590371d9481ebd771babafd2f5a9\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:40Z\",\"updated_at\":\"2022-08-24T19:53:40Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_7367018523e611ed8a69ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:40-06:00\",\"updated_at\":\"2022-08-24T13:53:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:41Z\",\"updated_at\":\"2022-08-24T19:53:41Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_99a6590371d9481ebd771babafd2f5a9\",\"id\":\"pickuprate_efc9e2239f9c4ea5b241fa789e7d77a2\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_42aabdc4e4724939b878b4689e64d6f0\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:59:03Z\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e7c903012eef11ed9abbac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:03-06:00\",\"updated_at\":\"2022-09-07T14:59:03-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_42aabdc4e4724939b878b4689e64d6f0\",\"id\":\"pickuprate_14eefa8fe5aa4708be1200b9c44f57f8\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681c4f7eceed600794eff", + "x-ep-request-uuid": "3bde9a2963190617e79a6078002e608b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"01cca2208cf6261cbcbb98fd2870adba\"", - "x-runtime": "0.988075", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"7fa7e5f12ac2a5b49c2aa4e88cf6d350\"", + "x-runtime": "0.612946", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -103,5 +103,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/pickup/lowest_rate.json b/EasyPost.Tests/cassettes/net/pickup/lowest_rate.json index 944e927b9..3af87ed79 100644 --- a/EasyPost.Tests/cassettes/net/pickup/lowest_rate.json +++ b/EasyPost.Tests/cassettes/net/pickup/lowest_rate.json @@ -1,7 +1,7 @@ [ { - "Duration": 249, - "RecordedAt": "2022-08-24T13:53:37.889131-06:00", + "Duration": 364, + "RecordedAt": "2022-09-07T14:59:01.355844-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:37Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780555\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_715eb12b23e611eda224ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_96bc1815eb034373b57cd4ce59eba9ad\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0fcfc392c5fb4c40b8218f928493f58c\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:37Z\",\"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/20220824/28727af856fa4b02bf13b8dfc03d3a59.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_120366bc36bb426c8e4192a7f6963d8a\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_497b7624f89141bab17f8d83b0692cae\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8cec35da711349c694f680507723cc5f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2231ac048a01407b882662f2785d1b7c\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_8cec35da711349c694f680507723cc5f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_013d59736df34d0bbaf44597edc06b3a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780555\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:37Z\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzAxM2Q1OTczNmRmMzRkMGJiYWY0NDU5N2VkYzA2YjNh\"},\"to_address\":{\"id\":\"adr_715c1ea123e611ed89bdac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:37-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_715eb12b23e611eda224ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_715c1ea123e611ed89bdac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:36-06:00\",\"updated_at\":\"2022-08-24T13:53:37-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:59:00Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478436\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_e5bd90222eef11ed888dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:00-06:00\",\"updated_at\":\"2022-09-07T14:59:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b4826a782d144ede81bbd8f7eb54a4bc\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:59:00Z\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_92b118a6824645b3a5167d3dd073b571\",\"created_at\":\"2022-09-07T20:59:01Z\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:01Z\",\"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/20220907/b592843abf284f3abf017518e632ee48.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_a33e56ef920d43e48dd639287b861ba6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:00Z\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e0b7e8d7c0274a848ad72ee636b29336\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:00Z\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9b52f3592b714e5a91f6dc905b8a8736\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:00Z\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5ee60c8751904eb39dd633cf02b33690\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:00Z\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_e0b7e8d7c0274a848ad72ee636b29336\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:01Z\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_19d6a0e389344a6a85ea63340c3c01b2\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478436\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:59:01Z\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzE5ZDZhMGUzODkzNDRhNmE4NWVhNjMzNDBjM2MwMWIy\"},\"to_address\":{\"id\":\"adr_e5bace512eef11ed888bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:00-06:00\",\"updated_at\":\"2022-09-07T14:59:00-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_e5bd90222eef11ed888dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:00-06:00\",\"updated_at\":\"2022-09-07T14:59:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e5bace512eef11ed888bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:00-06:00\",\"updated_at\":\"2022-09-07T14:59:00-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681c0e688e63b00794d52", + "x-ep-request-uuid": "3bde9a2c63190614e79a6060002e5fbd", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_da5962a5001f40a1be2ad1881552cb65", - "ETag": "W/\"080dc2dd0849bea263eaa29e019eeac3\"", - "x-runtime": "1.068120", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_ce5d1883f315451b9e9ea01b92dbc9d5", + "ETag": "W/\"db522e809b4097ac075d97024c9e34f1\"", + "x-runtime": "1.077168", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,14 +53,14 @@ } }, { - "Duration": 948, - "RecordedAt": "2022-08-24T13:53:38.870305-06:00", + "Duration": 932, + "RecordedAt": "2022-09-07T14:59:02.324695-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-08-25\",\"max_datetime\":\"2022-08-25\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:36Z\",\"id\":\"adr_715c1ea123e611ed89bdac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:36Z\",\"id\":\"adr_715eb12b23e611eda224ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:37Z\",\"id\":\"prcl_96bc1815eb034373b57cd4ce59eba9ad\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:37Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/28727af856fa4b02bf13b8dfc03d3a59.png\",\"created_at\":\"2022-08-24T19:53:37Z\",\"id\":\"pl_0fcfc392c5fb4c40b8218f928493f58c\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"created_at\":\"2022-08-24T19:53:37Z\",\"id\":\"rate_120366bc36bb426c8e4192a7f6963d8a\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"created_at\":\"2022-08-24T19:53:37Z\",\"id\":\"rate_497b7624f89141bab17f8d83b0692cae\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"created_at\":\"2022-08-24T19:53:37Z\",\"id\":\"rate_8cec35da711349c694f680507723cc5f\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"created_at\":\"2022-08-24T19:53:37Z\",\"id\":\"rate_2231ac048a01407b882662f2785d1b7c\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:36Z\",\"id\":\"adr_715eb12b23e611eda224ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"created_at\":\"2022-08-24T19:53:37Z\",\"id\":\"rate_8cec35da711349c694f680507723cc5f\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:36Z\",\"id\":\"adr_715c1ea123e611ed89bdac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzAxM2Q1OTczNmRmMzRkMGJiYWY0NDU5N2VkYzA2YjNh\",\"shipment_id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780555\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:37Z\",\"id\":\"trk_013d59736df34d0bbaf44597edc06b3a\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780555\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:37Z\",\"id\":\"shp_da5962a5001f40a1be2ad1881552cb65\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:37Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"adr_e5bace512eef11ed888bac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"adr_e5bd90222eef11ed888dac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"prcl_b4826a782d144ede81bbd8f7eb54a4bc\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:01Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/b592843abf284f3abf017518e632ee48.png\",\"created_at\":\"2022-09-07T20:59:01Z\",\"id\":\"pl_92b118a6824645b3a5167d3dd073b571\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"rate_a33e56ef920d43e48dd639287b861ba6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"rate_e0b7e8d7c0274a848ad72ee636b29336\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"rate_9b52f3592b714e5a91f6dc905b8a8736\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"rate_5ee60c8751904eb39dd633cf02b33690\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"adr_e5bd90222eef11ed888dac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"created_at\":\"2022-09-07T20:59:01Z\",\"id\":\"rate_e0b7e8d7c0274a848ad72ee636b29336\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"adr_e5bace512eef11ed888bac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzE5ZDZhMGUzODkzNDRhNmE4NWVhNjMzNDBjM2MwMWIy\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478436\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:59:01Z\",\"id\":\"trk_19d6a0e389344a6a85ea63340c3c01b2\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478436\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6314" + "Content-Length": "6290" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_7fe1d1fe942349f8a002c546b522df24\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:38Z\",\"updated_at\":\"2022-08-24T19:53:38Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_72163ccd23e611ed89f6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:38-06:00\",\"updated_at\":\"2022-08-24T13:53:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:38Z\",\"updated_at\":\"2022-08-24T19:53:38Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_7fe1d1fe942349f8a002c546b522df24\",\"id\":\"pickuprate_fc94b190c1754a95aaacb7e35326d9fc\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_a5909f2218fa41ca889a1c077328bed2\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:59:01Z\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e65fbf8b2eef11ed9a5bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:01-06:00\",\"updated_at\":\"2022-09-07T14:59:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_a5909f2218fa41ca889a1c077328bed2\",\"id\":\"pickuprate_5c9108a469da47a2ac196f90401810b7\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,13 +87,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681c2e688e63b00794df2", + "x-ep-request-uuid": "3bde9a2c63190615e79a6060002e6001", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"da9342685d30c2a0ca3f772de18ec7b7\"", - "x-runtime": "0.904105", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"a622b725803f5a18db70dc39c3c9beda\"", + "x-runtime": "0.861609", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -103,5 +103,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/pickup/retrieve.json b/EasyPost.Tests/cassettes/net/pickup/retrieve.json index cdaeeb758..274a4e8f5 100644 --- a/EasyPost.Tests/cassettes/net/pickup/retrieve.json +++ b/EasyPost.Tests/cassettes/net/pickup/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 146, - "RecordedAt": "2022-08-24T13:53:35.724447-06:00", + "Duration": 259, + "RecordedAt": "2022-09-07T14:58:58.766256-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:34Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780548\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_702525e323e611ed8f3bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_cb390819bc6f4f41a3d1abaf94622cab\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_3b64ab9c56354e608e641a4a54e45117\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/dd29c1d4a62e4ad7ad3bb4644d042e93.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_5c10333161544b9caa9590791ede95fe\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c124c15d5310429982a53974ccd794a9\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1362ef9718224c63b5798f4957092c42\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fceec2a11fea4666b2d179e68bfd8256\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_c124c15d5310429982a53974ccd794a9\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_5c2cae6e4aa947d7929df4ed63048b58\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780548\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzVjMmNhZTZlNGFhOTQ3ZDc5MjlkZjRlZDYzMDQ4YjU4\"},\"to_address\":{\"id\":\"adr_70230e7123e611ed8f3aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_702525e323e611ed8f3bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_70230e7123e611ed8f3aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:34-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:58:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478429\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_e42f8fd12eef11ed907fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:57-06:00\",\"updated_at\":\"2022-09-07T14:58:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5f853f5c71174987ba6fa71c6198df49\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:58:57Z\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_2727be0f6925460989440e4ffc79df90\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:58:58Z\",\"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/20220907/ff7432015fcf458d870aa7a7d6187ed6.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_a51e359309b74bf7a2651bb470bf855e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:57Z\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_85d68de9f48040ed8674fa55ae1e905b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_829cd926bdb34277bd7f29f1ff913ad6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_707665e08c784a2782ccdf9894c4dbf9\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_85d68de9f48040ed8674fa55ae1e905b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_6a3df891ccc646c99368cd8e36a98497\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478429\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzZhM2RmODkxY2NjNjQ2Yzk5MzY4Y2Q4ZTM2YTk4NDk3\"},\"to_address\":{\"id\":\"adr_e42cd6f82eef11ed999cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:57-06:00\",\"updated_at\":\"2022-09-07T14:58:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_e42f8fd12eef11ed907fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:57-06:00\",\"updated_at\":\"2022-09-07T14:58:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e42cd6f82eef11ed999cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:57-06:00\",\"updated_at\":\"2022-09-07T14:58:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bef7a499ad00794c48", + "x-ep-request-uuid": "3bde9a2963190611e79a605f002e5f2a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_869bbdcb47064684be1c7be4d7ffa815", - "ETag": "W/\"4e5b79c3d0088f70ad7d7bf2f648c95c\"", - "x-runtime": "0.955810", + "Location": "/api/v2/shipments/shp_ad38780b93ba4d12bd07e9614add4d1e", + "ETag": "W/\"25b40f2585b1c552d29f8844b9ba3b5f\"", + "x-runtime": "1.004197", "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 733, - "RecordedAt": "2022-08-24T13:53:36.491381-06:00", + "Duration": 3, + "RecordedAt": "2022-09-07T14:58:59.802453-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-08-25\",\"max_datetime\":\"2022-08-25\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:34Z\",\"id\":\"adr_70230e7123e611ed8f3aac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:34Z\",\"id\":\"adr_702525e323e611ed8f3bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:34Z\",\"id\":\"prcl_cb390819bc6f4f41a3d1abaf94622cab\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:35Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/dd29c1d4a62e4ad7ad3bb4644d042e93.png\",\"created_at\":\"2022-08-24T19:53:35Z\",\"id\":\"pl_3b64ab9c56354e608e641a4a54e45117\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"created_at\":\"2022-08-24T19:53:35Z\",\"id\":\"rate_5c10333161544b9caa9590791ede95fe\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"created_at\":\"2022-08-24T19:53:35Z\",\"id\":\"rate_c124c15d5310429982a53974ccd794a9\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"created_at\":\"2022-08-24T19:53:35Z\",\"id\":\"rate_1362ef9718224c63b5798f4957092c42\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"created_at\":\"2022-08-24T19:53:35Z\",\"id\":\"rate_fceec2a11fea4666b2d179e68bfd8256\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:34Z\",\"id\":\"adr_702525e323e611ed8f3bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"created_at\":\"2022-08-24T19:53:35Z\",\"id\":\"rate_c124c15d5310429982a53974ccd794a9\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:34Z\",\"id\":\"adr_70230e7123e611ed8f3aac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzVjMmNhZTZlNGFhOTQ3ZDc5MjlkZjRlZDYzMDQ4YjU4\",\"shipment_id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780548\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:35Z\",\"id\":\"trk_5c2cae6e4aa947d7929df4ed63048b58\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780548\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:34Z\",\"id\":\"shp_869bbdcb47064684be1c7be4d7ffa815\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"adr_e42cd6f82eef11ed999cac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"adr_e42f8fd12eef11ed907fac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"prcl_5f853f5c71174987ba6fa71c6198df49\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:58:58Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/ff7432015fcf458d870aa7a7d6187ed6.png\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"pl_2727be0f6925460989440e4ffc79df90\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"rate_a51e359309b74bf7a2651bb470bf855e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"rate_85d68de9f48040ed8674fa55ae1e905b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"rate_829cd926bdb34277bd7f29f1ff913ad6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"rate_707665e08c784a2782ccdf9894c4dbf9\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"adr_e42f8fd12eef11ed907fac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"rate_85d68de9f48040ed8674fa55ae1e905b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"adr_e42cd6f82eef11ed999cac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzZhM2RmODkxY2NjNjQ2Yzk5MzY4Y2Q4ZTM2YTk4NDk3\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478429\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"trk_6a3df891ccc646c99368cd8e36a98497\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478429\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6314" + "Content-Length": "6290" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_ba9c394133b54454ae57632e9e3301db\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_70c0d8c623e611eda1e6ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_ba9c394133b54454ae57632e9e3301db\",\"id\":\"pickuprate_ddc7595d0a804fc4b19559b2fa5ec4e0\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_ce1eb36fb69f4017bd70ca1f881dddb7\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:58:59Z\",\"updated_at\":\"2022-09-07T20:58:59Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e4d55ebe2eef11ed99e3ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:58-06:00\",\"updated_at\":\"2022-09-07T14:58:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:58:59Z\",\"updated_at\":\"2022-09-07T20:58:59Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_ce1eb36fb69f4017bd70ca1f881dddb7\",\"id\":\"pickuprate_c36250f8076646cf920bb4909c5330cc\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bff7a499ad00794ccd", + "x-ep-request-uuid": "3bde9a2963190612e79a605f002e5f65", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"fac4e7c8c57c1cb9061863563d149c8a\"", - "x-runtime": "0.691315", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"238c4e66c624955cb503dd64e48c5f54\"", + "x-runtime": "0.936003", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -105,8 +105,8 @@ } }, { - "Duration": 96, - "RecordedAt": "2022-08-24T13:53:36.616749-06:00", + "Duration": 148, + "RecordedAt": "2022-09-07T14:58:59.967775-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -118,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_ba9c394133b54454ae57632e9e3301db" + "Uri": "https://api.easypost.com/v2/pickups/pickup_ce1eb36fb69f4017bd70ca1f881dddb7" }, "Response": { - "Body": "{\"id\":\"pickup_ba9c394133b54454ae57632e9e3301db\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_70c0d8c623e611eda1e6ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:35-06:00\",\"updated_at\":\"2022-08-24T13:53:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:36Z\",\"updated_at\":\"2022-08-24T19:53:36Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_ba9c394133b54454ae57632e9e3301db\",\"id\":\"pickuprate_ddc7595d0a804fc4b19559b2fa5ec4e0\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_ce1eb36fb69f4017bd70ca1f881dddb7\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:58:59Z\",\"updated_at\":\"2022-09-07T20:58:59Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e4d55ebe2eef11ed99e3ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:58-06:00\",\"updated_at\":\"2022-09-07T14:58:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:58:59Z\",\"updated_at\":\"2022-09-07T20:58:59Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_ce1eb36fb69f4017bd70ca1f881dddb7\",\"id\":\"pickuprate_c36250f8076646cf920bb4909c5330cc\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -136,13 +136,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681c0f7a499ad00794d2f", + "x-ep-request-uuid": "3bde9a2963190613e79a605f002e5fa2", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"fac4e7c8c57c1cb9061863563d149c8a\"", - "x-runtime": "0.056952", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"238c4e66c624955cb503dd64e48c5f54\"", + "x-runtime": "0.072788", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -152,5 +152,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/rate/retrieve.json b/EasyPost.Tests/cassettes/net/rate/retrieve.json index 68a627718..d77019e56 100644 --- a/EasyPost.Tests/cassettes/net/rate/retrieve.json +++ b/EasyPost.Tests/cassettes/net/rate/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 791, - "RecordedAt": "2022-08-24T13:53:32.023174-06:00", + "Duration": 849, + "RecordedAt": "2022-09-07T14:53:55.89558-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:31Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:32Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6e37cb5b23e611eda0f1ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_22628287e819426881ad090fcc9941bb\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_9c896980ec76413bafe7d0e49474cd45\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a41768fe19f446828742ef0dee39c795\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_24242e218f5945a48eb4de5731f59ca6\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a41768fe19f446828742ef0dee39c795\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e0601a7cc5644c42b1954fc8e94b6db5\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a41768fe19f446828742ef0dee39c795\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_438d5b2ea33d49919f707cdfc19663ca\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a41768fe19f446828742ef0dee39c795\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_6e357eef23e611ed86f1ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6e37cb5b23e611eda0f1ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6e357eef23e611ed86f1ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_a41768fe19f446828742ef0dee39c795\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:55Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:53:55Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_2ff9a3cc2eef11ed9fddac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_63fcaa1322594e4fb2e034c551303401\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_2d38425617924659befa64d5c9cd0688\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_8a8d94917abb4fe3a473d9a3c0129ebe\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8acd6f68c2484f65a7bca7ccb26172d6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8a8d94917abb4fe3a473d9a3c0129ebe\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4d34a23844ad46fe8a6d296d48199588\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_8a8d94917abb4fe3a473d9a3c0129ebe\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ac912478efbf4bdca0c73f4de9ffbed2\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8a8d94917abb4fe3a473d9a3c0129ebe\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_2ff75b972eef11ed9fdbac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_2ff9a3cc2eef11ed9fddac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_2ff75b972eef11ed9fdbac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_8a8d94917abb4fe3a473d9a3c0129ebe\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681bbf7ecea2a00794a2f", + "x-ep-request-uuid": "3bde9a28631904e3e799f689002e0b83", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_a41768fe19f446828742ef0dee39c795", - "ETag": "W/\"1e589b4014b36c5fb935576dc1c18b37\"", - "x-runtime": "0.496154", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_8a8d94917abb4fe3a473d9a3c0129ebe", + "ETag": "W/\"8f6025998bcb2a2daf95de0f7de819fd\"", + "x-runtime": "0.466064", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 160, - "RecordedAt": "2022-08-24T13:53:32.271223-06:00", + "Duration": 171, + "RecordedAt": "2022-09-07T14:53:56.141635-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,15 +66,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/rates/rate_9c896980ec76413bafe7d0e49474cd45" + "Uri": "https://api.easypost.com/v2/rates/rate_2d38425617924659befa64d5c9cd0688" }, "Response": { - "Body": "{\"id\":\"rate_9c896980ec76413bafe7d0e49474cd45\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a41768fe19f446828742ef0dee39c795\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}", + "Body": "{\"id\":\"rate_2d38425617924659befa64d5c9cd0688\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_8a8d94917abb4fe3a473d9a3c0129ebe\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "543" + "Content-Length": "535" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -84,13 +84,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681bcf7ecea2a00794a98", + "x-ep-request-uuid": "3bde9a28631904e4e799f689002e0bd2", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"2eb98f86e8c8c790df2ff17024c63da4\"", - "x-runtime": "0.116190", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"1b5a8bf874618040260d26f31d256973\"", + "x-runtime": "0.109895", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/refund/all.json b/EasyPost.Tests/cassettes/net/refund/all.json index 26765860f..a1e54b803 100644 --- a/EasyPost.Tests/cassettes/net/refund/all.json +++ b/EasyPost.Tests/cassettes/net/refund/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 364, - "RecordedAt": "2022-08-24T13:53:31.56735-06:00", + "Duration": 521, + "RecordedAt": "2022-09-07T14:53:55.515254-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,7 +16,7 @@ "Uri": "https://api.easypost.com/v2/refunds?page_size=5" }, "Response": { - "Body": "{\"refunds\":[{\"id\":\"rfnd_25796509c6b241999ff6cf732e1e645f\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:15Z\",\"updated_at\":\"2022-08-24T19:53:15Z\",\"tracking_code\":\"9400100109361134780333\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_ebf47814503a43e9b7e5c9087a1e10c2\"},{\"id\":\"rfnd_db6c5e7b608e4b06926b55cc421ed350\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"tracking_code\":\"9400100109361134780234\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\"},{\"id\":\"rfnd_b7ce85dcfd104dfbad702874eda008ab\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"tracking_code\":\"9400100109361134780166\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\"},{\"id\":\"rfnd_ebefa03be48440c283d7a1b078170208\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:08:51Z\",\"updated_at\":\"2022-08-22T22:28:00Z\",\"tracking_code\":\"9400100109361134350239\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_f4534068a4ae4ebc82775ef2beccea97\"},{\"id\":\"rfnd_a5d7bab638ad4421a2cb1ec11db02963\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:08:45Z\",\"updated_at\":\"2022-08-22T22:28:04Z\",\"tracking_code\":\"9400100109361134350178\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_aba96ee48aa04a8f8091dcbee2d11da3\"}],\"has_more\":true}", + "Body": "{\"refunds\":[{\"id\":\"rfnd_6fa0cb8e1b7444f29006ff89ee3db27b\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:28Z\",\"updated_at\":\"2022-09-07T20:53:28Z\",\"tracking_code\":\"9400100109361136477712\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_b5df82741a4e4de2898cf99692074ca5\"},{\"id\":\"rfnd_ca235093852d480ab8c12fcaad2f6121\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:20Z\",\"updated_at\":\"2022-09-07T20:53:20Z\",\"tracking_code\":\"9400100109361136477651\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_fd24eae116ff43979c91f2ef3bafa2c3\"},{\"id\":\"rfnd_af830bd475c94c28a270530765a86fa3\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:18Z\",\"updated_at\":\"2022-09-07T20:53:18Z\",\"tracking_code\":\"9400100109361136477583\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_316fd79d581f4d7bbdcee9c56cae866e\"},{\"id\":\"rfnd_da98420d14f84a8a82674f9099140020\",\"object\":\"Refund\",\"created_at\":\"2022-08-30T21:40:16Z\",\"updated_at\":\"2022-08-31T21:40:21Z\",\"tracking_code\":\"9400100109361135658075\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\"},{\"id\":\"rfnd_698cf23760ea4073839443394f515a91\",\"object\":\"Refund\",\"created_at\":\"2022-08-30T21:39:28Z\",\"updated_at\":\"2022-08-31T21:39:30Z\",\"tracking_code\":\"9400100109361135657986\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -31,16 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bbe68b1c4100794a22", + "x-ep-request-uuid": "3bde9a25631904e3e799f686002e0b7f", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"ff93eb0dd511f9f2c7db40d919aaf611\"", - "x-runtime": "0.044351", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"694719c346d29c9d4a674fa3fb392f74\"", + "x-runtime": "0.063252", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/refund/create.json b/EasyPost.Tests/cassettes/net/refund/create.json index 983c7aeaf..a8026a717 100644 --- a/EasyPost.Tests/cassettes/net/refund/create.json +++ b/EasyPost.Tests/cassettes/net/refund/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 418, - "RecordedAt": "2022-08-24T13:53:33.114557-06:00", + "Duration": 233, + "RecordedAt": "2022-09-07T14:53:56.894172-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:32Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780463\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6e7da76e23e611ed8e8dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_33fe1460c4374251b7c6c351ba04e230\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_99b3309828994b189462f198a1fd4c85\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/9e4e3bf0a26a48ddb129c2da50ee25da.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_7e10341006db455b84b09d550b8a4da0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5f60f2ae82e94f99b61a1ff3076aafba\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9afd167f5eb440b78e75108db2328d19\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_466ae778a2f841e0b22cc9f39010b6ee\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_466ae778a2f841e0b22cc9f39010b6ee\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_e99f744e2f8345b0b305fccbf62b6386\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780463\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2U5OWY3NDRlMmY4MzQ1YjBiMzA1ZmNjYmY2MmI2Mzg2\"},\"to_address\":{\"id\":\"adr_6e7bd71923e611ed888cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6e7da76e23e611ed8e8dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6e7bd71923e611ed888cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:56Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477804\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_30507bba2eef11ed8f4eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_eb23aeb68973435d836446411dbb345e\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_13602f07640a40ee8627b485ef96436f\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:56Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/0491a0946e324e9cb313fcd22d79bb9e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_53985e7186c246ae83b356d990a3a6ec\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c4040ff8072848daaff10683803ef2af\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0161c74c41cd4c0e8ccb83eae3ede434\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_762507a5b24a4568877dd12a05c80796\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_762507a5b24a4568877dd12a05c80796\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_d06fa8b6a490408f8940fbabc502dfc5\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477804\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2QwNmZhOGI2YTQ5MDQwOGY4OTQwZmJhYmM1MDJkZmM1\"},\"to_address\":{\"id\":\"adr_304e1c882eef11eda005ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_30507bba2eef11ed8f4eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_304e1c882eef11eda005ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bcf7db6fd300794a6f", + "x-ep-request-uuid": "3bde9a25631904e4e799f6cb002e0bc3", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_b7b635935cfd48d5bd1d92fb8b4d4665", - "ETag": "W/\"55160466be62b0d9c060a3feacdec737\"", - "x-runtime": "1.183934", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_157a18d69fb647d3b5991065bd220600", + "ETag": "W/\"d9e68660b10b9cf0e9f4e673caa62259\"", + "x-runtime": "0.899151", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 152, - "RecordedAt": "2022-08-24T13:53:33.311237-06:00", + "Duration": 203, + "RecordedAt": "2022-09-07T14:53:57.144109-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,15 +66,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_b7b635935cfd48d5bd1d92fb8b4d4665" + "Uri": "https://api.easypost.com/v2/shipments/shp_157a18d69fb647d3b5991065bd220600" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:32Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780463\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6e7da76e23e611ed8e8dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_33fe1460c4374251b7c6c351ba04e230\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_99b3309828994b189462f198a1fd4c85\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/9e4e3bf0a26a48ddb129c2da50ee25da.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_7e10341006db455b84b09d550b8a4da0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5f60f2ae82e94f99b61a1ff3076aafba\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9afd167f5eb440b78e75108db2328d19\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_466ae778a2f841e0b22cc9f39010b6ee\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_466ae778a2f841e0b22cc9f39010b6ee\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_e99f744e2f8345b0b305fccbf62b6386\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780463\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:33Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:33Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2U5OWY3NDRlMmY4MzQ1YjBiMzA1ZmNjYmY2MmI2Mzg2\"},\"to_address\":{\"id\":\"adr_6e7bd71923e611ed888cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6e7da76e23e611ed8e8dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6e7bd71923e611ed888cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:32-06:00\",\"updated_at\":\"2022-08-24T13:53:32-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:56Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477804\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_30507bba2eef11ed8f4eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_eb23aeb68973435d836446411dbb345e\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_13602f07640a40ee8627b485ef96436f\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:56Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/0491a0946e324e9cb313fcd22d79bb9e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_53985e7186c246ae83b356d990a3a6ec\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c4040ff8072848daaff10683803ef2af\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0161c74c41cd4c0e8ccb83eae3ede434\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_762507a5b24a4568877dd12a05c80796\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_762507a5b24a4568877dd12a05c80796\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_d06fa8b6a490408f8940fbabc502dfc5\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477804\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:57Z\",\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:57Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:57Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2QwNmZhOGI2YTQ5MDQwOGY4OTQwZmJhYmM1MDJkZmM1\"},\"to_address\":{\"id\":\"adr_304e1c882eef11eda005ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_30507bba2eef11ed8f4eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_304e1c882eef11eda005ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_157a18d69fb647d3b5991065bd220600\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "8062" + "Content-Length": "8090" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -84,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bdf7db6fd300794b52", + "x-ep-request-uuid": "3bde9a25631904e5e799f6cb002e0c3a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"c72f6f65d489eb8c503ea282f29d8f4c\"", - "x-runtime": "0.109654", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"c4c4a6428c045c547f98b97f8dddf0cf\"", + "x-runtime": "0.128099", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -102,10 +102,10 @@ } }, { - "Duration": 128, - "RecordedAt": "2022-08-24T13:53:33.483123-06:00", + "Duration": 179, + "RecordedAt": "2022-09-07T14:53:57.350218-06:00", "Request": { - "Body": "{\"refund\":{\"carrier\":\"USPS\",\"tracking_codes\":[\"9400100109361134780463\"]}}", + "Body": "{\"refund\":{\"carrier\":\"USPS\",\"tracking_codes\":[\"9400100109361136477804\"]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -121,7 +121,7 @@ "Uri": "https://api.easypost.com/v2/refunds" }, "Response": { - "Body": "[{\"id\":\"rfnd_97dd12befc1b46c1897e7a1a177544d8\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"tracking_code\":\"9400100109361134780463\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\"}]", + "Body": "[{\"id\":\"rfnd_a2c170e4ead045b78ad7c55052b3fa9e\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_code\":\"9400100109361136477804\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\"}]", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -136,13 +136,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bdf7db6fd300794b71", + "x-ep-request-uuid": "3bde9a25631904e5e799f6cb002e0c56", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"c8449fa8e7f28779eed31d472daab808\"", - "x-runtime": "0.085047", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"52f976e466ab1b0f330d83d912de350e\"", + "x-runtime": "0.124695", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -152,5 +152,5 @@ "Message": "Created" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/refund/retrieve.json b/EasyPost.Tests/cassettes/net/refund/retrieve.json index 8ea3cd3b3..f17f30a30 100644 --- a/EasyPost.Tests/cassettes/net/refund/retrieve.json +++ b/EasyPost.Tests/cassettes/net/refund/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 232, - "RecordedAt": "2022-08-24T13:53:33.730104-06:00", + "Duration": 354, + "RecordedAt": "2022-09-07T14:53:57.721594-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,7 +16,7 @@ "Uri": "https://api.easypost.com/v2/refunds?page_size=5" }, "Response": { - "Body": "{\"refunds\":[{\"id\":\"rfnd_97dd12befc1b46c1897e7a1a177544d8\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"tracking_code\":\"9400100109361134780463\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_b7b635935cfd48d5bd1d92fb8b4d4665\"},{\"id\":\"rfnd_25796509c6b241999ff6cf732e1e645f\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:15Z\",\"updated_at\":\"2022-08-24T19:53:15Z\",\"tracking_code\":\"9400100109361134780333\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_ebf47814503a43e9b7e5c9087a1e10c2\"},{\"id\":\"rfnd_db6c5e7b608e4b06926b55cc421ed350\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"tracking_code\":\"9400100109361134780234\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\"},{\"id\":\"rfnd_b7ce85dcfd104dfbad702874eda008ab\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"tracking_code\":\"9400100109361134780166\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\"},{\"id\":\"rfnd_ebefa03be48440c283d7a1b078170208\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:08:51Z\",\"updated_at\":\"2022-08-22T22:28:00Z\",\"tracking_code\":\"9400100109361134350239\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_f4534068a4ae4ebc82775ef2beccea97\"}],\"has_more\":true}", + "Body": "{\"refunds\":[{\"id\":\"rfnd_a2c170e4ead045b78ad7c55052b3fa9e\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_code\":\"9400100109361136477804\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\"},{\"id\":\"rfnd_6fa0cb8e1b7444f29006ff89ee3db27b\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:28Z\",\"updated_at\":\"2022-09-07T20:53:28Z\",\"tracking_code\":\"9400100109361136477712\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_b5df82741a4e4de2898cf99692074ca5\"},{\"id\":\"rfnd_ca235093852d480ab8c12fcaad2f6121\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:20Z\",\"updated_at\":\"2022-09-07T20:53:20Z\",\"tracking_code\":\"9400100109361136477651\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_fd24eae116ff43979c91f2ef3bafa2c3\"},{\"id\":\"rfnd_af830bd475c94c28a270530765a86fa3\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:18Z\",\"updated_at\":\"2022-09-07T20:53:18Z\",\"tracking_code\":\"9400100109361136477583\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_316fd79d581f4d7bbdcee9c56cae866e\"},{\"id\":\"rfnd_da98420d14f84a8a82674f9099140020\",\"object\":\"Refund\",\"created_at\":\"2022-08-30T21:40:16Z\",\"updated_at\":\"2022-08-31T21:40:21Z\",\"tracking_code\":\"9400100109361135658075\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -31,15 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bdf7cdad1400794b9e", + "x-ep-request-uuid": "3bde9a25631904e5e799fa27002e0c8c", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"5dc12fa7f0ca6b9cd453d11ce28f5cc4\"", - "x-runtime": "0.049185", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"d2e219bd03d417870d36343b92db02db\"", + "x-runtime": "0.072462", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -49,8 +49,8 @@ } }, { - "Duration": 193, - "RecordedAt": "2022-08-24T13:53:34.937615-06:00", + "Duration": 5, + "RecordedAt": "2022-09-07T14:53:58.74288-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -68,7 +68,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:33Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780531\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6f9083dc23e611ed8907ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b64b69ca9c18480696019f8176e70352\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_7b71776dee984e35bc49baf96c4008d4\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/45687ddff528443995c134a206099bda.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c3d4bcac9534411dabbf6064712cc85e\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eb01a231bd824be4b8f1185144db7705\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_938c0ea495924acbb50032d01377579e\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7832adcd54cb4ee5b1e7766362b7b95f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7832adcd54cb4ee5b1e7766362b7b95f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_2e696aae61454f4cafe7f2ee21a097f4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780531\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzJlNjk2YWFlNjE0NTRmNGNhZmU3ZjJlZTIxYTA5N2Y0\"},\"to_address\":{\"id\":\"adr_6f8e745923e611eda183ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6f9083dc23e611ed8907ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6f8e745923e611eda183ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477842\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3166e1072eef11eda089ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_872f329d3d234f41b88bc61d98d92760\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_af3cc08c116f4048ab2a145c6f3b0393\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/2be5fe45f6224b9c82f21c317e2a0885.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c58cd0e59ebc4c87929a4ee6d5c450f2\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3cd6a57c8786461da7d02ce828ab439a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_51931ba95a65472588d7f2ef44579de4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_40a430ea4f42451aa78572403596c8ad\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_51931ba95a65472588d7f2ef44579de4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_88fb1b98c67f4844986566ca21fd4346\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477842\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzg4ZmIxYjk4YzY3ZjQ4NDQ5ODY1NjZjYTIxZmQ0MzQ2\"},\"to_address\":{\"id\":\"adr_316495352eef11ed987fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3166e1072eef11eda089ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_316495352eef11ed987fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,16 +83,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bdf7cdad1400794bb4", + "x-ep-request-uuid": "3bde9a25631904e5e799fa27002e0c9b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_962cffa2a0a840a6890359961f800d6a", - "ETag": "W/\"ca8a684575e89d4e8b3bd766b1086b1a\"", - "x-runtime": "1.144954", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_bd4fc4971dbc449984af129aa06aec6d", + "ETag": "W/\"e3d9e20a9587af38719fc998970100c2\"", + "x-runtime": "0.924876", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -102,8 +102,8 @@ } }, { - "Duration": 166, - "RecordedAt": "2022-08-24T13:53:35.143569-06:00", + "Duration": 193, + "RecordedAt": "2022-09-07T14:53:58.965826-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -115,10 +115,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_962cffa2a0a840a6890359961f800d6a" + "Uri": "https://api.easypost.com/v2/shipments/shp_bd4fc4971dbc449984af129aa06aec6d" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:33Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780531\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6f9083dc23e611ed8907ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b64b69ca9c18480696019f8176e70352\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_7b71776dee984e35bc49baf96c4008d4\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/45687ddff528443995c134a206099bda.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c3d4bcac9534411dabbf6064712cc85e\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eb01a231bd824be4b8f1185144db7705\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_938c0ea495924acbb50032d01377579e\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7832adcd54cb4ee5b1e7766362b7b95f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7832adcd54cb4ee5b1e7766362b7b95f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_2e696aae61454f4cafe7f2ee21a097f4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780531\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:35Z\",\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:35Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:35Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzJlNjk2YWFlNjE0NTRmNGNhZmU3ZjJlZTIxYTA5N2Y0\"},\"to_address\":{\"id\":\"adr_6f8e745923e611eda183ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6f9083dc23e611ed8907ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6f8e745923e611eda183ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:34-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_962cffa2a0a840a6890359961f800d6a\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477842\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3166e1072eef11eda089ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_872f329d3d234f41b88bc61d98d92760\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_af3cc08c116f4048ab2a145c6f3b0393\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/2be5fe45f6224b9c82f21c317e2a0885.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c58cd0e59ebc4c87929a4ee6d5c450f2\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3cd6a57c8786461da7d02ce828ab439a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_51931ba95a65472588d7f2ef44579de4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_40a430ea4f42451aa78572403596c8ad\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_51931ba95a65472588d7f2ef44579de4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_88fb1b98c67f4844986566ca21fd4346\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477842\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:58Z\",\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:58Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:58Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzg4ZmIxYjk4YzY3ZjQ4NDQ5ODY1NjZjYTIxZmQ0MzQ2\"},\"to_address\":{\"id\":\"adr_316495352eef11ed987fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3166e1072eef11eda089ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_316495352eef11ed987fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -133,13 +133,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bff7cdad1400794c68", + "x-ep-request-uuid": "3bde9a25631904e6e799fa27002e0cfd", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"1f1fdd92e836d25a5ea4576188146343\"", - "x-runtime": "0.119362", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"137b652f6b276cd93538065548ee9bb8\"", + "x-runtime": "0.129042", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -151,10 +151,10 @@ } }, { - "Duration": 104, - "RecordedAt": "2022-08-24T13:53:35.285266-06:00", + "Duration": 146, + "RecordedAt": "2022-09-07T14:53:59.141563-06:00", "Request": { - "Body": "{\"refund\":{\"carrier\":\"USPS\",\"tracking_codes\":[\"9400100109361134780531\"]}}", + "Body": "{\"refund\":{\"carrier\":\"USPS\",\"tracking_codes\":[\"9400100109361136477842\"]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -170,7 +170,7 @@ "Uri": "https://api.easypost.com/v2/refunds" }, "Response": { - "Body": "[{\"id\":\"rfnd_7821da6b1ef6471aa373d551b9a83666\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"tracking_code\":\"9400100109361134780531\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\"}]", + "Body": "[{\"id\":\"rfnd_531a4bef44e3479389899b671be1a39e\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"tracking_code\":\"9400100109361136477842\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\"}]", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -185,13 +185,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bff7cdad1400794c83", + "x-ep-request-uuid": "3bde9a25631904e7e799fa27002e0d18", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"75429a93ade165e6a157e1e6dc6d63f3\"", - "x-runtime": "0.063759", + "ETag": "W/\"e2be5b1ba5caca32684a2f81a9bbcb2d\"", + "x-runtime": "0.073279", "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -203,8 +203,8 @@ } }, { - "Duration": 71, - "RecordedAt": "2022-08-24T13:53:35.369018-06:00", + "Duration": 98, + "RecordedAt": "2022-09-07T14:53:59.252177-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -216,10 +216,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/refunds/rfnd_7821da6b1ef6471aa373d551b9a83666" + "Uri": "https://api.easypost.com/v2/refunds/rfnd_531a4bef44e3479389899b671be1a39e" }, "Response": { - "Body": "{\"id\":\"rfnd_7821da6b1ef6471aa373d551b9a83666\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:35Z\",\"updated_at\":\"2022-08-24T19:53:35Z\",\"tracking_code\":\"9400100109361134780531\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_962cffa2a0a840a6890359961f800d6a\"}", + "Body": "{\"id\":\"rfnd_531a4bef44e3479389899b671be1a39e\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"tracking_code\":\"9400100109361136477842\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -234,15 +234,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bff7cdad1400794c92", + "x-ep-request-uuid": "3bde9a25631904e7e799fa27002e0d28", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"d4137a6ee2920db0c4109e3b168ec713\"", - "x-runtime": "0.032091", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"1382b39b71fba41af95ec759e029e34e\"", + "x-runtime": "0.037327", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -250,5 +250,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/report/all.json b/EasyPost.Tests/cassettes/net/report/all.json index 58250c187..789836720 100644 --- a/EasyPost.Tests/cassettes/net/report/all.json +++ b/EasyPost.Tests/cassettes/net/report/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 279, - "RecordedAt": "2022-08-24T13:53:32.247858-06:00", + "Duration": 317, + "RecordedAt": "2022-09-07T14:53:56.391346-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,7 +16,7 @@ "Uri": "https://api.easypost.com/v2/reports/shipment?page_size=5" }, "Response": { - "Body": "{\"reports\":[{\"id\":\"shprep_64991fa816b34f4189469a66b601eafc\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_b24cc676a87f4390acb0fc4d85eaf848\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_8373ee9408954ed49cca161bb44421ac\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_ad3e576ec5c146d5a4cf0c09a0e602b7\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_54dc9e48ecc044daaa54c2e12fd14e72\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}],\"has_more\":true}", + "Body": "{\"reports\":[{\"id\":\"shprep_02ba2267976b4daf8ea3cc6385a612d4\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_130f0f0faf9c4b2d97b369915a22b279\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_5c5fe54baa654055aebd8b6ea14d86da\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:18Z\",\"updated_at\":\"2022-09-07T20:53:18Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_c58cd784daa44f15b2cff2abd7b0a8be\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:18Z\",\"updated_at\":\"2022-09-07T20:53:18Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_4d16a1f6eda549679a63863a00bd2be1\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:17Z\",\"updated_at\":\"2022-09-07T20:53:17Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -31,13 +31,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bcf7ece26e00794a99", + "x-ep-request-uuid": "3bde9a25631904e4e799f6ea002e0bed", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"f7a5e22b0ad15c54676084905d4dd519\"", - "x-runtime": "0.095815", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"aa3839c00182e596e9d676d3ee62847e\"", + "x-runtime": "0.046059", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/report/create_report.json b/EasyPost.Tests/cassettes/net/report/create_report.json index 35df9bb1e..310a019e7 100644 --- a/EasyPost.Tests/cassettes/net/report/create_report.json +++ b/EasyPost.Tests/cassettes/net/report/create_report.json @@ -1,7 +1,7 @@ [ { - "Duration": 234, - "RecordedAt": "2022-08-24T13:53:32.516007-06:00", + "Duration": 299, + "RecordedAt": "2022-09-07T14:53:56.719748-06:00", "Request": { "Body": "{\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/reports/shipment" }, "Response": { - "Body": "{\"id\":\"shprep_7cbb52f140c845cbbb8928985c185b10\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", + "Body": "{\"id\":\"shprep_bb567872df434b938f0d485145032a28\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681bcf7dec21c00794ad4", + "x-ep-request-uuid": "3bde9a28631904e4e799f708002e0c15", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"3ff6d5c28f81694aa52901ae989db2d8\"", - "x-runtime": "0.036873", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"e9171cf25737ed7d27cff2b6314b3e1e\"", + "x-runtime": "0.044287", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/report/create_report_with_additional_columns.json b/EasyPost.Tests/cassettes/net/report/create_report_with_additional_columns.json index 002280192..be6b8932b 100644 --- a/EasyPost.Tests/cassettes/net/report/create_report_with_additional_columns.json +++ b/EasyPost.Tests/cassettes/net/report/create_report_with_additional_columns.json @@ -1,7 +1,7 @@ [ { - "Duration": 409, - "RecordedAt": "2022-08-24T13:53:31.64533-06:00", + "Duration": 515, + "RecordedAt": "2022-09-07T14:53:55.557806-06:00", "Request": { "Body": "{\"additional_columns\":[\"from_name\",\"from_company\"],\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/reports/shipment" }, "Response": { - "Body": "{\"id\":\"shprep_b24cc676a87f4390acb0fc4d85eaf848\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", + "Body": "{\"id\":\"shprep_130f0f0faf9c4b2d97b369915a22b279\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bbf7efc5b600794a40", + "x-ep-request-uuid": "3bde9a27631904e3e799f6aa002e0b95", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"0e4547656453278bda3f7ee9ad19ccc2\"", - "x-runtime": "0.040477", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"520feb4ddb1d7339c44208ad08c45c9e\"", + "x-runtime": "0.038799", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/report/create_report_with_columns.json b/EasyPost.Tests/cassettes/net/report/create_report_with_columns.json index 366c005b3..6491783aa 100644 --- a/EasyPost.Tests/cassettes/net/report/create_report_with_columns.json +++ b/EasyPost.Tests/cassettes/net/report/create_report_with_columns.json @@ -1,7 +1,7 @@ [ { - "Duration": 259, - "RecordedAt": "2022-08-24T13:53:31.950696-06:00", + "Duration": 386, + "RecordedAt": "2022-09-07T14:53:56.041539-06:00", "Request": { "Body": "{\"columns\":[\"usps_zone\"],\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/reports/shipment" }, "Response": { - "Body": "{\"id\":\"shprep_64991fa816b34f4189469a66b601eafc\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", + "Body": "{\"id\":\"shprep_02ba2267976b4daf8ea3cc6385a612d4\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bcf7c9ce7100794a6a", + "x-ep-request-uuid": "3bde9a28631904e4e799f6c8002e0bc0", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"a174c84401463de5c94a8304e9d9b082\"", - "x-runtime": "0.036546", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"0509f07f0e7ce188a6a0d68943f4af33\"", + "x-runtime": "0.055006", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/report/retrieve_report.json b/EasyPost.Tests/cassettes/net/report/retrieve_report.json index ee95a28e9..1264bb79b 100644 --- a/EasyPost.Tests/cassettes/net/report/retrieve_report.json +++ b/EasyPost.Tests/cassettes/net/report/retrieve_report.json @@ -1,7 +1,7 @@ [ { - "Duration": 248, - "RecordedAt": "2022-08-24T13:53:32.786898-06:00", + "Duration": 310, + "RecordedAt": "2022-09-07T14:53:57.045662-06:00", "Request": { "Body": "{\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/reports/shipment" }, "Response": { - "Body": "{\"id\":\"shprep_7b5a186e53bd454693507acf2ec04ceb\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", + "Body": "{\"id\":\"shprep_153005afbb3a44108ab847681047ccb9\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bcf7bb19c000794b02", + "x-ep-request-uuid": "3bde9a2b631904e5e799f70e002e0c3c", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6653126ed29480b6dd971b4272aab452\"", - "x-runtime": "0.044513", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"aa3c3679cb47834e60488a7fa0a8569f\"", + "x-runtime": "0.042102", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -52,8 +52,8 @@ } }, { - "Duration": 70, - "RecordedAt": "2022-08-24T13:53:32.869831-06:00", + "Duration": 87, + "RecordedAt": "2022-09-07T14:53:57.14574-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,15 +65,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/reports/shprep_7b5a186e53bd454693507acf2ec04ceb" + "Uri": "https://api.easypost.com/v2/reports/shprep_153005afbb3a44108ab847681047ccb9" }, "Response": { - "Body": "{\"id\":\"shprep_7b5a186e53bd454693507acf2ec04ceb\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", + "Body": "{\"id\":\"shprep_153005afbb3a44108ab847681047ccb9\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "283" + "Content-Length": "285" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -83,13 +83,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bcf7bb19c000794b0d", + "x-ep-request-uuid": "3bde9a2b631904e5e799f70e002e0c4d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6653126ed29480b6dd971b4272aab452\"", - "x-runtime": "0.030466", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"c2fd16ec566d462c2b1e2de93d4bed3b\"", + "x-runtime": "0.030615", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -99,5 +99,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/scan_form/all.json b/EasyPost.Tests/cassettes/net/scan_form/all.json index a3c1215c6..c4668b3eb 100644 --- a/EasyPost.Tests/cassettes/net/scan_form/all.json +++ b/EasyPost.Tests/cassettes/net/scan_form/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 227, - "RecordedAt": "2022-08-24T13:53:33.314285-06:00", + "Duration": 298, + "RecordedAt": "2022-09-07T14:53:57.49142-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/scan_forms?page_size=5" }, "Response": { - "Body": "{\"scan_forms\":[{\"id\":\"sf_991e84798db948fb8683917a981f68dd\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"tracking_codes\":[\"9400100109361134780432\"],\"address\":{\"id\":\"adr_6e36cc8623e611ed86f2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220824/d63e2f180f7f4915b51cca8a316bb954.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_ce2c666cfcd5497f89fdef198f859bcf\",\"confirmation\":null},{\"id\":\"sf_74b656ab10e44994bf7a525c0a563462\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:16Z\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"tracking_codes\":[\"9400100109361134780203\"],\"address\":{\"id\":\"adr_5f175a7d23e611ed8379ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220824/b6dab9042c924dae935cff4a61d7a6ac.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_d453f55ee35f431b8252b6dc9f904a24\",\"confirmation\":null},{\"id\":\"sf_1ed1f7ff4ec1464b8eb2be7842b3aac8\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"tracking_codes\":[\"9400100109361134780227\"],\"address\":{\"id\":\"adr_5f4c8e9d23e611ed9c39ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220824/6eea6fc3bb264996b16364940771a567.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_41b486c7afb740188572bfb336b03f45\",\"confirmation\":null},{\"id\":\"sf_cff634d8d7884486ba6c5f55916a00a3\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"tracking_codes\":[\"9400100109361134780128\"],\"address\":{\"id\":\"adr_5dd49aca23e611ed8908ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220824/c1c07a919cd3418380d32e203a27ff82.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_a5747d4112f745dcb5bb61615215a554\",\"confirmation\":null},{\"id\":\"sf_f9c852c80a4544f58c9065a42916947f\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-22T22:09:23Z\",\"updated_at\":\"2022-08-22T22:09:24Z\",\"tracking_codes\":[\"9400100109361134350253\"],\"address\":{\"id\":\"adr_fc3b2ea2226611ed927bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:08:43-06:00\",\"updated_at\":\"2022-08-22T16:08:43-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220822/9b993a30ce734e8285d6a69de0e62840.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_b4b08bb4923944de85eadfde51e45416\",\"confirmation\":null}],\"has_more\":true}", + "Body": "{\"scan_forms\":[{\"id\":\"sf_7c0f64a979b1489793d687dbd1845f5c\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_codes\":[\"9400100109361136477774\"],\"address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/eb1ac305dc5a41b0be1b643810782fc2.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_e5c80887bdab48d5a4002504c5200122\",\"confirmation\":null},{\"id\":\"sf_6e9d576c6098475b9787ce35bffccaf5\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:29Z\",\"updated_at\":\"2022-09-07T20:53:29Z\",\"tracking_codes\":[\"9400100109361136477637\"],\"address\":{\"id\":\"adr_1a1e64852eef11edaf5fac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:18-06:00\",\"updated_at\":\"2022-09-07T14:53:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/cd8a81920d6f4413b8efcb12494b7c86.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_93ef92a77be249239c94295b64ab7fdd\",\"confirmation\":null},{\"id\":\"sf_6f5d909c651b4a90bbc3a78b4b34e1d1\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:20Z\",\"updated_at\":\"2022-09-07T20:53:20Z\",\"tracking_codes\":[\"9400100109361136477668\"],\"address\":{\"id\":\"adr_1a76559d2eef11ed95c0ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:19-06:00\",\"updated_at\":\"2022-09-07T14:53:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/aacc23195019452c80ff37ae584d61a1.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_4cb2312c65634af8a93137327c9a9f94\",\"confirmation\":null},{\"id\":\"sf_ebada8b0051c4b7e8f587506ccfaaf0c\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:18Z\",\"updated_at\":\"2022-09-07T20:53:18Z\",\"tracking_codes\":[\"9400100109361136477569\"],\"address\":{\"id\":\"adr_18f2b7c62eef11ed9508ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:16-06:00\",\"updated_at\":\"2022-09-07T14:53:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/94ad544e8d4b48b586c1c7a4f89a42a4.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_bb3207affe2844dbb0097191f8d721f1\",\"confirmation\":null},{\"id\":\"sf_4d6282c88f9340d78846a454e0faeaf3\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-29T22:52:24Z\",\"updated_at\":\"2022-08-29T22:52:24Z\",\"tracking_codes\":[\"9400100109361135567186\"],\"address\":{\"id\":\"adr_3eab9c0527ed11ed9f9fac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:23-06:00\",\"updated_at\":\"2022-08-29T16:52:23-06: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\":{}},\"status\":\"created\",\"message\":null,\"form_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220829/aa19a6e05fd748c3b911e3f886eef645.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_bde88bc3ff4648558632df4004b8998c\",\"confirmation\":null}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "4522" + "Content-Length": "4528" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,15 +31,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bdf7ca785700794b63", + "x-ep-request-uuid": "3bde9a2a631904e5e799fa23002e0c76", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"36edb93a58788f38549e027822f2e669\"", - "x-runtime": "0.049565", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"542360cd0cef753cf69b68dc07951f45\"", + "x-runtime": "0.044180", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, diff --git a/EasyPost.Tests/cassettes/net/scan_form/create.json b/EasyPost.Tests/cassettes/net/scan_form/create.json index f5ca1f83f..adb584150 100644 --- a/EasyPost.Tests/cassettes/net/scan_form/create.json +++ b/EasyPost.Tests/cassettes/net/scan_form/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 98, - "RecordedAt": "2022-08-24T13:53:34.442722-06:00", + "Duration": 404, + "RecordedAt": "2022-09-07T14:53:58.922143-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:33Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780517\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6f66d79723e611eda16cac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_d5894a6670c74e879c24d54cbdee589c\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_1e523a666ac94b4989607fc9cb05794c\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/81ff8e7061a44e65990032a4c68dbfcc.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_14d8dea4d111479b93c294ff6e752607\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_662cc9056f474fc98e586a72bba61240\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_574686ee9c6c43b498adb8a0434f68ae\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9abfb2a0f3e148b29f7ca63e9db0fb45\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:33Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_574686ee9c6c43b498adb8a0434f68ae\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_67a18c894d3346a88a47496e08de8b85\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780517\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzY3YTE4Yzg5NGQzMzQ2YTg4YTQ3NDk2ZTA4ZGU4Yjg1\"},\"to_address\":{\"id\":\"adr_6f6510a323e611eda16aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6f66d79723e611eda16cac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6f6510a323e611eda16aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477866\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_41b7c45d0eaf400cac9a2f117bfd6e0d\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_eaf0505e23c44d058dc526462d58ad30\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/88c8e41c1df840f3b18f4a214367bcfe.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_332e6431bff045a497bb3e5ad3c34f4b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_29eb5d68862046f38d19fbbf06b8a04e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_81965b4a593b4a90946d5cd20956e613\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_609ab8bfbbc94e31821d55efd0c20b18\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_332e6431bff045a497bb3e5ad3c34f4b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_80205a1e339b4be89d52129d5c06c9a0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477866\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzgwMjA1YTFlMzM5YjRiZTg5ZDUyMTI5ZDVjMDZjOWEw\"},\"to_address\":{\"id\":\"adr_3164862d2eef11ed987eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3164862d2eef11ed987eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bdf7c93d6a00794b88", + "x-ep-request-uuid": "3bde9a27631904e5e799fa40002e0c9c", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_71f8f8f909b44e5ca6643e3904d75434", - "ETag": "W/\"3ea7dc047512e0f83b31dbec4164c606\"", - "x-runtime": "0.917582", + "Location": "/api/v2/shipments/shp_52f3a6c37e7e4802986793f185d7dc37", + "ETag": "W/\"0ce852dfb15dce176ae49a813d630df2\"", + "x-runtime": "1.114373", "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,14 +53,14 @@ } }, { - "Duration": 267, - "RecordedAt": "2022-08-24T13:53:34.744711-06:00", + "Duration": 404, + "RecordedAt": "2022-09-07T14:53:59.347598-06:00", "Request": { - "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:33Z\",\"id\":\"adr_6f6510a323e611eda16aac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:33Z\",\"id\":\"adr_6f66d79723e611eda16cac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:33Z\",\"id\":\"prcl_d5894a6670c74e879c24d54cbdee589c\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:34Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/81ff8e7061a44e65990032a4c68dbfcc.png\",\"created_at\":\"2022-08-24T19:53:34Z\",\"id\":\"pl_1e523a666ac94b4989607fc9cb05794c\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"created_at\":\"2022-08-24T19:53:33Z\",\"id\":\"rate_14d8dea4d111479b93c294ff6e752607\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"created_at\":\"2022-08-24T19:53:33Z\",\"id\":\"rate_662cc9056f474fc98e586a72bba61240\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"created_at\":\"2022-08-24T19:53:33Z\",\"id\":\"rate_574686ee9c6c43b498adb8a0434f68ae\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"created_at\":\"2022-08-24T19:53:33Z\",\"id\":\"rate_9abfb2a0f3e148b29f7ca63e9db0fb45\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:33Z\",\"id\":\"adr_6f66d79723e611eda16cac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"created_at\":\"2022-08-24T19:53:34Z\",\"id\":\"rate_574686ee9c6c43b498adb8a0434f68ae\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:33Z\",\"id\":\"adr_6f6510a323e611eda16aac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzY3YTE4Yzg5NGQzMzQ2YTg4YTQ3NDk2ZTA4ZGU4Yjg1\",\"shipment_id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780517\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:34Z\",\"id\":\"trk_67a18c894d3346a88a47496e08de8b85\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780517\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:33Z\",\"id\":\"shp_71f8f8f909b44e5ca6643e3904d75434\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"object\":\"Shipment\"}]}}", + "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"adr_3164862d2eef11ed987eac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"prcl_41b7c45d0eaf400cac9a2f117bfd6e0d\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/88c8e41c1df840f3b18f4a214367bcfe.png\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"pl_eaf0505e23c44d058dc526462d58ad30\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"rate_332e6431bff045a497bb3e5ad3c34f4b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"rate_29eb5d68862046f38d19fbbf06b8a04e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"rate_81965b4a593b4a90946d5cd20956e613\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"rate_609ab8bfbbc94e31821d55efd0c20b18\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"rate_332e6431bff045a497bb3e5ad3c34f4b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"adr_3164862d2eef11ed987eac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzgwMjA1YTFlMzM5YjRiZTg5ZDUyMTI5ZDVjMDZjOWEw\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477866\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"trk_80205a1e339b4be89d52129d5c06c9a0\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136477866\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Shipment\"}]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6038" + "Content-Length": "6014" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/scan_forms" }, "Response": { - "Body": "{\"id\":\"sf_16e5b14dbb1e40dc8f86843458ac3964\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:34Z\",\"updated_at\":\"2022-08-24T19:53:34Z\",\"tracking_codes\":[\"9400100109361134780517\"],\"address\":{\"id\":\"adr_6f66d79723e611eda16cac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:33-06:00\",\"updated_at\":\"2022-08-24T13:53:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220824/81ae88cf87ac470189c097e1e0ecb401.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_6a31be3590074070bd0f40bc68493143\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_7b526727dffa45ccbcab334a712214a0\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"tracking_codes\":[\"9400100109361136477866\"],\"address\":{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/776bd5d92dbb4fc5b9f5bf175f7c295c.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_8b5d36e64e024bdf967e0e6b9ee42234\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bef7c93d6a00794c2d", + "x-ep-request-uuid": "3bde9a27631904e7e799fa40002e0d13", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"f18d8b1c5219bb9190b1d1599c5ac892\"", - "x-runtime": "0.222425", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"2a6eaf53317e9abfc6e08d6b820d60ce\"", + "x-runtime": "0.339668", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -103,5 +103,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/scan_form/retrieve.json b/EasyPost.Tests/cassettes/net/scan_form/retrieve.json index 59e47620c..79b697748 100644 --- a/EasyPost.Tests/cassettes/net/scan_form/retrieve.json +++ b/EasyPost.Tests/cassettes/net/scan_form/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 348, - "RecordedAt": "2022-08-24T13:53:32.581226-06:00", + "Duration": 520, + "RecordedAt": "2022-09-07T14:53:56.575796-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:31Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780432\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6e36cc8623e611ed86f2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_8cdda7014499424bb2666d0cd7172a71\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_273b5b3ce2014f9580f64e52280736e0\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/0133e2d0eadd4e16b4cbf7341ccebe93.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_fdf0518996eb4b17830d233b8b75d4d2\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0e314bbbc66b479dbdcf1fa32930f303\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0300da9fd3cc40bca07d6f8beb400da0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a00a0483204846f091f6fabc2f0b745e\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a00a0483204846f091f6fabc2f0b745e\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_620fcb86494f405cacc8ed32f222f842\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780432\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzYyMGZjYjg2NDk0ZjQwNWNhY2M4ZWQzMmYyMjJmODQy\"},\"to_address\":{\"id\":\"adr_6e350e6b23e611ed8877ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6e36cc8623e611ed86f2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6e350e6b23e611ed8877ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:55Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477774\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5d001683b33a46588973c49ce2d01fda\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ebb9c865f1cf41c292fd4f6dad476a73\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:56Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/d654e066810a4ac6b6ce251b79cb4018.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_463ce54a5fe0493e999700b42915e2cd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a46be94220d64fa1ac4b453c3b7bb087\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_be8f5af9c2fc44999d29e2ed7c27cdb6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_117f8734a78b4e17bd7e0af36f1c4633\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_be8f5af9c2fc44999d29e2ed7c27cdb6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_a4e01f58ed1a4fb7a36275b12ab1bb19\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477774\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2E0ZTAxZjU4ZWQxYTRmYjdhMzYyNzViMTJhYjFiYjE5\"},\"to_address\":{\"id\":\"adr_300881ff2eef11ed97d9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_300881ff2eef11ed97d9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bbf7bb037200794a31", + "x-ep-request-uuid": "3bde9a28631904e3e799f6ac002e0b9b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_38bb00d6b1e845f1b566ca129183cdd0", - "ETag": "W/\"23f7d45e5431ad7407051500c079d5a7\"", - "x-runtime": "1.052669", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_d83c92f9530a4adc901267f4d2ddc642", + "ETag": "W/\"a4ea275f723252193adf024d9d8dfa14\"", + "x-runtime": "1.046137", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,14 +53,14 @@ } }, { - "Duration": 338, - "RecordedAt": "2022-08-24T13:53:32.959784-06:00", + "Duration": 390, + "RecordedAt": "2022-09-07T14:53:56.996567-06:00", "Request": { - "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"adr_6e350e6b23e611ed8877ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"adr_6e36cc8623e611ed86f2ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"prcl_8cdda7014499424bb2666d0cd7172a71\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:32Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/0133e2d0eadd4e16b4cbf7341ccebe93.png\",\"created_at\":\"2022-08-24T19:53:32Z\",\"id\":\"pl_273b5b3ce2014f9580f64e52280736e0\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"rate_fdf0518996eb4b17830d233b8b75d4d2\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"rate_0e314bbbc66b479dbdcf1fa32930f303\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"rate_0300da9fd3cc40bca07d6f8beb400da0\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"rate_a00a0483204846f091f6fabc2f0b745e\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"adr_6e36cc8623e611ed86f2ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"created_at\":\"2022-08-24T19:53:32Z\",\"id\":\"rate_a00a0483204846f091f6fabc2f0b745e\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"adr_6e350e6b23e611ed8877ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzYyMGZjYjg2NDk0ZjQwNWNhY2M4ZWQzMmYyMjJmODQy\",\"shipment_id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780432\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:32Z\",\"id\":\"trk_620fcb86494f405cacc8ed32f222f842\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780432\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:31Z\",\"id\":\"shp_38bb00d6b1e845f1b566ca129183cdd0\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"object\":\"Shipment\"}]}}", + "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"adr_300881ff2eef11ed97d9ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"prcl_5d001683b33a46588973c49ce2d01fda\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:56Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/d654e066810a4ac6b6ce251b79cb4018.png\",\"created_at\":\"2022-09-07T20:53:56Z\",\"id\":\"pl_ebb9c865f1cf41c292fd4f6dad476a73\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"rate_463ce54a5fe0493e999700b42915e2cd\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"rate_a46be94220d64fa1ac4b453c3b7bb087\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"rate_be8f5af9c2fc44999d29e2ed7c27cdb6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"rate_117f8734a78b4e17bd7e0af36f1c4633\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"created_at\":\"2022-09-07T20:53:56Z\",\"id\":\"rate_be8f5af9c2fc44999d29e2ed7c27cdb6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"adr_300881ff2eef11ed97d9ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2E0ZTAxZjU4ZWQxYTRmYjdhMzYyNzViMTJhYjFiYjE5\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477774\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:53:56Z\",\"id\":\"trk_a4e01f58ed1a4fb7a36275b12ab1bb19\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136477774\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"object\":\"Shipment\"}]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6038" + "Content-Length": "6014" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/scan_forms" }, "Response": { - "Body": "{\"id\":\"sf_991e84798db948fb8683917a981f68dd\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"tracking_codes\":[\"9400100109361134780432\"],\"address\":{\"id\":\"adr_6e36cc8623e611ed86f2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220824/d63e2f180f7f4915b51cca8a316bb954.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_ce2c666cfcd5497f89fdef198f859bcf\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_7c0f64a979b1489793d687dbd1845f5c\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_codes\":[\"9400100109361136477774\"],\"address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/eb1ac305dc5a41b0be1b643810782fc2.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_e5c80887bdab48d5a4002504c5200122\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,13 +87,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bcf7bb037200794af6", + "x-ep-request-uuid": "3bde9a28631904e4e799f6ac002e0c12", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"1a3d5b371cd436b0f51dfb10bf247da6\"", - "x-runtime": "0.295536", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"a06d3d43a1a7e691e3331861d2d742de\"", + "x-runtime": "0.327806", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -105,8 +105,8 @@ } }, { - "Duration": 68, - "RecordedAt": "2022-08-24T13:53:33.050797-06:00", + "Duration": 123, + "RecordedAt": "2022-09-07T14:53:57.15043-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -118,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/scan_forms/sf_991e84798db948fb8683917a981f68dd" + "Uri": "https://api.easypost.com/v2/scan_forms/sf_7c0f64a979b1489793d687dbd1845f5c" }, "Response": { - "Body": "{\"id\":\"sf_991e84798db948fb8683917a981f68dd\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:33Z\",\"tracking_codes\":[\"9400100109361134780432\"],\"address\":{\"id\":\"adr_6e36cc8623e611ed86f2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:31-06:00\",\"updated_at\":\"2022-08-24T13:53:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220824/d63e2f180f7f4915b51cca8a316bb954.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_ce2c666cfcd5497f89fdef198f859bcf\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_7c0f64a979b1489793d687dbd1845f5c\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_codes\":[\"9400100109361136477774\"],\"address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/eb1ac305dc5a41b0be1b643810782fc2.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_e5c80887bdab48d5a4002504c5200122\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -136,13 +136,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bdf7bb037200794b2e", + "x-ep-request-uuid": "3bde9a28631904e5e799f6ac002e0c4a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"1a3d5b371cd436b0f51dfb10bf247da6\"", - "x-runtime": "0.030131", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"a06d3d43a1a7e691e3331861d2d742de\"", + "x-runtime": "0.053132", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -152,5 +152,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/shipment/all.json b/EasyPost.Tests/cassettes/net/shipment/all.json index cca5f5f13..7c91d0b2a 100644 --- a/EasyPost.Tests/cassettes/net/shipment/all.json +++ b/EasyPost.Tests/cassettes/net/shipment/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 953, - "RecordedAt": "2022-08-30T15:39:23.05934-06:00", + "Duration": 673, + "RecordedAt": "2022-09-07T14:54:00.965987-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,28 +16,28 @@ "Uri": "https://api.easypost.com/v2/shipments?page_size=5" }, "Response": { - "Body": "{\"shipments\":[{\"created_at\":\"2022-08-30T21:39:19Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135657955\",\"updated_at\":\"2022-08-30T21:39:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_340d29df28ac11ed91e0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5a0618db53a4431c8661ce955966c7b0\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_e9509708d5044eb9a817b5ac47c4a923\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39:19Z\",\"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/20220830/0b151c34f904411d8d9ff3cbdcaa906c.png\",\"label_pdf_url\":null,\"label_zpl_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20220830/186197bbca3746bd8aadc42422747a69.zpl\",\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_956b0f49fe1c406a8cc60218cf1ccb22\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_cc51a96d559c4ce6939c3dc7f3059f97\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2fe2d3cd4a5a4e1c8389f2d3ac23836c\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ab96c8df948d489e9ea3bcac52833894\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_ab96c8df948d489e9ea3bcac52833894\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_5a1c0072c6f14844bdea5fda62e96278\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135657955\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:39:20Z\",\"updated_at\":\"2022-08-30T21:39:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:39:20Z\",\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:39:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:16:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzVhMWMwMDcyYzZmMTQ4NDRiZGVhNWZkYTYyZTk2Mjc4\"},\"to_address\":{\"id\":\"adr_340b586128ac11ed8463ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_340d29df28ac11ed91e0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_340b586128ac11ed8463ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"object\":\"Shipment\"},{\"created_at\":\"2022-08-29T22:52:47Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"delivered\",\"tracking_code\":\"9400100109361135567261\",\"updated_at\":\"2022-08-29T22:57:30Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4d5ccb7427ed11edb7a9ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:47-06:00\",\"updated_at\":\"2022-08-29T16:52:47-06:00\",\"name\":\"Elizabeth Swan\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_4860b54d6b2a40aaaf93232f9b7f405b\",\"object\":\"Parcel\",\"created_at\":\"2022-08-29T22:52:47Z\",\"updated_at\":\"2022-08-29T22:52:47Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_a6bb99d11abd4d68b7d650bfb62a5629\",\"created_at\":\"2022-08-29T22:52:48Z\",\"updated_at\":\"2022-08-29T22:52:48Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-29T22:52: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/20220829/0e2e894d09f6423db9ba2f0f0eedf69b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_b38cfe0cc599420daecf07609066cf8a\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:48Z\",\"updated_at\":\"2022-08-29T22:52:48Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_b5a7603fe0944f25b7fdc65f8680d189\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_de7b655c2b1f468d981f57a577de9d15\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:48Z\",\"updated_at\":\"2022-08-29T22:52:48Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_b5a7603fe0944f25b7fdc65f8680d189\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_48013686732a4efaa2deca39e34ca47f\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:48Z\",\"updated_at\":\"2022-08-29T22:52:48Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b5a7603fe0944f25b7fdc65f8680d189\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0c390fe3eb4a4f68bc4c9b1b86b42a69\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:48Z\",\"updated_at\":\"2022-08-29T22:52:48Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b5a7603fe0944f25b7fdc65f8680d189\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_fdd8bdf582234dae982e855827efcd55\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:48Z\",\"updated_at\":\"2022-08-29T22:52:48Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_b5a7603fe0944f25b7fdc65f8680d189\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_1ad065aac8ff4c43b76d143882eed8e1\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135567261\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-08-29T22:52:48Z\",\"updated_at\":\"2022-08-29T22:55:49Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-08-29T22:55:48Z\",\"shipment_id\":\"shp_b5a7603fe0944f25b7fdc65f8680d189\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-29T22:55:48Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T11:32:48Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-30T21:37:48Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-31T23:13:48Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-01T02:04:48Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-01T07:44:48Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-01T07:54:48Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-08-01T12:46:48Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-08-01T12:46:48Z\"},\"public_url\":\"https://track.easypost.com/djE6dHJrXzFhZDA2NWFhYzhmZjRjNDNiNzZkMTQzODgyZWVkOGUx\"},\"to_address\":{\"id\":\"adr_4d5b187b27ed11ed8222ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:47-06:00\",\"updated_at\":\"2022-08-29T16:52:47-06: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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_4d5ccb7427ed11edb7a9ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:47-06:00\",\"updated_at\":\"2022-08-29T16:52:47-06:00\",\"name\":\"Elizabeth Swan\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_4d5b187b27ed11ed8222ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:47-06:00\",\"updated_at\":\"2022-08-29T16:52:47-06: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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b5a7603fe0944f25b7fdc65f8680d189\",\"object\":\"Shipment\"},{\"created_at\":\"2022-08-29T22:52:44Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"delivered\",\"tracking_code\":\"9400100109361135567254\",\"updated_at\":\"2022-08-29T22:57:14Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4b6c758627ed11edb73fac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:44-06:00\",\"updated_at\":\"2022-08-29T16:52:44-06:00\",\"name\":\"Elizabeth Swan\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5ff7a7c792fd461e982cdbe6138c101b\",\"object\":\"Parcel\",\"created_at\":\"2022-08-29T22:52:44Z\",\"updated_at\":\"2022-08-29T22:52:44Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_a11d94aaff284a5c87b03fa4cc9fefc1\",\"created_at\":\"2022-08-29T22:52:44Z\",\"updated_at\":\"2022-08-29T22:52:45Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-29T22:52:44Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220829/1374aab29bcf413f83a1f589462e2c87.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_3a87281b480e4bdcaa6bd1869d7db491\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:44Z\",\"updated_at\":\"2022-08-29T22:52:44Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_ab984246c81a4b2ba16d764e21898ef9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a50c073d3cb247f6ab3ee02091fc4d56\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:44Z\",\"updated_at\":\"2022-08-29T22:52:44Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_ab984246c81a4b2ba16d764e21898ef9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5d353ae275914583bba2b1770afea18d\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:44Z\",\"updated_at\":\"2022-08-29T22:52:44Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ab984246c81a4b2ba16d764e21898ef9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c7ab6a3f927a4fb1a43de504dff96a79\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:44Z\",\"updated_at\":\"2022-08-29T22:52:44Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_ab984246c81a4b2ba16d764e21898ef9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":\"submitted\",\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_c7ab6a3f927a4fb1a43de504dff96a79\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:44Z\",\"updated_at\":\"2022-08-29T22:52:44Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_ab984246c81a4b2ba16d764e21898ef9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_74db714fcfcc48c29b24844f6d569069\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135567254\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-08-29T22:52:45Z\",\"updated_at\":\"2022-08-29T22:55:45Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-08-29T22:55:45Z\",\"shipment_id\":\"shp_ab984246c81a4b2ba16d764e21898ef9\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-29T22:55:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T11:32:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-30T21:37:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-31T23:13:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-01T02:04:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-01T07:44:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-01T07:54:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-08-01T12:46:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-08-01T12:46:45Z\"},\"public_url\":\"https://track.easypost.com/djE6dHJrXzc0ZGI3MTRmY2ZjYzQ4YzI5YjI0ODQ0ZjZkNTY5MDY5\"},\"to_address\":{\"id\":\"adr_4b6acd6b27ed11ed99b5ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:44-06:00\",\"updated_at\":\"2022-08-29T16:52:44-06: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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_4b6c758627ed11edb73fac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:44-06:00\",\"updated_at\":\"2022-08-29T16:52:44-06:00\",\"name\":\"Elizabeth Swan\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_4b6acd6b27ed11ed99b5ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:44-06:00\",\"updated_at\":\"2022-08-29T16:52:44-06: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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_ab984246c81a4b2ba16d764e21898ef9\",\"object\":\"Shipment\"},{\"created_at\":\"2022-08-29T22:52:42Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"delivered\",\"tracking_code\":\"9400100109361135567247\",\"updated_at\":\"2022-08-29T22:56:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4a7c4e9427ed11edb711ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:42-06:00\",\"updated_at\":\"2022-08-29T16:52:42-06:00\",\"name\":\"Elizabeth Swan\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_dd1ff956b0a64d189839d2b3c9b09ee2\",\"object\":\"Parcel\",\"created_at\":\"2022-08-29T22:52:42Z\",\"updated_at\":\"2022-08-29T22:52:42Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_80949c946c04485abec8d1c5c1fe320f\",\"created_at\":\"2022-08-29T22:52:43Z\",\"updated_at\":\"2022-08-29T22:52:43Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-29T22:52: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/20220829/803880b2fae74b65ae290f66b33b8e85.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_f474177784164e848d6093a0d68e86fc\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:43Z\",\"updated_at\":\"2022-08-29T22:52:43Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_6d478a2b447f4a1d89309622e7edcec2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7bbaf9181bc14082b40f078323e4b44b\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:43Z\",\"updated_at\":\"2022-08-29T22:52:43Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_6d478a2b447f4a1d89309622e7edcec2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b11adb1725d94a46b0fff7b701a427f2\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:43Z\",\"updated_at\":\"2022-08-29T22:52:43Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_6d478a2b447f4a1d89309622e7edcec2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_37ac9326f62e4434ac34b236a1e65cb4\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:43Z\",\"updated_at\":\"2022-08-29T22:52:43Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_6d478a2b447f4a1d89309622e7edcec2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_37ac9326f62e4434ac34b236a1e65cb4\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:43Z\",\"updated_at\":\"2022-08-29T22:52:43Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_6d478a2b447f4a1d89309622e7edcec2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_b1e298eb9e3b4d5eb1b38b60400cbb1f\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135567247\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-08-29T22:52:44Z\",\"updated_at\":\"2022-08-29T22:55:44Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-08-29T22:55:44Z\",\"shipment_id\":\"shp_6d478a2b447f4a1d89309622e7edcec2\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-29T22:55:44Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T11:32:44Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-30T21:37:44Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-31T23:13:44Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-01T02:04:44Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-01T07:44:44Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-01T07:54:44Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-08-01T12:46:44Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-08-01T12:46:44Z\"},\"public_url\":\"https://track.easypost.com/djE6dHJrX2IxZTI5OGViOWUzYjRkNWViMWIzOGI2MDQwMGNiYjFm\"},\"to_address\":{\"id\":\"adr_4a7a582b27ed11ed817cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:42-06:00\",\"updated_at\":\"2022-08-29T16:52:43-06: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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_4a7c4e9427ed11edb711ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:42-06:00\",\"updated_at\":\"2022-08-29T16:52:42-06:00\",\"name\":\"Elizabeth Swan\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_4a7a582b27ed11ed817cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:42-06:00\",\"updated_at\":\"2022-08-29T16:52:43-06: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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_6d478a2b447f4a1d89309622e7edcec2\",\"object\":\"Shipment\"},{\"created_at\":\"2022-08-29T22:52:40Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"delivered\",\"tracking_code\":\"9400100109361135567230\",\"updated_at\":\"2022-08-29T22:57:26Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_48fee10f27ed11ed9922ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:40-06:00\",\"updated_at\":\"2022-08-29T16:52:40-06:00\",\"name\":\"Elizabeth Swan\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_db8d319608094feb851a49f464a3fc7e\",\"object\":\"Parcel\",\"created_at\":\"2022-08-29T22:52:40Z\",\"updated_at\":\"2022-08-29T22:52:40Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_a42e572f3da04038bfc93a8871cde7ff\",\"created_at\":\"2022-08-29T22:52:40Z\",\"updated_at\":\"2022-08-29T22:52:41Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-29T22:52:40Z\",\"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/20220829/83c70c54de9a41b6b536d7c4caf16ede.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_0c8a45fca13a4e078d9b9d72bcc395fb\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:40Z\",\"updated_at\":\"2022-08-29T22:52:40Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_987c4570737544ef8fdd30772244f9c1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b64109bc5c544619a00bf0be8c9fad1a\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:40Z\",\"updated_at\":\"2022-08-29T22:52:40Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_987c4570737544ef8fdd30772244f9c1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_73642e6c68104b2caa84f1470b16efc5\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:40Z\",\"updated_at\":\"2022-08-29T22:52:40Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_987c4570737544ef8fdd30772244f9c1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c9eb17b867ee43fea78d27fa79f344d0\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:40Z\",\"updated_at\":\"2022-08-29T22:52:40Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_987c4570737544ef8fdd30772244f9c1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_73642e6c68104b2caa84f1470b16efc5\",\"object\":\"Rate\",\"created_at\":\"2022-08-29T22:52:40Z\",\"updated_at\":\"2022-08-29T22:52:40Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_987c4570737544ef8fdd30772244f9c1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_d350edf9f81e49ec82b00eea1017aa20\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135567230\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-08-29T22:52:41Z\",\"updated_at\":\"2022-08-29T22:55:41Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-08-29T22:55:41Z\",\"shipment_id\":\"shp_987c4570737544ef8fdd30772244f9c1\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-29T22:55:41Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T11:32:41Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-30T21:37:41Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-31T23:13:41Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-01T02:04:41Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-01T07:44:41Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-01T07:54:41Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-08-01T12:46:41Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-08-01T12:46:41Z\"},\"public_url\":\"https://track.easypost.com/djE6dHJrX2QzNTBlZGY5ZjgxZTQ5ZWM4MmIwMGVlYTEwMTdhYTIw\"},\"to_address\":{\"id\":\"adr_48fd36c027ed11ed811fac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:40-06:00\",\"updated_at\":\"2022-08-29T16:52:40-06: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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_48fee10f27ed11ed9922ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:40-06:00\",\"updated_at\":\"2022-08-29T16:52:40-06:00\",\"name\":\"Elizabeth Swan\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_48fd36c027ed11ed811fac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:40-06:00\",\"updated_at\":\"2022-08-29T16:52:40-06: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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_987c4570737544ef8fdd30772244f9c1\",\"object\":\"Shipment\"}],\"has_more\":true}", + "Body": "{\"shipments\":[{\"created_at\":\"2022-09-07T20:53:58Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477873\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3192ffca2eef11ed9895ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_477da2ad7e47441f87626bc678d253bb\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_8b0f2563ea354610b3023c5fc512f9f1\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/0afe5f5f57b64b81b0105a1aad201aa5.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9f9f121d63fc4ced96bec37beb2ff085\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0c7cbe05c2934dee999d132dfd80319f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f0482fd1ecb24fcabac41c8cfa17f448\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0c7cbe05c2934dee999d132dfd80319f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fb520f5736ec4684a0634fb1ae269759\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_0c7cbe05c2934dee999d132dfd80319f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_df6b7c1d876c4b63a9d8c0eca068d344\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_0c7cbe05c2934dee999d132dfd80319f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f0482fd1ecb24fcabac41c8cfa17f448\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0c7cbe05c2934dee999d132dfd80319f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_a9efc71fa60b4da9a50c2f70cb73d201\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477873\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:59Z\",\"shipment_id\":\"shp_0c7cbe05c2934dee999d132dfd80319f\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2E5ZWZjNzFmYTYwYjRkYTlhNTBjMmY3MGNiNzNkMjAx\"},\"to_address\":{\"id\":\"adr_319143682eef11eda098ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3192ffca2eef11ed9895ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_319143682eef11eda098ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:58-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_0c7cbe05c2934dee999d132dfd80319f\",\"object\":\"Shipment\"},{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477866\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"batch_id\":\"batch_8b5d36e64e024bdf967e0e6b9ee42234\",\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_41b7c45d0eaf400cac9a2f117bfd6e0d\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_eaf0505e23c44d058dc526462d58ad30\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/88c8e41c1df840f3b18f4a214367bcfe.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_332e6431bff045a497bb3e5ad3c34f4b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_29eb5d68862046f38d19fbbf06b8a04e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_81965b4a593b4a90946d5cd20956e613\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_609ab8bfbbc94e31821d55efd0c20b18\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":{\"id\":\"sf_7b526727dffa45ccbcab334a712214a0\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"tracking_codes\":[\"9400100109361136477866\"],\"address\":{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/776bd5d92dbb4fc5b9f5bf175f7c295c.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_8b5d36e64e024bdf967e0e6b9ee42234\",\"confirmation\":null},\"selected_rate\":{\"id\":\"rate_332e6431bff045a497bb3e5ad3c34f4b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_80205a1e339b4be89d52129d5c06c9a0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477866\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:59Z\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzgwMjA1YTFlMzM5YjRiZTg5ZDUyMTI5ZDVjMDZjOWEw\"},\"to_address\":{\"id\":\"adr_3164862d2eef11ed987eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3164862d2eef11ed987eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"object\":\"Shipment\"},{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477859\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3166c2082eef11ed8fd1ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_3e3b67fcb44a4b5583c8364b0dffe820\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_58e59d90ef4d4b55a87b8bdab505cffb\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/f8ca98fea87a4173b4a9dbe1fb18c939.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_0de172aab00f4c0b822ba9f2ce180d37\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b0d6041253554fcfb3ed113101b30e30\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ad704186b9b447c3bf955ec6bbaf6dae\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d2ffc799094d4d08a0497db036b5a49a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_0de172aab00f4c0b822ba9f2ce180d37\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_1d11796bc97d419ca61de49a61b5c1d4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477859\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:59Z\",\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzFkMTE3OTZiYzk3ZDQxOWNhNjFkZTQ5YTYxYjVjMWQ0\"},\"to_address\":{\"id\":\"adr_316468a22eef11eda086ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3166c2082eef11ed8fd1ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_316468a22eef11eda086ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"object\":\"Shipment\"},{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477842\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3166e1072eef11eda089ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_872f329d3d234f41b88bc61d98d92760\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_af3cc08c116f4048ab2a145c6f3b0393\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/2be5fe45f6224b9c82f21c317e2a0885.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c58cd0e59ebc4c87929a4ee6d5c450f2\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3cd6a57c8786461da7d02ce828ab439a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_51931ba95a65472588d7f2ef44579de4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_40a430ea4f42451aa78572403596c8ad\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":\"submitted\",\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_51931ba95a65472588d7f2ef44579de4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_88fb1b98c67f4844986566ca21fd4346\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477842\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:58Z\",\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:58Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:58Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzg4ZmIxYjk4YzY3ZjQ4NDQ5ODY1NjZjYTIxZmQ0MzQ2\"},\"to_address\":{\"id\":\"adr_316495352eef11ed987fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3166e1072eef11eda089ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_316495352eef11ed987fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\",\"object\":\"Shipment\"},{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477835\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3126bf592eef11eda06cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_739956e5a34943d0a822b655758bce7b\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_b5e50b73b1a1496bbb665ba37e7a2af5\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:54:00Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/a283a74c840e4218a13004e479c580be.png\",\"label_pdf_url\":null,\"label_zpl_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20220907/2742a1c9e418452c89c592d4e35f21ca.zpl\",\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e50454bb697e47a4b283270dd22c53d3\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_df1bee1ef2c249fdb09687df35dbef7e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_387ce8e4e5204fad8a367202ca474e36\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_cbc59e798bb3472a9eab181d64d7d924\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_387ce8e4e5204fad8a367202ca474e36\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_07ce9892b17d4a1fb1c14679c6bef98a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477835\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:58Z\",\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:58Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:58Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzA3Y2U5ODkyYjE3ZDRhMWZiMWMxNDY3OWM2YmVmOThh\"},\"to_address\":{\"id\":\"adr_312465bf2eef11eda069ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3126bf592eef11eda06cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_312465bf2eef11eda069ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"object\":\"Shipment\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "49141" + "Content-Length": "41550" }, "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b2630e838ae788d49a001346da", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a25631904e8e799fa65002e0d8f", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"f852db6bc8e9be2c47f71b07c4489760\"", - "x-runtime": "0.637906", + "ETag": "W/\"f05cd790213e27aee6b0bbdb2c61a343\"", + "x-runtime": "0.407121", "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/shipment/buy.json b/EasyPost.Tests/cassettes/net/shipment/buy.json index bfaf61410..e6566b446 100644 --- a/EasyPost.Tests/cassettes/net/shipment/buy.json +++ b/EasyPost.Tests/cassettes/net/shipment/buy.json @@ -1,7 +1,7 @@ [ { - "Duration": 790, - "RecordedAt": "2022-08-30T15:39:25.856938-06:00", + "Duration": 873, + "RecordedAt": "2022-09-07T14:54:04.360134-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:25Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:39:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b5f7fbb27cd14719bcaf8de38c78d696\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_2b95c3a9835048d8ba8373a86808eae9\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_37e140cb28ac11ed92ffac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:25-06:00\",\"updated_at\":\"2022-08-30T15:39:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_175d1b6ccf7148c583f7936304625c69\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_e69b27fb1ead44b2aeb0ea39a13042ff\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f79c039818de43b8855a22d939808dab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_46177f4d11ad4e04a1189dfc4cc24c43\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f79c039818de43b8855a22d939808dab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_59fb18cc0c734cad9a9b0f16a41736cb\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f79c039818de43b8855a22d939808dab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_79e842cc8cca4c5fb63af9d0e85e7942\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f79c039818de43b8855a22d939808dab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_37dea15028ac11edbf0eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:25-06:00\",\"updated_at\":\"2022-08-30T15:39:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_37e140cb28ac11ed92ffac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:25-06:00\",\"updated_at\":\"2022-08-30T15:39:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_37dea15028ac11edbf0eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:25-06:00\",\"updated_at\":\"2022-08-30T15:39:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_f79c039818de43b8855a22d939808dab\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:03Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T20:54:04Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_51be42545ccf4f58b73a2e1dc1b94716\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:54:03Z\",\"updated_at\":\"2022-09-07T20:54:03Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_1977aeefc8824a129f1d97b19d6cca07\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:54:03Z\",\"updated_at\":\"2022-09-07T20:54:03Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_34ee1ff62eef11ed9a0bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:03-06:00\",\"updated_at\":\"2022-09-07T14:54:03-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_c3d57a90ef924779908b03ba7e7976f3\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:03Z\",\"updated_at\":\"2022-09-07T20:54:03Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_c687f693c77a40cfba061ae138964808\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:04Z\",\"updated_at\":\"2022-09-07T20:54:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f78aafce8ed94e79954823cef8e3568a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:04Z\",\"updated_at\":\"2022-09-07T20:54:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9fab8d7d2b0c4bbe844f0a3c52ebce63\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:04Z\",\"updated_at\":\"2022-09-07T20:54:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3b4d387bdea841da8092e50f971e6d1f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:04Z\",\"updated_at\":\"2022-09-07T20:54:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_34ec71272eef11edb745ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:03-06:00\",\"updated_at\":\"2022-09-07T14:54:03-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_34ee1ff62eef11ed9a0bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:03-06:00\",\"updated_at\":\"2022-09-07T14:54:03-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_34ec71272eef11edb745ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:03-06:00\",\"updated_at\":\"2022-09-07T14:54:03-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,19 +29,19 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e838de788d49d001347d1", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a26631904ebe799fa83002e0e83", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_f79c039818de43b8855a22d939808dab", - "ETag": "W/\"0eb9422d372f480c9723ba98841d221b\"", - "x-runtime": "0.455566", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_06bd6e6a5d8e44349108566b31b9aac0", + "ETag": "W/\"3feed1cc82833687a8ea4428d8797477\"", + "x-runtime": "0.627028", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,10 +53,10 @@ } }, { - "Duration": 923, - "RecordedAt": "2022-08-30T15:39:26.807874-06:00", + "Duration": 870, + "RecordedAt": "2022-09-07T14:54:05.252527-06:00", "Request": { - "Body": "{\"rate\":{\"id\":\"rate_79e842cc8cca4c5fb63af9d0e85e7942\"},\"insurance\":\"\",\"carbon_offset\":false}", + "Body": "{\"rate\":{\"id\":\"rate_3b4d387bdea841da8092e50f971e6d1f\"},\"insurance\":\"\",\"carbon_offset\":false}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_f79c039818de43b8855a22d939808dab/buy" + "Uri": "https://api.easypost.com/v2/shipments/shp_06bd6e6a5d8e44349108566b31b9aac0/buy" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:25Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361135657979\",\"updated_at\":\"2022-08-30T21:39:26Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b5f7fbb27cd14719bcaf8de38c78d696\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_2b95c3a9835048d8ba8373a86808eae9\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_37e140cb28ac11ed92ffac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:25-06:00\",\"updated_at\":\"2022-08-30T15:39:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_175d1b6ccf7148c583f7936304625c69\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_707b0e85606043839176021143113073\",\"created_at\":\"2022-08-30T21:39:26Z\",\"updated_at\":\"2022-08-30T21:39:26Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39: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/20220830/95382717f222409f9a47fba581435050.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e69b27fb1ead44b2aeb0ea39a13042ff\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f79c039818de43b8855a22d939808dab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_46177f4d11ad4e04a1189dfc4cc24c43\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f79c039818de43b8855a22d939808dab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_59fb18cc0c734cad9a9b0f16a41736cb\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f79c039818de43b8855a22d939808dab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_79e842cc8cca4c5fb63af9d0e85e7942\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f79c039818de43b8855a22d939808dab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_79e842cc8cca4c5fb63af9d0e85e7942\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:26Z\",\"updated_at\":\"2022-08-30T21:39:26Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f79c039818de43b8855a22d939808dab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_3e16f56362994669a9e8d0b0aa524a91\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135657979\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:39:26Z\",\"updated_at\":\"2022-08-30T21:39:26Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f79c039818de43b8855a22d939808dab\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzNlMTZmNTYzNjI5OTQ2NjlhOWU4ZDBiMGFhNTI0YTkx\"},\"to_address\":{\"id\":\"adr_37dea15028ac11edbf0eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:25-06:00\",\"updated_at\":\"2022-08-30T15:39:26-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_37e140cb28ac11ed92ffac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:25-06:00\",\"updated_at\":\"2022-08-30T15:39:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_37dea15028ac11edbf0eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:25-06:00\",\"updated_at\":\"2022-08-30T15:39:26-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f79c039818de43b8855a22d939808dab\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:03Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477910\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_51be42545ccf4f58b73a2e1dc1b94716\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:54:03Z\",\"updated_at\":\"2022-09-07T20:54:03Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_1977aeefc8824a129f1d97b19d6cca07\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:54:03Z\",\"updated_at\":\"2022-09-07T20:54:03Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_34ee1ff62eef11ed9a0bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:03-06:00\",\"updated_at\":\"2022-09-07T14:54:03-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_c3d57a90ef924779908b03ba7e7976f3\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:03Z\",\"updated_at\":\"2022-09-07T20:54:03Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_27f9e9b9579044b9ac15cff7892b39b1\",\"created_at\":\"2022-09-07T20:54:04Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:54:04Z\",\"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/20220907/34f4470fb7834af89d795a17699eee43.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c687f693c77a40cfba061ae138964808\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:04Z\",\"updated_at\":\"2022-09-07T20:54:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f78aafce8ed94e79954823cef8e3568a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:04Z\",\"updated_at\":\"2022-09-07T20:54:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9fab8d7d2b0c4bbe844f0a3c52ebce63\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:04Z\",\"updated_at\":\"2022-09-07T20:54:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3b4d387bdea841da8092e50f971e6d1f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:04Z\",\"updated_at\":\"2022-09-07T20:54:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3b4d387bdea841da8092e50f971e6d1f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_0d40ee0226d64537891c8955d5411262\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477910\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzBkNDBlZTAyMjZkNjQ1Mzc4OTFjODk1NWQ1NDExMjYy\"},\"to_address\":{\"id\":\"adr_34ec71272eef11edb745ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:03-06:00\",\"updated_at\":\"2022-09-07T14:54:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_34ee1ff62eef11ed9a0bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:03-06:00\",\"updated_at\":\"2022-09-07T14:54:03-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_34ec71272eef11edb745ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:03-06:00\",\"updated_at\":\"2022-09-07T14:54:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_06bd6e6a5d8e44349108566b31b9aac0\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,18 +82,18 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e838ee788d49d00134803", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a26631904ece799fa83002e0eb9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"461c41edab91d989195ad9c44fd4f1b8\"", - "x-runtime": "0.853552", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"5b5212ff01c613db17ac1bf65ee1afaa\"", + "x-runtime": "0.800202", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/shipment/buy_shipment_with_carbon_offset.json b/EasyPost.Tests/cassettes/net/shipment/buy_shipment_with_carbon_offset.json index 930b560ad..e9b5e9946 100644 --- a/EasyPost.Tests/cassettes/net/shipment/buy_shipment_with_carbon_offset.json +++ b/EasyPost.Tests/cassettes/net/shipment/buy_shipment_with_carbon_offset.json @@ -1,7 +1,7 @@ [ { - "Duration": 905, - "RecordedAt": "2022-08-30T15:39:35.485893-06:00", + "Duration": 839, + "RecordedAt": "2022-09-07T14:54:14.197661-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Dr. Steve Brule\",\"street1\":\"179 N Harbor Dr\",\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:35Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:39:35Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_08223b4b495746ac9b1e39d4aa1dee2e\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_0e4be116e56049d4b4597f462d3af8d7\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3d8e9d5b28ac11ed9477ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_bc673e1e9f7f47aebd4ff02e371032bd\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_a8423f9a278c4d738d4b4dac411647ed\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f13dfede20b2463eb4e4aa20e2e27d74\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_77ab40e58e0b403dbde09eae9d7234b6\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f73577a9f57a43dcad19bc61d6a7d096\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3d8cfe7328ac11ed8076ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:35-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_3d8e9d5b28ac11ed9477ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3d8cfe7328ac11ed8076ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:35-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_c03459adb88944f7a64d550cee464789\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:13Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T20:54:14Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_bcf5a504c31d41f4becde5ee02e38702\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:54:13Z\",\"updated_at\":\"2022-09-07T20:54:13Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_c43e9ac77ddd4c2cba76d88732eabd84\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:54:13Z\",\"updated_at\":\"2022-09-07T20:54:13Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3ad323b02eef11eda4b2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:13-06:00\",\"updated_at\":\"2022-09-07T14:54:13-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7e17f137c41546ee8a2c9c2ec271f6a6\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:13Z\",\"updated_at\":\"2022-09-07T20:54:13Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_da3f4f6f05924d89a8a68022c4934b1c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:14Z\",\"updated_at\":\"2022-09-07T20:54:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_08e5d654e0e64cc189bd6f9d1103ced5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:14Z\",\"updated_at\":\"2022-09-07T20:54:14Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bdbe52c8f32d4042897ec97b67906230\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:14Z\",\"updated_at\":\"2022-09-07T20:54:14Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f617d42654f446f7acdd86705a25b3a8\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:14Z\",\"updated_at\":\"2022-09-07T20:54:14Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3ad0bece2eef11ed9c8fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:13-06:00\",\"updated_at\":\"2022-09-07T14:54:13-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_3ad323b02eef11eda4b2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:13-06:00\",\"updated_at\":\"2022-09-07T14:54:13-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3ad0bece2eef11ed9c8fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:13-06:00\",\"updated_at\":\"2022-09-07T14:54:13-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,19 +29,19 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b5630e8397e788d4bc00134b2e", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2b631904f5e799faa4002e12c3", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_c03459adb88944f7a64d550cee464789", - "ETag": "W/\"2fd9e88d8585cb7611954bbd086ee8a8\"", - "x-runtime": "0.505898", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_919ebc793bf64e0eaa90eb86cf290fc1", + "ETag": "W/\"c53b2705816c1ef182140a2ef99e17a1\"", + "x-runtime": "0.579734", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,10 +53,10 @@ } }, { - "Duration": 130, - "RecordedAt": "2022-08-30T15:39:36.638671-06:00", + "Duration": 197, + "RecordedAt": "2022-09-07T14:54:15.416072-06:00", "Request": { - "Body": "{\"rate\":{\"id\":\"rate_f73577a9f57a43dcad19bc61d6a7d096\"},\"insurance\":\"\",\"carbon_offset\":true}", + "Body": "{\"rate\":{\"id\":\"rate_da3f4f6f05924d89a8a68022c4934b1c\"},\"insurance\":\"\",\"carbon_offset\":true}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_c03459adb88944f7a64d550cee464789/buy" + "Uri": "https://api.easypost.com/v2/shipments/shp_919ebc793bf64e0eaa90eb86cf290fc1/buy" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:35Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361135657993\",\"updated_at\":\"2022-08-30T21:39:36Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_08223b4b495746ac9b1e39d4aa1dee2e\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_0e4be116e56049d4b4597f462d3af8d7\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3d8e9d5b28ac11ed9477ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_bc673e1e9f7f47aebd4ff02e371032bd\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_11f6d0cb1a174596a7d4c370b9955983\",\"created_at\":\"2022-08-30T21:39:36Z\",\"updated_at\":\"2022-08-30T21:39:36Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39: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/20220830/1f17cdd1cf2f4635a8657e9cda68f200.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_a8423f9a278c4d738d4b4dac411647ed\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_f13dfede20b2463eb4e4aa20e2e27d74\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_77ab40e58e0b403dbde09eae9d7234b6\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_f73577a9f57a43dcad19bc61d6a7d096\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f73577a9f57a43dcad19bc61d6a7d096\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:36Z\",\"updated_at\":\"2022-08-30T21:39:36Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ca34471ac651430bb9a597d976455d68\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135657993\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:39:36Z\",\"updated_at\":\"2022-08-30T21:39:36Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2NhMzQ0NzFhYzY1MTQzMGJiOWE1OTdkOTc2NDU1ZDY4\"},\"to_address\":{\"id\":\"adr_3d8cfe7328ac11ed8076ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:36-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_3d8e9d5b28ac11ed9477ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3d8cfe7328ac11ed8076ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:36-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c03459adb88944f7a64d550cee464789\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:13Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477965\",\"updated_at\":\"2022-09-07T20:54:15Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_bcf5a504c31d41f4becde5ee02e38702\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:54:13Z\",\"updated_at\":\"2022-09-07T20:54:13Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_c43e9ac77ddd4c2cba76d88732eabd84\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:54:13Z\",\"updated_at\":\"2022-09-07T20:54:13Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3ad323b02eef11eda4b2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:13-06:00\",\"updated_at\":\"2022-09-07T14:54:13-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7e17f137c41546ee8a2c9c2ec271f6a6\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:13Z\",\"updated_at\":\"2022-09-07T20:54:13Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0a0987f13400490caf14aed20489135a\",\"created_at\":\"2022-09-07T20:54:15Z\",\"updated_at\":\"2022-09-07T20:54:15Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:54:15Z\",\"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/20220907/8e9d39f9a122415183a5049852cbb5f2.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_da3f4f6f05924d89a8a68022c4934b1c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:14Z\",\"updated_at\":\"2022-09-07T20:54:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_08e5d654e0e64cc189bd6f9d1103ced5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:14Z\",\"updated_at\":\"2022-09-07T20:54:14Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_bdbe52c8f32d4042897ec97b67906230\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:14Z\",\"updated_at\":\"2022-09-07T20:54:14Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_f617d42654f446f7acdd86705a25b3a8\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:14Z\",\"updated_at\":\"2022-09-07T20:54:14Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_da3f4f6f05924d89a8a68022c4934b1c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:15Z\",\"updated_at\":\"2022-09-07T20:54:15Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_caa979d7e709454a897f16e7bea26b6b\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477965\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:54:15Z\",\"updated_at\":\"2022-09-07T20:54:15Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2NhYTk3OWQ3ZTcwOTQ1NGE4OTdmMTZlN2JlYTI2YjZi\"},\"to_address\":{\"id\":\"adr_3ad0bece2eef11ed9c8fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:13-06:00\",\"updated_at\":\"2022-09-07T14:54:14-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_3ad323b02eef11eda4b2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:13-06:00\",\"updated_at\":\"2022-09-07T14:54:13-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3ad0bece2eef11ed9c8fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:13-06:00\",\"updated_at\":\"2022-09-07T14:54:14-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_919ebc793bf64e0eaa90eb86cf290fc1\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,20 +82,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b5630e8397e788d4bc00134b5b", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2b631904f6e799faa4002e12f9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"da5eefef7d313767e0126124a49aa0b0\"", - "x-runtime": "1.057624", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"4fcf4c7ea09cbac3321d9c362dceb58a\"", + "x-runtime": "1.122051", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/shipment/convert_label.json b/EasyPost.Tests/cassettes/net/shipment/convert_label.json index 7ae6a49c0..08cbc10f4 100644 --- a/EasyPost.Tests/cassettes/net/shipment/convert_label.json +++ b/EasyPost.Tests/cassettes/net/shipment/convert_label.json @@ -1,7 +1,7 @@ [ { - "Duration": 493, - "RecordedAt": "2022-08-30T15:39:20.138655-06:00", + "Duration": 263, + "RecordedAt": "2022-09-07T14:53:58.403337-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:19Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135657955\",\"updated_at\":\"2022-08-30T21:39:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_340d29df28ac11ed91e0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5a0618db53a4431c8661ce955966c7b0\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_e9509708d5044eb9a817b5ac47c4a923\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:20Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39:19Z\",\"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/20220830/0b151c34f904411d8d9ff3cbdcaa906c.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_956b0f49fe1c406a8cc60218cf1ccb22\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_cc51a96d559c4ce6939c3dc7f3059f97\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2fe2d3cd4a5a4e1c8389f2d3ac23836c\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ab96c8df948d489e9ea3bcac52833894\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_ab96c8df948d489e9ea3bcac52833894\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_5a1c0072c6f14844bdea5fda62e96278\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135657955\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:39:20Z\",\"updated_at\":\"2022-08-30T21:39:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzVhMWMwMDcyYzZmMTQ4NDRiZGVhNWZkYTYyZTk2Mjc4\"},\"to_address\":{\"id\":\"adr_340b586128ac11ed8463ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_340d29df28ac11ed91e0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_340b586128ac11ed8463ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477835\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3126bf592eef11eda06cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_739956e5a34943d0a822b655758bce7b\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_b5e50b73b1a1496bbb665ba37e7a2af5\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/a283a74c840e4218a13004e479c580be.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e50454bb697e47a4b283270dd22c53d3\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_df1bee1ef2c249fdb09687df35dbef7e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_387ce8e4e5204fad8a367202ca474e36\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_cbc59e798bb3472a9eab181d64d7d924\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_387ce8e4e5204fad8a367202ca474e36\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_07ce9892b17d4a1fb1c14679c6bef98a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477835\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzA3Y2U5ODkyYjE3ZDRhMWZiMWMxNDY3OWM2YmVmOThh\"},\"to_address\":{\"id\":\"adr_312465bf2eef11eda069ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3126bf592eef11eda06cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_312465bf2eef11eda069ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,19 +29,19 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b4630e8387e788d482001345ad", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a27631904e5e799fa22002e0c71", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_f49ed376559a410fa15c4bc3bd7a94d7", - "ETag": "W/\"f2bcc4f625b5fac801f5c99b0f499356\"", - "x-runtime": "1.116047", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_bf981463344f43549ee3e6c2d15d6bcd", + "ETag": "W/\"e21759234f74a7181747a6000ae2a7bb\"", + "x-runtime": "1.009815", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 643, - "RecordedAt": "2022-08-30T15:39:21.871001-06:00", + "Duration": 713, + "RecordedAt": "2022-09-07T14:54:00.142693-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_f49ed376559a410fa15c4bc3bd7a94d7/label?file_format=ZPL" + "Uri": "https://api.easypost.com/v2/shipments/shp_bf981463344f43549ee3e6c2d15d6bcd/label?file_format=ZPL" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:19Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135657955\",\"updated_at\":\"2022-08-30T21:39:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_340d29df28ac11ed91e0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5a0618db53a4431c8661ce955966c7b0\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_e9509708d5044eb9a817b5ac47c4a923\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39:19Z\",\"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/20220830/0b151c34f904411d8d9ff3cbdcaa906c.png\",\"label_pdf_url\":null,\"label_zpl_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20220830/186197bbca3746bd8aadc42422747a69.zpl\",\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_956b0f49fe1c406a8cc60218cf1ccb22\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_cc51a96d559c4ce6939c3dc7f3059f97\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2fe2d3cd4a5a4e1c8389f2d3ac23836c\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ab96c8df948d489e9ea3bcac52833894\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_ab96c8df948d489e9ea3bcac52833894\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:19Z\",\"updated_at\":\"2022-08-30T21:39:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_5a1c0072c6f14844bdea5fda62e96278\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135657955\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:39:20Z\",\"updated_at\":\"2022-08-30T21:39:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:39:20Z\",\"shipment_id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:39:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:16:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzVhMWMwMDcyYzZmMTQ4NDRiZGVhNWZkYTYyZTk2Mjc4\"},\"to_address\":{\"id\":\"adr_340b586128ac11ed8463ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_340d29df28ac11ed91e0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_340b586128ac11ed8463ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:19-06:00\",\"updated_at\":\"2022-08-30T15:39:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f49ed376559a410fa15c4bc3bd7a94d7\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477835\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3126bf592eef11eda06cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_739956e5a34943d0a822b655758bce7b\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_b5e50b73b1a1496bbb665ba37e7a2af5\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:54:00Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/a283a74c840e4218a13004e479c580be.png\",\"label_pdf_url\":null,\"label_zpl_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20220907/2742a1c9e418452c89c592d4e35f21ca.zpl\",\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e50454bb697e47a4b283270dd22c53d3\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_df1bee1ef2c249fdb09687df35dbef7e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_387ce8e4e5204fad8a367202ca474e36\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_cbc59e798bb3472a9eab181d64d7d924\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_387ce8e4e5204fad8a367202ca474e36\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_07ce9892b17d4a1fb1c14679c6bef98a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477835\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:58Z\",\"shipment_id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:58Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:58Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzA3Y2U5ODkyYjE3ZDRhMWZiMWMxNDY3OWM2YmVmOThh\"},\"to_address\":{\"id\":\"adr_312465bf2eef11eda069ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3126bf592eef11eda06cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_312465bf2eef11eda069ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bf981463344f43549ee3e6c2d15d6bcd\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -79,20 +79,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b4630e8388e788d4820013461e", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a27631904e6e799fa22002e0cda", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"f951b226e76e97ead6b3909ec9db5eae\"", - "x-runtime": "1.539534", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"cdb657bac4b12ac42842b4d8552b638f\"", + "x-runtime": "1.624434", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/shipment/create.json b/EasyPost.Tests/cassettes/net/shipment/create.json index 9ebb80ea5..afb9e2b49 100644 --- a/EasyPost.Tests/cassettes/net/shipment/create.json +++ b/EasyPost.Tests/cassettes/net/shipment/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 407, - "RecordedAt": "2022-08-30T15:39:17.037033-06:00", + "Duration": 263, + "RecordedAt": "2022-09-07T14:53:56.309575-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:16Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:39:17Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_80f95605549e4ab39a9c4c1a0aac2177\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:39:16Z\",\"updated_at\":\"2022-08-30T21:39:16Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_6555474f36614b79a670cf0032c6f714\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:39:16Z\",\"updated_at\":\"2022-08-30T21:39:16Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_328aacb628ac11ed9157ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:16-06:00\",\"updated_at\":\"2022-08-30T15:39:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_3b4241495efc4dd89548c392bc596e6e\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:16Z\",\"updated_at\":\"2022-08-30T21:39:16Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_4004868a6aea4dee8b39cef369a91f76\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:16Z\",\"updated_at\":\"2022-08-30T21:39:16Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_81639c1d211f4ad1a0c134a7dd74ee40\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bdc45e290e0b4d7f91d0d2d1c4bce8a8\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:17Z\",\"updated_at\":\"2022-08-30T21:39:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_81639c1d211f4ad1a0c134a7dd74ee40\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_dbcbfb52f5454f37a81bdf3f325df56f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:17Z\",\"updated_at\":\"2022-08-30T21:39:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_81639c1d211f4ad1a0c134a7dd74ee40\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_55d9e8569a0a441a9788d46094353709\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:17Z\",\"updated_at\":\"2022-08-30T21:39:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_81639c1d211f4ad1a0c134a7dd74ee40\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3288fbc528ac11edbd5dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:16-06:00\",\"updated_at\":\"2022-08-30T15:39:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_328aacb628ac11ed9157ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:16-06:00\",\"updated_at\":\"2022-08-30T15:39:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3288fbc528ac11edbd5dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:16-06:00\",\"updated_at\":\"2022-08-30T15:39:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_81639c1d211f4ad1a0c134a7dd74ee40\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:53:55Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T20:53:56Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_6f947f3b34fb49ea97ed3d12b77ba969\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_7c23dbd2befd4546982d902b3c133d3b\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3007e28c2eef11ed8f33ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_44a5794232f04c88a7cdb75ffff964f3\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_25c13c5936bd4621a72e57071f0195dd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_03e601f3ab9e451093fec70179af4442\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e0994cbf098b4efb838734fc1cd19804\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_03e601f3ab9e451093fec70179af4442\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5966fdc44d854464b283fedb8374fae0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_03e601f3ab9e451093fec70179af4442\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d99d5d72ea034f7aaebe85d547c0c344\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_03e601f3ab9e451093fec70179af4442\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3005bec62eef11ed97d8ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3007e28c2eef11ed8f33ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3005bec62eef11ed97d8ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_03e601f3ab9e451093fec70179af4442\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,19 +29,19 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96af630e8384e788d47f001344db", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a25631904e3e799f6a7002e0b93", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_81639c1d211f4ad1a0c134a7dd74ee40", - "ETag": "W/\"759af273faf73f7b618e7c07b328a8d2\"", - "x-runtime": "0.502449", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_03e601f3ab9e451093fec70179af4442", + "ETag": "W/\"91859476c80ed7b9e687ad7ec82608a8\"", + "x-runtime": "0.797311", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/shipment/create_empty_objects.json b/EasyPost.Tests/cassettes/net/shipment/create_empty_objects.json index 3f89d4b9a..f5558bdae 100644 --- a/EasyPost.Tests/cassettes/net/shipment/create_empty_objects.json +++ b/EasyPost.Tests/cassettes/net/shipment/create_empty_objects.json @@ -1,7 +1,7 @@ [ { - "Duration": 833, - "RecordedAt": "2022-08-30T15:39:32.93724-06:00", + "Duration": 983, + "RecordedAt": "2022-09-07T14:54:11.543141-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"customs_items\":[]},\"options\":null,\"tax_identifiers\":null,\"reference\":\"\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:32Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:39:33Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_fec68e778cae4cb29636b070049e62e3\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:39:32Z\",\"updated_at\":\"2022-08-30T21:39:32Z\",\"contents_explanation\":null,\"contents_type\":\"merchandise\",\"customs_certify\":false,\"customs_signer\":null,\"eel_pfc\":null,\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_3c12d5f828ac11ed940bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:32-06:00\",\"updated_at\":\"2022-08-30T15:39:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_e06587b35be940e195d662aa8f9268f6\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:32Z\",\"updated_at\":\"2022-08-30T21:39:32Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_421c7e250051485d9cdad0ede6f7901a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:33Z\",\"updated_at\":\"2022-08-30T21:39:33Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f85e3407e7d9434980f1e4f115374040\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d97834251e5a45e3bddd5c60c2c126e5\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:33Z\",\"updated_at\":\"2022-08-30T21:39:33Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f85e3407e7d9434980f1e4f115374040\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5a2c0a6684bc418aa1c20bbe7e23c12e\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:33Z\",\"updated_at\":\"2022-08-30T21:39:33Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f85e3407e7d9434980f1e4f115374040\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ce59094e2ea5489a909043fd79424f06\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:33Z\",\"updated_at\":\"2022-08-30T21:39:33Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f85e3407e7d9434980f1e4f115374040\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3c1115a128ac11ed8012ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:32-06:00\",\"updated_at\":\"2022-08-30T15:39:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3c12d5f828ac11ed940bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:32-06:00\",\"updated_at\":\"2022-08-30T15:39:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3c1115a128ac11ed8012ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:32-06:00\",\"updated_at\":\"2022-08-30T15:39:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_f85e3407e7d9434980f1e4f115374040\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:10Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:54:11Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_3d4d8c27adc34cf282373d79e723f16e\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:54:10Z\",\"updated_at\":\"2022-09-07T20:54:10Z\",\"contents_explanation\":null,\"contents_type\":\"merchandise\",\"customs_certify\":false,\"customs_signer\":null,\"eel_pfc\":null,\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_392700d12eef11ed9be3ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:10-06:00\",\"updated_at\":\"2022-09-07T14:54:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_671f2a7eb78149199732431e33a613c1\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:10Z\",\"updated_at\":\"2022-09-07T20:54:10Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_03d7f91e992d43868c039653cdcff246\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:11Z\",\"updated_at\":\"2022-09-07T20:54:11Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_6062930439e84ed083b60e4da08ccbeb\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_474ae547b3244ec8940aab40aa332841\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:11Z\",\"updated_at\":\"2022-09-07T20:54:11Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_6062930439e84ed083b60e4da08ccbeb\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_00b73ae764a94c2a84c62ba68a791ffd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:11Z\",\"updated_at\":\"2022-09-07T20:54:11Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_6062930439e84ed083b60e4da08ccbeb\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a7696b11c3e34979a45ba4a7e1e77643\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:11Z\",\"updated_at\":\"2022-09-07T20:54:11Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_6062930439e84ed083b60e4da08ccbeb\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_392489692eef11eda409ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:10-06:00\",\"updated_at\":\"2022-09-07T14:54:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_392700d12eef11ed9be3ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:10-06:00\",\"updated_at\":\"2022-09-07T14:54:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_392489692eef11eda409ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:10-06:00\",\"updated_at\":\"2022-09-07T14:54:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_6062930439e84ed083b60e4da08ccbeb\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,21 +29,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96af630e8394e788d4a300134a14", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a25631904f2e799faa2002e11cb", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_f85e3407e7d9434980f1e4f115374040", - "ETag": "W/\"dbbd49477d9785c2ad7472343bb9900a\"", - "x-runtime": "0.519216", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_6062930439e84ed083b60e4da08ccbeb", + "ETag": "W/\"83bd03f60833c808d67bd53366dc03c6\"", + "x-runtime": "0.715682", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/shipment/create_shipment_with_carbon_offset.json b/EasyPost.Tests/cassettes/net/shipment/create_shipment_with_carbon_offset.json index c0a76db63..c53034f2d 100644 --- a/EasyPost.Tests/cassettes/net/shipment/create_shipment_with_carbon_offset.json +++ b/EasyPost.Tests/cassettes/net/shipment/create_shipment_with_carbon_offset.json @@ -1,7 +1,7 @@ [ { - "Duration": 984, - "RecordedAt": "2022-08-30T15:39:24.098214-06:00", + "Duration": 451, + "RecordedAt": "2022-09-07T14:54:02.450141-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Dr. Steve Brule\",\"street1\":\"179 N Harbor Dr\",\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}},\"carbon_offset\":true}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:23Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:39:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_36b5e05f28ac11edbeb9ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:23-06:00\",\"updated_at\":\"2022-08-30T15:39:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_14955c0c5a95494681cfe26e4de338d7\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:23Z\",\"updated_at\":\"2022-08-30T21:39:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_c9ce9e4be9894a75a65c398326720b6a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:24Z\",\"updated_at\":\"2022-08-30T21:39:24Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_a2123a1011e441a5bf415e7a3d0a7756\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_c1d744e53e6849e6913c654a6e15b324\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:24Z\",\"updated_at\":\"2022-08-30T21:39:24Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_a2123a1011e441a5bf415e7a3d0a7756\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_5969d5021d4c42cb9ed9c8bbd39c2ca0\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:24Z\",\"updated_at\":\"2022-08-30T21:39:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a2123a1011e441a5bf415e7a3d0a7756\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_95957a534e3c441e8a0d6724b79ef9df\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:24Z\",\"updated_at\":\"2022-08-30T21:39:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a2123a1011e441a5bf415e7a3d0a7756\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"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_36b43d5928ac11ed92a6ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:23-06:00\",\"updated_at\":\"2022-08-30T15:39:23-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_36b5e05f28ac11edbeb9ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:23-06:00\",\"updated_at\":\"2022-08-30T15:39:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_36b43d5928ac11ed92a6ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:23-06:00\",\"updated_at\":\"2022-08-30T15:39:23-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_a2123a1011e441a5bf415e7a3d0a7756\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:01Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:54:02Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_337a7ca32eef11edb6f4ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_10169f41399f480d842cfa221fcce722\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:01Z\",\"updated_at\":\"2022-09-07T20:54:01Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_7b671b21daf34d6e9c035ccce7ab4c03\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:02Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b752f93d9a0c4e49a777331163207fe7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_8bcf220c7dca449390aeb1565336e9cc\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:02Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b752f93d9a0c4e49a777331163207fe7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_bf1b39600ca440be8c1fe5f98c2c279e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:02Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_b752f93d9a0c4e49a777331163207fe7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_d7439bb6abc544948d0fa5d38326c000\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:02Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_b752f93d9a0c4e49a777331163207fe7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"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_3377d1cc2eef11ed90f1ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_337a7ca32eef11edb6f4ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3377d1cc2eef11ed90f1ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:01-06:00\",\"updated_at\":\"2022-09-07T14:54:01-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_b752f93d9a0c4e49a777331163207fe7\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,22 +29,22 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b1630e838be788d49b00134736", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631904e9e799fa68002e0dd9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_a2123a1011e441a5bf415e7a3d0a7756", - "ETag": "W/\"f4cea9d537bc6c68824e8203db4e5695\"", - "x-runtime": "0.676249", + "Location": "/api/v2/shipments/shp_b752f93d9a0c4e49a777331163207fe7", + "ETag": "W/\"8f64e29340fdbfb7ca4a3f5e7c296ed5\"", + "x-runtime": "1.163193", "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-canary": "direct", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/shipment/create_tax_identifiers.json b/EasyPost.Tests/cassettes/net/shipment/create_tax_identifiers.json index d36d03092..1e18cce9a 100644 --- a/EasyPost.Tests/cassettes/net/shipment/create_tax_identifiers.json +++ b/EasyPost.Tests/cassettes/net/shipment/create_tax_identifiers.json @@ -1,7 +1,7 @@ [ { - "Duration": 218, - "RecordedAt": "2022-08-30T15:39:18.574887-06:00", + "Duration": 762, + "RecordedAt": "2022-09-07T14:53:57.101054-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"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}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:18Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:39:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3376cf6b28ac11ed91b9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:18-06:00\",\"updated_at\":\"2022-08-30T15:39:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6c9e8a864ede462097b2c3735dad105a\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:18Z\",\"updated_at\":\"2022-08-30T21:39:18Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_c160d7740eba4ef88874d70a4cf4a7b6\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:18Z\",\"updated_at\":\"2022-08-30T21:39:18Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_1f791229d66a4dd692df648be1524508\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b05d30f9902449fca1b6c15e8c01a61a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:18Z\",\"updated_at\":\"2022-08-30T21:39:18Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_1f791229d66a4dd692df648be1524508\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_44d1049ef0974e4b9efed5d137ddecc6\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:18Z\",\"updated_at\":\"2022-08-30T21:39:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1f791229d66a4dd692df648be1524508\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_32ba6229524f4f7184193cace5405eb3\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:18Z\",\"updated_at\":\"2022-08-30T21:39:18Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1f791229d66a4dd692df648be1524508\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3374f35028ac11edb3daac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:18-06:00\",\"updated_at\":\"2022-08-30T15:39:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3376cf6b28ac11ed91b9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:18-06:00\",\"updated_at\":\"2022-08-30T15:39:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3374f35028ac11edb3daac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:18-06:00\",\"updated_at\":\"2022-08-30T15:39:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_1f791229d66a4dd692df648be1524508\",\"object\":\"Shipment\",\"tax_identifiers\":[{\"entity\":\"SENDER\",\"tax_id\":\"HIDDEN\",\"tax_id_type\":\"IOSS\",\"issuing_country\":\"GB\"}]}", + "Body": "{\"created_at\":\"2022-09-07T20:53:56Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:53:57Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_30ae3b852eef11ed982fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_d3d8724b39dd48e8af84e39b661b49b0\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8c101e0c00da4a5c9122e80a0e901793\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_4c215033ebec44aaa366923da32c1b1b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e9e818929a8247529d7037677b26e7bd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4c215033ebec44aaa366923da32c1b1b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_afe4f1ee46fc409bb27dc28056564cec\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_4c215033ebec44aaa366923da32c1b1b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_154e8b2a819b4debb016c0d493d173a2\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4c215033ebec44aaa366923da32c1b1b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_30ac30802eef11ed982eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_30ae3b852eef11ed982fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_30ac30802eef11ed982eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_4c215033ebec44aaa366923da32c1b1b\",\"object\":\"Shipment\",\"tax_identifiers\":[{\"entity\":\"SENDER\",\"tax_id\":\"HIDDEN\",\"tax_id_type\":\"IOSS\",\"issuing_country\":\"GB\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,21 +29,22 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e8386e788d48100134557", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a26631904e4e799f706002e0c05", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_1f791229d66a4dd692df648be1524508", - "ETag": "W/\"a54ce0ffea4f75025147ef515edf47f5\"", - "x-runtime": "0.585617", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_4c215033ebec44aaa366923da32c1b1b", + "ETag": "W/\"4209d0a6adc2d2deb67aab07c56e421d\"", + "x-runtime": "0.499728", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/shipment/insure.json b/EasyPost.Tests/cassettes/net/shipment/insure.json index 94efd7d97..40ebe0681 100644 --- a/EasyPost.Tests/cassettes/net/shipment/insure.json +++ b/EasyPost.Tests/cassettes/net/shipment/insure.json @@ -1,7 +1,7 @@ [ { - "Duration": 300, - "RecordedAt": "2022-08-30T15:39:39.274783-06:00", + "Duration": 275, + "RecordedAt": "2022-09-07T14:54:17.84383-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\",\"insurance\":0},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:38Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658006\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3f956f8828ac11edb717ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7275027744484a0f8d8a3eb04e5d5ec0\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0ec848007b1e47e597789b5fef940639\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39: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/20220830/d31be13a020e445db0b8deebf9b19c90.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_5e6a7a6f9b284c958470570f764694bd\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c88bb469899d48c495ce2905425f586e\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6b97e65525e7485c9172cd2a8bf880db\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f49b74eab23c4e1ba41eb14184384e42\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f49b74eab23c4e1ba41eb14184384e42\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:39Z\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_90e673a44f1048499afec00695fdb048\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658006\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:39:39Z\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzkwZTY3M2E0NGYxMDQ4NDk5YWZlYzAwNjk1ZmRiMDQ4\"},\"to_address\":{\"id\":\"adr_3f93381c28ac11edb715ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3f956f8828ac11edb717ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3f93381c28ac11edb715ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:16Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477989\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3cbf95bb2eef11eda57eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:16-06:00\",\"updated_at\":\"2022-09-07T14:54:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7fc1a888bea7469b8b0b62c2021f64a4\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:16Z\",\"updated_at\":\"2022-09-07T20:54:16Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f5c1ed54846a4829a9775b63c3d44623\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:54: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/20220907/c72cb224b46a405a82a0bb96d635a0f5.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_adcb4a4ef34d4d1e837edf70800d7445\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e7654146703d455bb13832125c471b45\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_aa05428c6e1c44cb8838b4aa31b538ba\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a80d7934de934c22869cd910ec45755a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a80d7934de934c22869cd910ec45755a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_934ce9b34f3e4c7bbf60c147db8f288d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477989\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzkzNGNlOWIzNGYzZTRjN2JiZjYwYzE0N2RiOGYyODhk\"},\"to_address\":{\"id\":\"adr_3cbcc0642eef11eda57dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:16-06:00\",\"updated_at\":\"2022-09-07T14:54:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3cbf95bb2eef11eda57eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:16-06:00\",\"updated_at\":\"2022-09-07T14:54:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3cbcc0642eef11eda57dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:16-06:00\",\"updated_at\":\"2022-09-07T14:54:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,21 +29,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b0630e839ae788d4be00134c83", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a26631904f8e799faa6002e13d1", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_594b42da33c74be587c1755db60e7b25", - "ETag": "W/\"d6df2ced72bd94208eeeed708efcfa50\"", - "x-runtime": "0.961348", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_03a711bd5d444c9aa8ad574d7314e85b", + "ETag": "W/\"970be8ee166694254a1b6c37ac05bfea\"", + "x-runtime": "1.002778", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 205, - "RecordedAt": "2022-08-30T15:39:39.515583-06:00", + "Duration": 234, + "RecordedAt": "2022-09-07T14:54:18.109293-06:00", "Request": { "Body": "{\"amount\":100.0}", "BodyContentType": "Json", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_594b42da33c74be587c1755db60e7b25/insure" + "Uri": "https://api.easypost.com/v2/shipments/shp_03a711bd5d444c9aa8ad574d7314e85b/insure" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:38Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658006\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3f956f8828ac11edb717ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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_7275027744484a0f8d8a3eb04e5d5ec0\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0ec848007b1e47e597789b5fef940639\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39: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/20220830/d31be13a020e445db0b8deebf9b19c90.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_5e6a7a6f9b284c958470570f764694bd\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c88bb469899d48c495ce2905425f586e\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6b97e65525e7485c9172cd2a8bf880db\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f49b74eab23c4e1ba41eb14184384e42\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f49b74eab23c4e1ba41eb14184384e42\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:39Z\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_90e673a44f1048499afec00695fdb048\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658006\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:39:39Z\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:39:39Z\",\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:39:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:16:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzkwZTY3M2E0NGYxMDQ4NDk5YWZlYzAwNjk1ZmRiMDQ4\"},\"to_address\":{\"id\":\"adr_3f93381c28ac11edb715ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3f956f8828ac11edb717ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3f93381c28ac11edb715ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:16Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477989\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3cbf95bb2eef11eda57eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:16-06:00\",\"updated_at\":\"2022-09-07T14:54:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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_7fc1a888bea7469b8b0b62c2021f64a4\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:16Z\",\"updated_at\":\"2022-09-07T20:54:16Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f5c1ed54846a4829a9775b63c3d44623\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:54: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/20220907/c72cb224b46a405a82a0bb96d635a0f5.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_adcb4a4ef34d4d1e837edf70800d7445\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e7654146703d455bb13832125c471b45\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_aa05428c6e1c44cb8838b4aa31b538ba\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a80d7934de934c22869cd910ec45755a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a80d7934de934c22869cd910ec45755a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_934ce9b34f3e4c7bbf60c147db8f288d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477989\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:54:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:54:17Z\",\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:54:17Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:31:17Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzkzNGNlOWIzNGYzZTRjN2JiZjYwYzE0N2RiOGYyODhk\"},\"to_address\":{\"id\":\"adr_3cbcc0642eef11eda57dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:16-06:00\",\"updated_at\":\"2022-09-07T14:54:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3cbf95bb2eef11eda57eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:16-06:00\",\"updated_at\":\"2022-09-07T14:54:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3cbcc0642eef11eda57dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:16-06:00\",\"updated_at\":\"2022-09-07T14:54:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,20 +82,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b0630e839be788d4be00134cf8", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a26631904fae799faa6002e145f", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"8ae89d2e14bf13b312a208e4312b6455\"", - "x-runtime": "0.136079", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"03d1ce238d4862a06ca9850deca985ba\"", + "x-runtime": "0.174197", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/shipment/lowest_rate.json b/EasyPost.Tests/cassettes/net/shipment/lowest_rate.json index b06892b48..5f2acee18 100644 --- a/EasyPost.Tests/cassettes/net/shipment/lowest_rate.json +++ b/EasyPost.Tests/cassettes/net/shipment/lowest_rate.json @@ -1,7 +1,7 @@ [ { - "Duration": 881, - "RecordedAt": "2022-08-30T15:39:25.038392-06:00", + "Duration": 981, + "RecordedAt": "2022-09-07T14:54:03.457456-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:24Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:39:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_c3ffd4978ba04a91be4583ad6e0e7e6c\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:39:24Z\",\"updated_at\":\"2022-08-30T21:39:24Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_44e5523509c74665aab9027368be0256\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:39:24Z\",\"updated_at\":\"2022-08-30T21:39:24Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_375618ce28ac11ed92d6ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:24-06:00\",\"updated_at\":\"2022-08-30T15:39:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_17b561da4d704472a427c3f47080eef4\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:24Z\",\"updated_at\":\"2022-08-30T21:39:24Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_92c4fcd6223643adad2c70af2fe5f435\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_c0fa325e12034e5fbf5698b787c0e165\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7aaf6ad7178e47598fcc444421cb613b\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_c0fa325e12034e5fbf5698b787c0e165\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_36e585b71dfb4e36a8039d0ea2a9f20a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c0fa325e12034e5fbf5698b787c0e165\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_412b745a69d249d7b2add5fa68860812\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:25Z\",\"updated_at\":\"2022-08-30T21:39:25Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c0fa325e12034e5fbf5698b787c0e165\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3754345d28ac11edb502ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:24-06:00\",\"updated_at\":\"2022-08-30T15:39:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_375618ce28ac11ed92d6ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:24-06:00\",\"updated_at\":\"2022-08-30T15:39:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3754345d28ac11edb502ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:24-06:00\",\"updated_at\":\"2022-08-30T15:39:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_c0fa325e12034e5fbf5698b787c0e165\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:02Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T20:54:03Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_9648601f28574e76b6b7e091ffd1ad0f\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:54:02Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_c9c0e07117f449b1b7e10ac8a77838e1\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:54:02Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_345891552eef11ed9144ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:02-06:00\",\"updated_at\":\"2022-09-07T14:54:02-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_092e411fa41b42148b1b63608646c1cc\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:02Z\",\"updated_at\":\"2022-09-07T20:54:02Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8154b21d0121473d86e8af0495101d7d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:03Z\",\"updated_at\":\"2022-09-07T20:54:03Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_1da87e6c17674195afe9e5027315594c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ad27447967ad4d829256435a2fa45cdd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:03Z\",\"updated_at\":\"2022-09-07T20:54:03Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1da87e6c17674195afe9e5027315594c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a3066ff19b1c4a519b0b85bdc8e6a88e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:03Z\",\"updated_at\":\"2022-09-07T20:54:03Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_1da87e6c17674195afe9e5027315594c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7db21f58cb3e40c580cafb843226b6b4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:03Z\",\"updated_at\":\"2022-09-07T20:54:03Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1da87e6c17674195afe9e5027315594c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_345663152eef11ed99dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:02-06:00\",\"updated_at\":\"2022-09-07T14:54:02-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_345891552eef11ed9144ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:02-06:00\",\"updated_at\":\"2022-09-07T14:54:02-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_345663152eef11ed99dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:02-06:00\",\"updated_at\":\"2022-09-07T14:54:02-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_1da87e6c17674195afe9e5027315594c\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,21 +29,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96af630e838ce788d49c00134784", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a25631904eae799fa82002e0e39", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_c0fa325e12034e5fbf5698b787c0e165", - "ETag": "W/\"07a2bca83e6a67f13e887eb1cfb35478\"", - "x-runtime": "0.551599", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_1da87e6c17674195afe9e5027315594c", + "ETag": "W/\"91a3864a9814c9bf415a5b1722fa7f55\"", + "x-runtime": "0.707223", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/shipment/lowest_smartrate_instance.json b/EasyPost.Tests/cassettes/net/shipment/lowest_smartrate_instance.json index ed7f0bcc8..47a7c9660 100644 --- a/EasyPost.Tests/cassettes/net/shipment/lowest_smartrate_instance.json +++ b/EasyPost.Tests/cassettes/net/shipment/lowest_smartrate_instance.json @@ -1,7 +1,7 @@ [ { - "Duration": 856, - "RecordedAt": "2022-08-30T15:39:29.285892-06:00", + "Duration": 98, + "RecordedAt": "2022-09-07T14:54:07.900448-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:28Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:39:29Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_39e4307428ac11ed9388ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:28-06:00\",\"updated_at\":\"2022-08-30T15:39:28-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_eeb81e8a53cd43ec9da2857f4a4e6507\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:28Z\",\"updated_at\":\"2022-08-30T21:39:28Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_12cf5634b033494d93937ab2c43218dc\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:29Z\",\"updated_at\":\"2022-08-30T21:39:29Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_992c9953725f4cf5bfdc2cb04a9c0e4a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_25fe2445ce164020a9353bfa36d1a789\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:29Z\",\"updated_at\":\"2022-08-30T21:39:29Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_992c9953725f4cf5bfdc2cb04a9c0e4a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_276cb4039d4a458ca90219ba6f689cde\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:29Z\",\"updated_at\":\"2022-08-30T21:39:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_992c9953725f4cf5bfdc2cb04a9c0e4a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4ee56b0064da4a57a2a911c6cab97d4e\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:29Z\",\"updated_at\":\"2022-08-30T21:39:29Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_992c9953725f4cf5bfdc2cb04a9c0e4a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_39e2244628ac11edb5b4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:28-06:00\",\"updated_at\":\"2022-08-30T15:39:28-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_39e4307428ac11ed9388ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:28-06:00\",\"updated_at\":\"2022-08-30T15:39:28-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_39e2244628ac11edb5b4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:28-06:00\",\"updated_at\":\"2022-08-30T15:39:28-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_992c9953725f4cf5bfdc2cb04a9c0e4a\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:07Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:54:07Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_36eb462b2eef11eda312ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:07-06:00\",\"updated_at\":\"2022-09-07T14:54:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b1cdc143624d4ea79771f8071657926b\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:07Z\",\"updated_at\":\"2022-09-07T20:54:07Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_06c3fc882f434d5a846397ef1cd740e4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:07Z\",\"updated_at\":\"2022-09-07T20:54:07Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e3ebe06970524832afa785efe9f47986\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b7fa0a19817349db9bc1ede0bad5cc9a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:07Z\",\"updated_at\":\"2022-09-07T20:54:07Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e3ebe06970524832afa785efe9f47986\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_febb37b3882e4d65a58f950fff9f2087\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:07Z\",\"updated_at\":\"2022-09-07T20:54:07Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e3ebe06970524832afa785efe9f47986\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_18124fb0c4854b87b235cbdef75b394a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:07Z\",\"updated_at\":\"2022-09-07T20:54:07Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e3ebe06970524832afa785efe9f47986\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_36e8b71c2eef11edb7b0ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:07-06:00\",\"updated_at\":\"2022-09-07T14:54:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_36eb462b2eef11eda312ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:07-06:00\",\"updated_at\":\"2022-09-07T14:54:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_36e8b71c2eef11edb7b0ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:07-06:00\",\"updated_at\":\"2022-09-07T14:54:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_e3ebe06970524832afa785efe9f47986\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,19 +29,19 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b4630e8390e788d4a0001348eb", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a26631904efe799fa88002e1000", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_992c9953725f4cf5bfdc2cb04a9c0e4a", - "ETag": "W/\"ee1d0653194a211500e82ed28c560fb1\"", - "x-runtime": "0.529534", + "Location": "/api/v2/shipments/shp_e3ebe06970524832afa785efe9f47986", + "ETag": "W/\"f0e2d8ef68c1ffcc93a353b6baa2830a\"", + "x-runtime": "0.837100", "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 147, - "RecordedAt": "2022-08-30T15:39:29.684639-06:00", + "Duration": 150, + "RecordedAt": "2022-09-07T14:54:08.241619-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_992c9953725f4cf5bfdc2cb04a9c0e4a/smartrate" + "Uri": "https://api.easypost.com/v2/shipments/shp_e3ebe06970524832afa785efe9f47986/smartrate" }, "Response": { - "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:29Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_12cf5634b033494d93937ab2c43218dc\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_992c9953725f4cf5bfdc2cb04a9c0e4a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-08-30T21:39:29Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:29Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_25fe2445ce164020a9353bfa36d1a789\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_992c9953725f4cf5bfdc2cb04a9c0e4a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:39:29Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:29Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_276cb4039d4a458ca90219ba6f689cde\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_992c9953725f4cf5bfdc2cb04a9c0e4a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:39:29Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:29Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_4ee56b0064da4a57a2a911c6cab97d4e\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_992c9953725f4cf5bfdc2cb04a9c0e4a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-08-30T21:39:29Z\"}]}", + "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:07Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_06c3fc882f434d5a846397ef1cd740e4\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_e3ebe06970524832afa785efe9f47986\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-09-07T20:54:07Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:07Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_b7fa0a19817349db9bc1ede0bad5cc9a\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_e3ebe06970524832afa785efe9f47986\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2022-09-07T20:54:07Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:07Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_febb37b3882e4d65a58f950fff9f2087\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_e3ebe06970524832afa785efe9f47986\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":1,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-09-07T20:54:07Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:07Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_18124fb0c4854b87b235cbdef75b394a\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_e3ebe06970524832afa785efe9f47986\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":4,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-09-07T20:54:07Z\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -79,20 +79,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b4630e8391e788d4a00013492f", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a26631904f0e799fa88002e10a6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"ec3b51b8eb78eac515c72621eda6e0fe\"", - "x-runtime": "0.070541", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"a3ab9499d35ca6a08d3d4857bfd2161e\"", + "x-runtime": "0.080663", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/shipment/lowest_smartrate_static.json b/EasyPost.Tests/cassettes/net/shipment/lowest_smartrate_static.json index 1f931f915..e390ca069 100644 --- a/EasyPost.Tests/cassettes/net/shipment/lowest_smartrate_static.json +++ b/EasyPost.Tests/cassettes/net/shipment/lowest_smartrate_static.json @@ -1,7 +1,7 @@ [ { - "Duration": 961, - "RecordedAt": "2022-08-30T15:39:30.66763-06:00", + "Duration": 933, + "RecordedAt": "2022-09-07T14:54:09.192981-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:30Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:39:30Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3aa57f1a28ac11ed8585ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:30-06:00\",\"updated_at\":\"2022-08-30T15:39:30-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_500bf70ad671497b9067e379f0f7ed04\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:30Z\",\"updated_at\":\"2022-08-30T21:39:30Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_b6a18f6cbfd34af8b553c4316b18dedc\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:30Z\",\"updated_at\":\"2022-08-30T21:39:30Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2907455bc81243cca8c3b6d492786d5a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_adb7c6e9813b4189abb86a488a02d6f3\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:30Z\",\"updated_at\":\"2022-08-30T21:39:30Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_2907455bc81243cca8c3b6d492786d5a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8f5e47eee620429590403bfe69cf76c0\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:30Z\",\"updated_at\":\"2022-08-30T21:39:30Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2907455bc81243cca8c3b6d492786d5a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5114990a642545019c8610b33aecfdf9\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:30Z\",\"updated_at\":\"2022-08-30T21:39:30Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_2907455bc81243cca8c3b6d492786d5a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3aa3b5c428ac11ed93b9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:30-06:00\",\"updated_at\":\"2022-08-30T15:39:30-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3aa57f1a28ac11ed8585ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:30-06:00\",\"updated_at\":\"2022-08-30T15:39:30-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3aa3b5c428ac11ed93b9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:30-06:00\",\"updated_at\":\"2022-08-30T15:39:30-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_2907455bc81243cca8c3b6d492786d5a\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:08Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:54:09Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_37c9bcac2eef11ed92aaac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:08-06:00\",\"updated_at\":\"2022-09-07T14:54:08-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f5eecb710fc7450095f5c90e2bac42fc\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:08Z\",\"updated_at\":\"2022-09-07T20:54:08Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_420867a356284295b9154b531014b4e9\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:09Z\",\"updated_at\":\"2022-09-07T20:54:09Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_872b37d968b94d95a3fcd6b25b028429\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_94243479af274680bc0dd15f286dd812\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:09Z\",\"updated_at\":\"2022-09-07T20:54:09Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_872b37d968b94d95a3fcd6b25b028429\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_486e2d9ec1bf45d7b3e88c73d1e2c14b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:09Z\",\"updated_at\":\"2022-09-07T20:54:09Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_872b37d968b94d95a3fcd6b25b028429\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f2fc71bab6504ffcbad48892ee50abde\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:09Z\",\"updated_at\":\"2022-09-07T20:54:09Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_872b37d968b94d95a3fcd6b25b028429\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_37c826ba2eef11ed92a9ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:08-06:00\",\"updated_at\":\"2022-09-07T14:54:08-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_37c9bcac2eef11ed92aaac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:08-06:00\",\"updated_at\":\"2022-09-07T14:54:08-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_37c826ba2eef11ed92a9ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:08-06:00\",\"updated_at\":\"2022-09-07T14:54:08-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_872b37d968b94d95a3fcd6b25b028429\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,19 +29,19 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b1630e8392e788d4a10013495d", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a25631904f0e799fa89002e10ec", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_2907455bc81243cca8c3b6d492786d5a", - "ETag": "W/\"c690e71a21ee9d7df14d7901881839b5\"", - "x-runtime": "0.638813", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_872b37d968b94d95a3fcd6b25b028429", + "ETag": "W/\"f709232d25cf7f153d3c176811e35129\"", + "x-runtime": "0.649607", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 160, - "RecordedAt": "2022-08-30T15:39:30.857272-06:00", + "Duration": 136, + "RecordedAt": "2022-09-07T14:54:09.347062-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_2907455bc81243cca8c3b6d492786d5a/smartrate" + "Uri": "https://api.easypost.com/v2/shipments/shp_872b37d968b94d95a3fcd6b25b028429/smartrate" }, "Response": { - "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:30Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_b6a18f6cbfd34af8b553c4316b18dedc\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_2907455bc81243cca8c3b6d492786d5a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:39:30Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:30Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_adb7c6e9813b4189abb86a488a02d6f3\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_2907455bc81243cca8c3b6d492786d5a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-08-30T21:39:30Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:30Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_8f5e47eee620429590403bfe69cf76c0\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_2907455bc81243cca8c3b6d492786d5a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-08-30T21:39:30Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:30Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_5114990a642545019c8610b33aecfdf9\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_2907455bc81243cca8c3b6d492786d5a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:39:30Z\"}]}", + "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:09Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_420867a356284295b9154b531014b4e9\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_872b37d968b94d95a3fcd6b25b028429\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-09-07T20:54:09Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:09Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_94243479af274680bc0dd15f286dd812\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_872b37d968b94d95a3fcd6b25b028429\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":4,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-09-07T20:54:09Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:09Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_486e2d9ec1bf45d7b3e88c73d1e2c14b\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_872b37d968b94d95a3fcd6b25b028429\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2022-09-07T20:54:09Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:09Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_f2fc71bab6504ffcbad48892ee50abde\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_872b37d968b94d95a3fcd6b25b028429\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":1,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-09-07T20:54:09Z\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -79,18 +79,18 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b1630e8392e788d4a100134993", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a25631904f1e799fa89002e113e", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"bba4350f5d9a44a806e15a8a9b18b59e\"", - "x-runtime": "0.091228", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"456e887f27ff9fcdd7a8db81288ecd53\"", + "x-runtime": "0.075926", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/shipment/one_call_buy_shipment_with_carbon_offset.json b/EasyPost.Tests/cassettes/net/shipment/one_call_buy_shipment_with_carbon_offset.json index 65f849042..33effab9a 100644 --- a/EasyPost.Tests/cassettes/net/shipment/one_call_buy_shipment_with_carbon_offset.json +++ b/EasyPost.Tests/cassettes/net/shipment/one_call_buy_shipment_with_carbon_offset.json @@ -1,7 +1,7 @@ [ { - "Duration": 531, - "RecordedAt": "2022-08-30T15:39:41.091266-06:00", + "Duration": 437, + "RecordedAt": "2022-09-07T14:54:19.570883-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Dr. Steve Brule\",\"street1\":\"179 N Harbor Dr\",\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":true}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:40Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658013\",\"updated_at\":\"2022-08-30T21:39:41Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4084037428ac11ed9542ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:40-06:00\",\"updated_at\":\"2022-08-30T15:39:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6f985c59c707439092df63eefca0c457\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_4564465238c546c483c834ab408b1a5c\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39:40Z\",\"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/20220830/ec637f1147c540ebac1ded7ca8a9fe3d.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_4d9c72eac1d14b26a00361458c19fb77\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_964621afc3024eb58feb6f776551dcc6\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_24d7debca81544a5aa70968f8a9b13ec\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_e0ca6fb6c02640549147fa867b5e49d0\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_4d9c72eac1d14b26a00361458c19fb77\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_1838b61432504bb5800918f9e1c847d6\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658013\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:39:41Z\",\"updated_at\":\"2022-08-30T21:39:41Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzE4MzhiNjE0MzI1MDRiYjU4MDA5MThmOWUxYzg0N2Q2\"},\"to_address\":{\"id\":\"adr_40825b9528ac11ed8124ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:40-06:00\",\"updated_at\":\"2022-08-30T15:39:40-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_4084037428ac11ed9542ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:40-06:00\",\"updated_at\":\"2022-08-30T15:39:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_40825b9528ac11ed8124ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:40-06:00\",\"updated_at\":\"2022-08-30T15:39:40-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:18Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477996\",\"updated_at\":\"2022-09-07T20:54:19Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3da9f13c2eef11eda5c1ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:18-06:00\",\"updated_at\":\"2022-09-07T14:54:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a725befdaef04629bc9559876ab8c23f\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:18Z\",\"updated_at\":\"2022-09-07T20:54:18Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_7e230ce953014c388b676347a0e684c7\",\"created_at\":\"2022-09-07T20:54:19Z\",\"updated_at\":\"2022-09-07T20:54:19Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:54:19Z\",\"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/20220907/a5294aedbcc24207895aefada1070aa4.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_2dcc70841c6a45f9806206e8f72c8970\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:18Z\",\"updated_at\":\"2022-09-07T20:54:18Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_190f85f04a5947ff828c2c1318b0aa67\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_e163a6f33cab4196b85c0333b338554d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:18Z\",\"updated_at\":\"2022-09-07T20:54:18Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_190f85f04a5947ff828c2c1318b0aa67\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_d73aee0690cf44efba2cf335594976b7\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:18Z\",\"updated_at\":\"2022-09-07T20:54:18Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_190f85f04a5947ff828c2c1318b0aa67\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_ae743ee2ca3d4d8dbb0cdac03f56ced4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:18Z\",\"updated_at\":\"2022-09-07T20:54:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_190f85f04a5947ff828c2c1318b0aa67\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_ae743ee2ca3d4d8dbb0cdac03f56ced4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:19Z\",\"updated_at\":\"2022-09-07T20:54:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_190f85f04a5947ff828c2c1318b0aa67\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_8e9cf0b824d54df9ab85dfa7bbef2e21\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477996\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:54:19Z\",\"updated_at\":\"2022-09-07T20:54:19Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_190f85f04a5947ff828c2c1318b0aa67\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzhlOWNmMGI4MjRkNTRkZjlhYjg1ZGZhN2JiZWYyZTIx\"},\"to_address\":{\"id\":\"adr_3da80a062eef11edb93dac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:18-06:00\",\"updated_at\":\"2022-09-07T14:54:18-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_3da9f13c2eef11eda5c1ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:18-06:00\",\"updated_at\":\"2022-09-07T14:54:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3da80a062eef11edb93dac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:18-06:00\",\"updated_at\":\"2022-09-07T14:54:18-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_190f85f04a5947ff828c2c1318b0aa67\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,19 +29,19 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b0630e839be788d4bf00134d38", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2b631904fae799faa7002e1485", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_53cad978ff654727bb3b7888917bdad3", - "ETag": "W/\"4afc9b8e85a511b37b930a6cf59ea681\"", - "x-runtime": "1.218834", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_190f85f04a5947ff828c2c1318b0aa67", + "ETag": "W/\"9f0f77e63360abb4b9ae92e489663d81\"", + "x-runtime": "1.188026", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/shipment/refund.json b/EasyPost.Tests/cassettes/net/shipment/refund.json index 4bc353026..924332d35 100644 --- a/EasyPost.Tests/cassettes/net/shipment/refund.json +++ b/EasyPost.Tests/cassettes/net/shipment/refund.json @@ -1,7 +1,7 @@ [ { - "Duration": 269, - "RecordedAt": "2022-08-30T15:39:28.109586-06:00", + "Duration": 221, + "RecordedAt": "2022-09-07T14:54:06.498929-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:27Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135657986\",\"updated_at\":\"2022-08-30T21:39:28Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38f0f2ac28ac11ed934bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:27-06:00\",\"updated_at\":\"2022-08-30T15:39:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_2423607a2f72485aa06cec9b21ca699b\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_40fa0188fe574dd79e9d4ab4c7811eb4\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:28Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39: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/20220830/a79afb213ec24baaa20e940985a85943.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9bdddc94f1b64349824efbb5695ab4f0\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_30d6c638804940c78729ee2405f7ebe3\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_961f07e38e2a45e499f420bb8a402dea\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c63dba62d6be41f2a89c1748a0e7ca49\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_30d6c638804940c78729ee2405f7ebe3\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_94efc0ab400a478d9c69af95c5bfa4a5\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135657986\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:39:28Z\",\"updated_at\":\"2022-08-30T21:39:28Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzk0ZWZjMGFiNDAwYTQ3OGQ5YzY5YWY5NWM1YmZhNGE1\"},\"to_address\":{\"id\":\"adr_38ee82f928ac11ed854cac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:27-06:00\",\"updated_at\":\"2022-08-30T15:39:27-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38f0f2ac28ac11ed934bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:27-06:00\",\"updated_at\":\"2022-08-30T15:39:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38ee82f928ac11ed854cac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:27-06:00\",\"updated_at\":\"2022-08-30T15:39:27-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:05Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477927\",\"updated_at\":\"2022-09-07T20:54:06Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3601fd5a2eef11eda2aaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:05-06:00\",\"updated_at\":\"2022-09-07T14:54:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f494e8475a04407fa8c5000c6fac9d02\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_1566395e01e94a4699597a390b980c96\",\"created_at\":\"2022-09-07T20:54:06Z\",\"updated_at\":\"2022-09-07T20:54:06Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:54: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/20220907/3431c3972bea424fad45c3f0b4a77b4f.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_f4fb96c518294c3aabbbac7ee2ebd9a6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_03ed5d883e9f4db682745665249747c4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ee9a6cca0e6946bebcc257cb417e77b5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_06e4e76fe3e34232bce82371a5b8a0a0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_06e4e76fe3e34232bce82371a5b8a0a0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:06Z\",\"updated_at\":\"2022-09-07T20:54:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_37f4240336704f55b2902d640f9e131c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477927\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:54:06Z\",\"updated_at\":\"2022-09-07T20:54:06Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzM3ZjQyNDAzMzY3MDRmNTViMjkwMmQ2NDBmOWUxMzFj\"},\"to_address\":{\"id\":\"adr_35ffd2472eef11ed91e7ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:05-06:00\",\"updated_at\":\"2022-09-07T14:54:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3601fd5a2eef11eda2aaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:05-06:00\",\"updated_at\":\"2022-09-07T14:54:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_35ffd2472eef11ed91e7ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:05-06:00\",\"updated_at\":\"2022-09-07T14:54:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,21 +29,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96af630e838fe788d49f0013486c", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631904ede799fa85002e0f0a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_402432e485b94d9c91305e85a7ce7d53", - "ETag": "W/\"262fc3ff1f3f252b6ccc9364fae75349\"", - "x-runtime": "0.901172", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_ff72aceea2104d728f5cc5e073f0efb4", + "ETag": "W/\"ce82aac9ab4079fcd91275f075872758\"", + "x-runtime": "0.965410", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 239, - "RecordedAt": "2022-08-30T15:39:28.385752-06:00", + "Duration": 249, + "RecordedAt": "2022-09-07T14:54:06.776222-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_402432e485b94d9c91305e85a7ce7d53/refund" + "Uri": "https://api.easypost.com/v2/shipments/shp_ff72aceea2104d728f5cc5e073f0efb4/refund" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:27Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135657986\",\"updated_at\":\"2022-08-30T21:39:28Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38f0f2ac28ac11ed934bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:27-06:00\",\"updated_at\":\"2022-08-30T15:39:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_2423607a2f72485aa06cec9b21ca699b\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_40fa0188fe574dd79e9d4ab4c7811eb4\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:28Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39: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/20220830/a79afb213ec24baaa20e940985a85943.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9bdddc94f1b64349824efbb5695ab4f0\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_30d6c638804940c78729ee2405f7ebe3\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_961f07e38e2a45e499f420bb8a402dea\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c63dba62d6be41f2a89c1748a0e7ca49\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":\"submitted\",\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_30d6c638804940c78729ee2405f7ebe3\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:27Z\",\"updated_at\":\"2022-08-30T21:39:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_94efc0ab400a478d9c69af95c5bfa4a5\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135657986\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:39:28Z\",\"updated_at\":\"2022-08-30T21:39:28Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:39:28Z\",\"shipment_id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:39:28Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:16:28Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzk0ZWZjMGFiNDAwYTQ3OGQ5YzY5YWY5NWM1YmZhNGE1\"},\"to_address\":{\"id\":\"adr_38ee82f928ac11ed854cac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:27-06:00\",\"updated_at\":\"2022-08-30T15:39:27-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38f0f2ac28ac11ed934bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:27-06:00\",\"updated_at\":\"2022-08-30T15:39:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38ee82f928ac11ed854cac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:27-06:00\",\"updated_at\":\"2022-08-30T15:39:27-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_402432e485b94d9c91305e85a7ce7d53\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:05Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477927\",\"updated_at\":\"2022-09-07T20:54:06Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3601fd5a2eef11eda2aaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:05-06:00\",\"updated_at\":\"2022-09-07T14:54:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f494e8475a04407fa8c5000c6fac9d02\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_1566395e01e94a4699597a390b980c96\",\"created_at\":\"2022-09-07T20:54:06Z\",\"updated_at\":\"2022-09-07T20:54:06Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:54: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/20220907/3431c3972bea424fad45c3f0b4a77b4f.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_f4fb96c518294c3aabbbac7ee2ebd9a6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_03ed5d883e9f4db682745665249747c4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ee9a6cca0e6946bebcc257cb417e77b5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_06e4e76fe3e34232bce82371a5b8a0a0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:05Z\",\"updated_at\":\"2022-09-07T20:54:05Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":\"submitted\",\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_06e4e76fe3e34232bce82371a5b8a0a0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:06Z\",\"updated_at\":\"2022-09-07T20:54:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_37f4240336704f55b2902d640f9e131c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477927\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:54:06Z\",\"updated_at\":\"2022-09-07T20:54:06Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:54:06Z\",\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:54:06Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:31:06Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzM3ZjQyNDAzMzY3MDRmNTViMjkwMmQ2NDBmOWUxMzFj\"},\"to_address\":{\"id\":\"adr_35ffd2472eef11ed91e7ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:05-06:00\",\"updated_at\":\"2022-09-07T14:54:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3601fd5a2eef11eda2aaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:05-06:00\",\"updated_at\":\"2022-09-07T14:54:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_35ffd2472eef11ed91e7ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:05-06:00\",\"updated_at\":\"2022-09-07T14:54:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -79,18 +79,18 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96af630e8390e788d49f001348c3", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631904eee799fa85002e0fa4", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"23765a623db979ceddcdf5d6e6025b4a\"", - "x-runtime": "0.162209", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"45bd82e61ca3c62677ffb91014d7ebee\"", + "x-runtime": "0.191940", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/shipment/regenerate_rates.json b/EasyPost.Tests/cassettes/net/shipment/regenerate_rates.json index 6541481f9..e5cd6a0ce 100644 --- a/EasyPost.Tests/cassettes/net/shipment/regenerate_rates.json +++ b/EasyPost.Tests/cassettes/net/shipment/regenerate_rates.json @@ -1,7 +1,7 @@ [ { - "Duration": 971, - "RecordedAt": "2022-08-30T15:39:33.942349-06:00", + "Duration": 880, + "RecordedAt": "2022-09-07T14:54:12.451271-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:33Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:39:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_d8cfa33ab9734e8aaf4e31f302e9e3c6\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:39:33Z\",\"updated_at\":\"2022-08-30T21:39:33Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_0473a8345178473f8602ac88e1893df5\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:39:33Z\",\"updated_at\":\"2022-08-30T21:39:33Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3c95e27928ac11edb641ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:33-06:00\",\"updated_at\":\"2022-08-30T15:39:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_ce9a41f9c1ac434289175521261fa421\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:33Z\",\"updated_at\":\"2022-08-30T21:39:33Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8b33247115e04e9199424522742391c5\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:34Z\",\"updated_at\":\"2022-08-30T21:39:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_1a101eb81f654df79f1cddace2447d2c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0457f330f38a4f2e8653d6ed72bf6560\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:34Z\",\"updated_at\":\"2022-08-30T21:39:34Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1a101eb81f654df79f1cddace2447d2c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bf2c67eab3d1430c8d2518c1f8b69547\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:34Z\",\"updated_at\":\"2022-08-30T21:39:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1a101eb81f654df79f1cddace2447d2c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9afe05f48e594871872c140ce1cbcaf3\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:34Z\",\"updated_at\":\"2022-08-30T21:39:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_1a101eb81f654df79f1cddace2447d2c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3c936bd828ac11ed8036ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:33-06:00\",\"updated_at\":\"2022-08-30T15:39:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3c95e27928ac11edb641ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:33-06:00\",\"updated_at\":\"2022-08-30T15:39:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3c936bd828ac11ed8036ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:33-06:00\",\"updated_at\":\"2022-08-30T15:39:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_1a101eb81f654df79f1cddace2447d2c\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:11Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T20:54:12Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_5d68da48910541f0bcd74298b3415a6a\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:54:11Z\",\"updated_at\":\"2022-09-07T20:54:11Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_72d668c342db43c0a0c2e5b21b50498c\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:54:11Z\",\"updated_at\":\"2022-09-07T20:54:11Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_39c2079b2eef11eda448ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:11-06:00\",\"updated_at\":\"2022-09-07T14:54:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_07cd71533ea249598b637984867f031f\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:11Z\",\"updated_at\":\"2022-09-07T20:54:11Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_b0751ce31a114b259a430d8e09e172c1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:12Z\",\"updated_at\":\"2022-09-07T20:54:12Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_cbcef22213844d50afdb159ad3a8e83d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5d2f04dfe9744bca8ee64e9f4f69fc77\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:12Z\",\"updated_at\":\"2022-09-07T20:54:12Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_cbcef22213844d50afdb159ad3a8e83d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c5d9ba3c53fa4e87b110718af899a629\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:12Z\",\"updated_at\":\"2022-09-07T20:54:12Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cbcef22213844d50afdb159ad3a8e83d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ff099e525c834d7086f4adb492bed419\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:12Z\",\"updated_at\":\"2022-09-07T20:54:12Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cbcef22213844d50afdb159ad3a8e83d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_39bf8c922eef11ed9378ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:11-06:00\",\"updated_at\":\"2022-09-07T14:54:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_39c2079b2eef11eda448ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:11-06:00\",\"updated_at\":\"2022-09-07T14:54:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_39bf8c922eef11ed9378ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:11-06:00\",\"updated_at\":\"2022-09-07T14:54:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_cbcef22213844d50afdb159ad3a8e83d\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,19 +29,19 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b5630e8395e788d4bb00134a7d", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631904f3e799faa3002e121c", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_1a101eb81f654df79f1cddace2447d2c", - "ETag": "W/\"ce07c4d9915ab081a4092e247ffab10f\"", - "x-runtime": "0.656216", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_cbcef22213844d50afdb159ad3a8e83d", + "ETag": "W/\"3ec8ee8a64e4d641d68dffc46c7cff47\"", + "x-runtime": "0.622598", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 593, - "RecordedAt": "2022-08-30T15:39:34.557858-06:00", + "Duration": 870, + "RecordedAt": "2022-09-07T14:54:13.341815-06:00", "Request": { "Body": "{\"carbon_offset\":false}", "BodyContentType": "Json", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_1a101eb81f654df79f1cddace2447d2c/rerate" + "Uri": "https://api.easypost.com/v2/shipments/shp_cbcef22213844d50afdb159ad3a8e83d/rerate" }, "Response": { - "Body": "{\"rates\":[{\"id\":\"rate_f9f6d581e52845808c4c05eedf59efe6\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:34Z\",\"updated_at\":\"2022-08-30T21:39:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_1a101eb81f654df79f1cddace2447d2c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a62ff944229c45afb103cd9c600e5c4d\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:34Z\",\"updated_at\":\"2022-08-30T21:39:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_1a101eb81f654df79f1cddace2447d2c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1caae5545fa247bfa2eb83cdb60db623\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:34Z\",\"updated_at\":\"2022-08-30T21:39:34Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1a101eb81f654df79f1cddace2447d2c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5309c08fcb664775b90eac7519602493\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:34Z\",\"updated_at\":\"2022-08-30T21:39:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1a101eb81f654df79f1cddace2447d2c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}]}", + "Body": "{\"rates\":[{\"id\":\"rate_6f569644053846588051ecd4242421cf\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:13Z\",\"updated_at\":\"2022-09-07T20:54:13Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_cbcef22213844d50afdb159ad3a8e83d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eea4aac6c1b94fbdb88d85bb705d46a3\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:13Z\",\"updated_at\":\"2022-09-07T20:54:13Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cbcef22213844d50afdb159ad3a8e83d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d3f6abc42fea4b0fa1a880f8c2cf1ead\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:13Z\",\"updated_at\":\"2022-09-07T20:54:13Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_cbcef22213844d50afdb159ad3a8e83d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_31adb4d51654474f880be7e54b8fece8\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:13Z\",\"updated_at\":\"2022-09-07T20:54:13Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cbcef22213844d50afdb159ad3a8e83d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,20 +82,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b5630e8396e788d4bb00134ada", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631904f4e799faa3002e1258", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"b787f8be5203a026af35d088cafd05af\"", - "x-runtime": "0.515619", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"642be57934dc2fe8febd19694ac488b2\"", + "x-runtime": "0.806144", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/shipment/regenerate_rates_with_carbon_offset.json b/EasyPost.Tests/cassettes/net/shipment/regenerate_rates_with_carbon_offset.json index 7aebfb7bc..c81b354ae 100644 --- a/EasyPost.Tests/cassettes/net/shipment/regenerate_rates_with_carbon_offset.json +++ b/EasyPost.Tests/cassettes/net/shipment/regenerate_rates_with_carbon_offset.json @@ -1,7 +1,7 @@ [ { - "Duration": 309, - "RecordedAt": "2022-08-30T15:39:42.444813-06:00", + "Duration": 417, + "RecordedAt": "2022-09-07T14:54:21.012112-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Dr. Steve Brule\",\"street1\":\"179 N Harbor Dr\",\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:41Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658020\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4173f0ac28ac11ed8685ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:41-06:00\",\"updated_at\":\"2022-08-30T15:39:41-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a2a06ecf3b9c44b2b10f1d288efc3bb4\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:41Z\",\"updated_at\":\"2022-08-30T21:39:41Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_3d48a539c24b4b9f812f6cb39dcb84dc\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39:42Z\",\"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/20220830/4e6abd3179e94a8284a18b2819d8f2d4.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9e6eb890db6c40c99c9ae10a8cbbdb43\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:41Z\",\"updated_at\":\"2022-08-30T21:39:41Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_da4a11ab440b4080bb619ddffd0897e4\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:41Z\",\"updated_at\":\"2022-08-30T21:39:41Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3b18c4226dde47e1963b7b118cf90b11\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:41Z\",\"updated_at\":\"2022-08-30T21:39:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fe0424fc55f0432b96aba0cac8140c3a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:41Z\",\"updated_at\":\"2022-08-30T21:39:41Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3b18c4226dde47e1963b7b118cf90b11\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_b1eb3de1a8e34f779ab27f2b3e1a40cc\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658020\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2IxZWIzZGUxYThlMzRmNzc5YWIyN2YyYjNlMWE0MGNj\"},\"to_address\":{\"id\":\"adr_4172130828ac11ed9582ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:41-06:00\",\"updated_at\":\"2022-08-30T15:39:41-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_4173f0ac28ac11ed8685ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:41-06:00\",\"updated_at\":\"2022-08-30T15:39:41-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_4172130828ac11ed9582ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:41-06:00\",\"updated_at\":\"2022-08-30T15:39:41-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:19Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478023\",\"updated_at\":\"2022-09-07T20:54:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3e8a7d112eef11eda619ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:19-06:00\",\"updated_at\":\"2022-09-07T14:54:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_9e4c6a727eb444e09652b929074c2abb\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:19Z\",\"updated_at\":\"2022-09-07T20:54:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_3ab0d03a6b294e89a87acbdd2d2721cd\",\"created_at\":\"2022-09-07T20:54:20Z\",\"updated_at\":\"2022-09-07T20:54:20Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:54:20Z\",\"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/20220907/9472ff1d5f0e4c63bf3e2cde0a776418.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_fc32faf3f4ab48f4b372dcb3590aeb9e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:20Z\",\"updated_at\":\"2022-09-07T20:54:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9ed46ed9cef44d689d3893213edc321a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_63db6fd4bad046b68f7f9cc1f60c7124\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:20Z\",\"updated_at\":\"2022-09-07T20:54:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_9ed46ed9cef44d689d3893213edc321a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_64f545f5afeb4be5ab1cfc8d484143f2\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:20Z\",\"updated_at\":\"2022-09-07T20:54:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_9ed46ed9cef44d689d3893213edc321a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b0ba12bf113143c88eeeec3ebbe92ef4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:20Z\",\"updated_at\":\"2022-09-07T20:54:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9ed46ed9cef44d689d3893213edc321a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_fc32faf3f4ab48f4b372dcb3590aeb9e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:20Z\",\"updated_at\":\"2022-09-07T20:54:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9ed46ed9cef44d689d3893213edc321a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_1171cf09db674c41a4c54459145d0b00\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478023\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:54:21Z\",\"updated_at\":\"2022-09-07T20:54:21Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_9ed46ed9cef44d689d3893213edc321a\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzExNzFjZjA5ZGI2NzRjNDFhNGM1NDQ1OTE0NWQwYjAw\"},\"to_address\":{\"id\":\"adr_3e87f7762eef11edb962ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:19-06:00\",\"updated_at\":\"2022-09-07T14:54:20-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_3e8a7d112eef11eda619ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:19-06:00\",\"updated_at\":\"2022-09-07T14:54:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3e87f7762eef11edb962ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:19-06:00\",\"updated_at\":\"2022-09-07T14:54:20-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9ed46ed9cef44d689d3893213edc321a\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,19 +29,19 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b4630e839de788d4c000134df1", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a29631904fbe799faa8002e14eb", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_b432e9988b8b44bd89f46dca02116d0e", - "ETag": "W/\"5cf978c98e43ff3b6e69980d520e384c\"", - "x-runtime": "0.966945", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_9ed46ed9cef44d689d3893213edc321a", + "ETag": "W/\"dc8cbaecd70100fb94bc303de800283e\"", + "x-runtime": "1.160908", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 430, - "RecordedAt": "2022-08-30T15:39:42.908107-06:00", + "Duration": 434, + "RecordedAt": "2022-09-07T14:54:21.47302-06:00", "Request": { "Body": "{\"carbon_offset\":true}", "BodyContentType": "Json", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_b432e9988b8b44bd89f46dca02116d0e/rerate" + "Uri": "https://api.easypost.com/v2/shipments/shp_9ed46ed9cef44d689d3893213edc321a/rerate" }, "Response": { - "Body": "{\"rates\":[{\"id\":\"rate_97d29dbb92bc45d09b782a4147606420\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_a3b0608063a34d09b2ad3fba1a4cdf87\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_17ff8ca37073419f923c0c1621522681\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_b877d9c0affa405bb07f92deeb2a7435\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}]}", + "Body": "{\"rates\":[{\"id\":\"rate_6d2bebed536640ebb51f91a3a3665764\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:21Z\",\"updated_at\":\"2022-09-07T20:54:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9ed46ed9cef44d689d3893213edc321a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_53c7695e89f347bb9a180c2f26c395a9\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:21Z\",\"updated_at\":\"2022-09-07T20:54:21Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_9ed46ed9cef44d689d3893213edc321a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_87c31f25004b4d2daf484fa39c2e7bde\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:21Z\",\"updated_at\":\"2022-09-07T20:54:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9ed46ed9cef44d689d3893213edc321a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_07b3d5fc37fa443799f4a8110eb84300\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:21Z\",\"updated_at\":\"2022-09-07T20:54:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_9ed46ed9cef44d689d3893213edc321a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,18 +82,18 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b4630e839ee788d4c000134e79", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a29631904fde799faa8002e1555", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"116babd8471dbc1eb7468b3c4fc06001\"", - "x-runtime": "0.354148", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"2b7634ff3211fec39639629ffdddd33f\"", + "x-runtime": "0.342188", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/shipment/retrieve.json b/EasyPost.Tests/cassettes/net/shipment/retrieve.json index 9053fba5e..9ed1146b4 100644 --- a/EasyPost.Tests/cassettes/net/shipment/retrieve.json +++ b/EasyPost.Tests/cassettes/net/shipment/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 824, - "RecordedAt": "2022-08-30T15:39:37.497705-06:00", + "Duration": 947, + "RecordedAt": "2022-09-07T14:54:16.39446-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:37Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:39:37Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_a01764a87f1c4b0b9618ff50f796a1e9\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_264a8ccf6c2542e4a387a75fe5338571\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3ecf731c28ac11edb6dbac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:37-06:00\",\"updated_at\":\"2022-08-30T15:39:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_ece6d798a6e340828fbbbbdc5e08dfa2\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_211523a6e7ac4ad79f5344860c484bb0\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_caca42c437f746dc967783b3284aaed8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fd2fd0cb1368407d9ebe01aba800ff54\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_caca42c437f746dc967783b3284aaed8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1c31d6f77fa2482f8da0bb88a523fa2a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_caca42c437f746dc967783b3284aaed8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_84edd4fd28e64a3db6ad222c0d2b9582\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_caca42c437f746dc967783b3284aaed8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3ecdb90428ac11edb6daac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:37-06:00\",\"updated_at\":\"2022-08-30T15:39:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3ecf731c28ac11edb6dbac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:37-06:00\",\"updated_at\":\"2022-08-30T15:39:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3ecdb90428ac11edb6daac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:37-06:00\",\"updated_at\":\"2022-08-30T15:39:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_caca42c437f746dc967783b3284aaed8\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:15Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T20:54:16Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_1e099d1e58cc47e69071321ff02cdb05\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:54:15Z\",\"updated_at\":\"2022-09-07T20:54:15Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_2ca0992bf69b44c5ab66dd86f698c7ca\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:54:15Z\",\"updated_at\":\"2022-09-07T20:54:15Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3c11efe52eef11eda534ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:15-06:00\",\"updated_at\":\"2022-09-07T14:54:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a48a7ecf16af42dcbd4ea83bd89dfcb6\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:15Z\",\"updated_at\":\"2022-09-07T20:54:15Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_fc9319b678b547a7b73cc6820dd97957\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:16Z\",\"updated_at\":\"2022-09-07T20:54:16Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b61cfa3a5672442ca05a0b2148fe11af\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_078a65f8e8164c32a803fc6c030b24d6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:16Z\",\"updated_at\":\"2022-09-07T20:54:16Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b61cfa3a5672442ca05a0b2148fe11af\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6ee0348a304c441d9a6f13766766cfab\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:16Z\",\"updated_at\":\"2022-09-07T20:54:16Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b61cfa3a5672442ca05a0b2148fe11af\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_69c2e231c7994b06883bf2cc199bb12e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:16Z\",\"updated_at\":\"2022-09-07T20:54:16Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b61cfa3a5672442ca05a0b2148fe11af\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3c0ee2132eef11edb8e6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:15-06:00\",\"updated_at\":\"2022-09-07T14:54:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3c11efe52eef11eda534ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:15-06:00\",\"updated_at\":\"2022-09-07T14:54:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3c0ee2132eef11edb8e6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:15-06:00\",\"updated_at\":\"2022-09-07T14:54:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_b61cfa3a5672442ca05a0b2148fe11af\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,20 +29,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e8399e788d4bd00134be1", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2b631904f7e799faa5002e1371", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_caca42c437f746dc967783b3284aaed8", - "ETag": "W/\"f872d294b725b26ec3d31014d6c7c619\"", - "x-runtime": "0.490178", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_b61cfa3a5672442ca05a0b2148fe11af", + "ETag": "W/\"daad80b251ac1f51c44fcf4647c91efd\"", + "x-runtime": "0.686086", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", + "x-canary": "direct", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, @@ -53,8 +54,8 @@ } }, { - "Duration": 373, - "RecordedAt": "2022-08-30T15:39:37.892782-06:00", + "Duration": 129, + "RecordedAt": "2022-09-07T14:54:16.544299-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +67,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_caca42c437f746dc967783b3284aaed8" + "Uri": "https://api.easypost.com/v2/shipments/shp_b61cfa3a5672442ca05a0b2148fe11af" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:37Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:39:37Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_a01764a87f1c4b0b9618ff50f796a1e9\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_264a8ccf6c2542e4a387a75fe5338571\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3ecf731c28ac11edb6dbac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:37-06:00\",\"updated_at\":\"2022-08-30T15:39:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_ece6d798a6e340828fbbbbdc5e08dfa2\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_211523a6e7ac4ad79f5344860c484bb0\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_caca42c437f746dc967783b3284aaed8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fd2fd0cb1368407d9ebe01aba800ff54\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_caca42c437f746dc967783b3284aaed8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1c31d6f77fa2482f8da0bb88a523fa2a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_caca42c437f746dc967783b3284aaed8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_84edd4fd28e64a3db6ad222c0d2b9582\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:37Z\",\"updated_at\":\"2022-08-30T21:39:37Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_caca42c437f746dc967783b3284aaed8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3ecdb90428ac11edb6daac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:37-06:00\",\"updated_at\":\"2022-08-30T15:39:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3ecf731c28ac11edb6dbac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:37-06:00\",\"updated_at\":\"2022-08-30T15:39:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3ecdb90428ac11edb6daac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:37-06:00\",\"updated_at\":\"2022-08-30T15:39:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_caca42c437f746dc967783b3284aaed8\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:15Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T20:54:16Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_1e099d1e58cc47e69071321ff02cdb05\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T20:54:15Z\",\"updated_at\":\"2022-09-07T20:54:15Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_2ca0992bf69b44c5ab66dd86f698c7ca\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T20:54:15Z\",\"updated_at\":\"2022-09-07T20:54:15Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3c11efe52eef11eda534ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:15-06:00\",\"updated_at\":\"2022-09-07T14:54:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a48a7ecf16af42dcbd4ea83bd89dfcb6\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:15Z\",\"updated_at\":\"2022-09-07T20:54:15Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_fc9319b678b547a7b73cc6820dd97957\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:16Z\",\"updated_at\":\"2022-09-07T20:54:16Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b61cfa3a5672442ca05a0b2148fe11af\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_078a65f8e8164c32a803fc6c030b24d6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:16Z\",\"updated_at\":\"2022-09-07T20:54:16Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b61cfa3a5672442ca05a0b2148fe11af\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6ee0348a304c441d9a6f13766766cfab\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:16Z\",\"updated_at\":\"2022-09-07T20:54:16Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b61cfa3a5672442ca05a0b2148fe11af\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_69c2e231c7994b06883bf2cc199bb12e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:16Z\",\"updated_at\":\"2022-09-07T20:54:16Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b61cfa3a5672442ca05a0b2148fe11af\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3c0ee2132eef11edb8e6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:15-06:00\",\"updated_at\":\"2022-09-07T14:54:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3c11efe52eef11eda534ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:15-06:00\",\"updated_at\":\"2022-09-07T14:54:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3c0ee2132eef11edb8e6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:15-06:00\",\"updated_at\":\"2022-09-07T14:54:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_b61cfa3a5672442ca05a0b2148fe11af\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -79,21 +80,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e8399e788d4bd00134c2b", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2b631904f8e799faa5002e13b0", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"f872d294b725b26ec3d31014d6c7c619\"", - "x-runtime": "0.283499", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"daad80b251ac1f51c44fcf4647c91efd\"", + "x-runtime": "0.073435", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/shipment/smartrate.json b/EasyPost.Tests/cassettes/net/shipment/smartrate.json index 51fff24c1..0b35c3c0c 100644 --- a/EasyPost.Tests/cassettes/net/shipment/smartrate.json +++ b/EasyPost.Tests/cassettes/net/shipment/smartrate.json @@ -1,7 +1,7 @@ [ { - "Duration": 11, - "RecordedAt": "2022-08-30T15:39:31.89383-06:00", + "Duration": 926, + "RecordedAt": "2022-09-07T14:54:10.29569-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:39:31Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:39:31Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3b56cf5028ac11edb600ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:31-06:00\",\"updated_at\":\"2022-08-30T15:39:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5e3e9d1aa2fd4b8d818ba81f993a86ff\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:31Z\",\"updated_at\":\"2022-08-30T21:39:31Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_556378d5650348b78a94896873a964e4\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:31Z\",\"updated_at\":\"2022-08-30T21:39:31Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_35f70447c0344e3ea3f1485017dc2876\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bc3c6aaeea074967a90d203423fab736\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:31Z\",\"updated_at\":\"2022-08-30T21:39:31Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_35f70447c0344e3ea3f1485017dc2876\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_23cc44fce352449b9467dcdb6d4e8e6f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:31Z\",\"updated_at\":\"2022-08-30T21:39:31Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_35f70447c0344e3ea3f1485017dc2876\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_edaf6f4da10d43c49ad3eb8f10122986\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:31Z\",\"updated_at\":\"2022-08-30T21:39:31Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_35f70447c0344e3ea3f1485017dc2876\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3b55176328ac11edb5feac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:31-06:00\",\"updated_at\":\"2022-08-30T15:39:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3b56cf5028ac11edb600ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:31-06:00\",\"updated_at\":\"2022-08-30T15:39:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3b55176328ac11edb5feac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:31-06:00\",\"updated_at\":\"2022-08-30T15:39:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_35f70447c0344e3ea3f1485017dc2876\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T20:54:09Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T20:54:10Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3873cc0e2eef11edb817ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:09-06:00\",\"updated_at\":\"2022-09-07T14:54:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_c8b28f1594ad49de88372bc2161a923a\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:54:09Z\",\"updated_at\":\"2022-09-07T20:54:09Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_575a75e4d20a45a19992b5c8ef743a2d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:10Z\",\"updated_at\":\"2022-09-07T20:54:10Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d9dfc37d32ed416d93c90c37c13f7b31\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_50cf2bbb86a94283b0f2aad81dc607bd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:10Z\",\"updated_at\":\"2022-09-07T20:54:10Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_d9dfc37d32ed416d93c90c37c13f7b31\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_300ef6b1c8cd4fe4be94badaaeec4b56\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:10Z\",\"updated_at\":\"2022-09-07T20:54:10Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d9dfc37d32ed416d93c90c37c13f7b31\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e536c979f37b45e496dfd22c5a62a19e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:54:10Z\",\"updated_at\":\"2022-09-07T20:54:10Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_d9dfc37d32ed416d93c90c37c13f7b31\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_38711f742eef11ed9ba0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:09-06:00\",\"updated_at\":\"2022-09-07T14:54:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3873cc0e2eef11edb817ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:09-06:00\",\"updated_at\":\"2022-09-07T14:54:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38711f742eef11ed9ba0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:09-06:00\",\"updated_at\":\"2022-09-07T14:54:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_d9dfc37d32ed416d93c90c37c13f7b31\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,19 +29,19 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e8393e788d4a2001349b4", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a26631904f1e799fa8a002e115e", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_35f70447c0344e3ea3f1485017dc2876", - "ETag": "W/\"68cba3d9cb7f734080deb4a293beeb1f\"", - "x-runtime": "0.697364", + "Location": "/api/v2/shipments/shp_d9dfc37d32ed416d93c90c37c13f7b31", + "ETag": "W/\"2cdc70758822564174fcaa9121cefc05\"", + "x-runtime": "0.607674", "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 163, - "RecordedAt": "2022-08-30T15:39:32.084961-06:00", + "Duration": 230, + "RecordedAt": "2022-09-07T14:54:10.543925-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_35f70447c0344e3ea3f1485017dc2876/smartrate" + "Uri": "https://api.easypost.com/v2/shipments/shp_d9dfc37d32ed416d93c90c37c13f7b31/smartrate" }, "Response": { - "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_556378d5650348b78a94896873a964e4\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_35f70447c0344e3ea3f1485017dc2876\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-08-30T21:39:31Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_bc3c6aaeea074967a90d203423fab736\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_35f70447c0344e3ea3f1485017dc2876\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:39:31Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_23cc44fce352449b9467dcdb6d4e8e6f\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_35f70447c0344e3ea3f1485017dc2876\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:39:31Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:39:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_edaf6f4da10d43c49ad3eb8f10122986\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_35f70447c0344e3ea3f1485017dc2876\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-08-30T21:39:31Z\"}]}", + "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:10Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_575a75e4d20a45a19992b5c8ef743a2d\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_d9dfc37d32ed416d93c90c37c13f7b31\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":1,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-09-07T20:54:10Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:10Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_50cf2bbb86a94283b0f2aad81dc607bd\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_d9dfc37d32ed416d93c90c37c13f7b31\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-09-07T20:54:10Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:10Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_300ef6b1c8cd4fe4be94badaaeec4b56\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_d9dfc37d32ed416d93c90c37c13f7b31\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":4,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-09-07T20:54:10Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T20:54:10Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_e536c979f37b45e496dfd22c5a62a19e\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_d9dfc37d32ed416d93c90c37c13f7b31\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2022-09-07T20:54:10Z\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -79,20 +79,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", + "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e8394e788d4a2001349e5", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a26631904f2e799fa8a002e11a9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"56ed07d19e3359a3356c1a27e78877f3\"", - "x-runtime": "0.071313", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"5caf1e95fa69039c804d5b435448e842\"", + "x-runtime": "0.173977", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/tracker/all.json b/EasyPost.Tests/cassettes/net/tracker/all.json index 0a1099d09..cb9d473fa 100644 --- a/EasyPost.Tests/cassettes/net/tracker/all.json +++ b/EasyPost.Tests/cassettes/net/tracker/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 357, - "RecordedAt": "2022-08-24T13:53:32.293344-06:00", + "Duration": 397, + "RecordedAt": "2022-09-07T14:53:56.251316-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,7 +16,7 @@ "Uri": "https://api.easypost.com/v2/trackers?page_size=5" }, "Response": { - "Body": "{\"trackers\":[{\"id\":\"trk_24994061c14640deacab9bd8d895c70f\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:31Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:31Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:31Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}],\"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/djE6dHJrXzI0OTk0MDYxYzE0NjQwZGVhY2FiOWJkOGQ4OTVjNzBm\"},{\"id\":\"trk_5380d569c9bd464989cb67b9b014f004\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780418\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:28Z\",\"updated_at\":\"2022-08-24T19:53:28Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:28Z\",\"shipment_id\":\"shp_9afae42b63e14a408cd15c8c3dc840fb\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:28Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:28Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzUzODBkNTY5YzliZDQ2NDk4OWNiNjdiOWIwMTRmMDA0\"},{\"id\":\"trk_3f73efc9b5aa4d24b2c150acb60954ba\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780401\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:27Z\",\"updated_at\":\"2022-08-24T19:53:27Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:27Z\",\"shipment_id\":\"shp_2367124b018842719cb1278898f01a6f\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzNmNzNlZmM5YjVhYTRkMjRiMmMxNTBhY2I2MDk1NGJh\"},{\"id\":\"trk_ae259ef2e6fe4ebb8553a3b00ad98304\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780395\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:25Z\",\"updated_at\":\"2022-08-24T19:53:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:25Z\",\"shipment_id\":\"shp_6044dc41c60e49059cf97c142ed6415c\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:25Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:25Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2FlMjU5ZWYyZTZmZTRlYmI4NTUzYTNiMDBhZDk4MzA0\"},{\"id\":\"trk_31eea78debbc489589bf91d94a338d75\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780371\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:23Z\",\"updated_at\":\"2022-08-24T19:53:23Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:23Z\",\"shipment_id\":\"shp_61c1dae37b494e788ea8d7b1bf82f31c\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:23Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:23Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzMxZWVhNzhkZWJiYzQ4OTU4OWJmOTFkOTRhMzM4ZDc1\"}],\"has_more\":true}", + "Body": "{\"trackers\":[{\"id\":\"trk_aedb1010dad547a3a1c9d68ff7304df2\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:55Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:55Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:55Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}],\"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/djE6dHJrX2FlZGIxMDEwZGFkNTQ3YTNhMWM5ZDY4ZmY3MzA0ZGYy\"},{\"id\":\"trk_342be9c92a4f4602bc3041746efd692e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477736\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:33Z\",\"updated_at\":\"2022-09-07T20:53:33Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:33Z\",\"shipment_id\":\"shp_1dc37149affe41e5a69ac9988bfd626e\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:33Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:33Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzM0MmJlOWM5MmE0ZjQ2MDJiYzMwNDE3NDZlZmQ2OTJl\"},{\"id\":\"trk_8cfe849c4bcb4779ba29f5e8f556344d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477729\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:31Z\",\"updated_at\":\"2022-09-07T20:53:31Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:31Z\",\"shipment_id\":\"shp_f8ce592cf45943eb87d6927208097ed4\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:31Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:31Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzhjZmU4NDljNGJjYjQ3NzliYTI5ZjVlOGY1NTYzNDRk\"},{\"id\":\"trk_033c6419c6a3436b903e8f922385aba1\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477712\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:28Z\",\"updated_at\":\"2022-09-07T20:53:28Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:28Z\",\"shipment_id\":\"shp_b5df82741a4e4de2898cf99692074ca5\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:28Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:28Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzAzM2M2NDE5YzZhMzQzNmI5MDNlOGY5MjIzODVhYmEx\"},{\"id\":\"trk_9a52dee51c6f4f029f9fd8b16dc071d5\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477705\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:26Z\",\"updated_at\":\"2022-09-07T20:53:26Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:26Z\",\"shipment_id\":\"shp_4fc63f964f504c68b103beae470c1687\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:26Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:26Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzlhNTJkZWU1MWM2ZjRmMDI5ZjlmZDhiMTZkYzA3MWQ1\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -31,13 +31,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681bcf7a7603b00794a91", + "x-ep-request-uuid": "3bde9a2c631904e4e799f6e7002e0bd7", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"3034c1786b8057fcd85f8010e63b244d\"", - "x-runtime": "0.167531", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"d86a55a32352e444b19494edc61ad919\"", + "x-runtime": "0.133431", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/net/tracker/create.json b/EasyPost.Tests/cassettes/net/tracker/create.json index 36bc94e4e..23ee0e543 100644 --- a/EasyPost.Tests/cassettes/net/tracker/create.json +++ b/EasyPost.Tests/cassettes/net/tracker/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 308, - "RecordedAt": "2022-08-24T13:53:32.629374-06:00", + "Duration": 398, + "RecordedAt": "2022-09-07T14:53:56.669901-06:00", "Request": { "Body": "{\"carrier\":\"USPS\",\"tracking_code\":\"EZ1000000001\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/trackers" }, "Response": { - "Body": "{\"id\":\"trk_d609acf8a28f48efa794a00c2fd0dc7b\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:32Z\",\"updated_at\":\"2022-08-24T19:53:32Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:32Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:32Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:32Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2Q2MDlhY2Y4YTI4ZjQ4ZWZhNzk0YTAwYzJmZDBkYzdi\",\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}]}", + "Body": "{\"id\":\"trk_e7bfeace194345599fabcdbabc480ee9\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:56Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:56Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:56Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2U3YmZlYWNlMTk0MzQ1NTk5ZmFiY2RiYWJjNDgwZWU5\",\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bcf7dc83b700794ad8", + "x-ep-request-uuid": "3bde9a29631904e4e799f6ed002e0bff", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/trackers/trk_d609acf8a28f48efa794a00c2fd0dc7b", - "ETag": "W/\"e19d6b70bc2443892ad37b8101521f26\"", - "x-runtime": "0.123555", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/trackers/trk_e7bfeace194345599fabcdbabc480ee9", + "ETag": "W/\"5693fabbd9d0163df19fa7e1d6754123\"", + "x-runtime": "0.141851", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/tracker/create_list.json b/EasyPost.Tests/cassettes/net/tracker/create_list.json index 0ad7ed1c0..0e970e060 100644 --- a/EasyPost.Tests/cassettes/net/tracker/create_list.json +++ b/EasyPost.Tests/cassettes/net/tracker/create_list.json @@ -1,7 +1,7 @@ [ { - "Duration": 235, - "RecordedAt": "2022-08-24T13:53:32.886747-06:00", + "Duration": 305, + "RecordedAt": "2022-09-07T14:53:57.002244-06:00", "Request": { "Body": "{\"trackers\":{\"0\":{\"tracking_code\":\"EZ1000000001\"},\"1\":{\"tracking_code\":\"EZ1000000002\"},\"2\":{\"tracking_code\":\"EZ1000000003\"}}}", "BodyContentType": "Json", @@ -22,29 +22,29 @@ "Body": "{}", "BodyContentType": "Json", "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681bcf7b962f600794b0f", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.039193", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "2" + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a28631904e5e799f70c002e0c34", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.037094", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/tracker/retrieve.json b/EasyPost.Tests/cassettes/net/tracker/retrieve.json index eb7d539d4..d49689cb3 100644 --- a/EasyPost.Tests/cassettes/net/tracker/retrieve.json +++ b/EasyPost.Tests/cassettes/net/tracker/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 419, - "RecordedAt": "2022-08-24T13:53:31.650508-06:00", + "Duration": 527, + "RecordedAt": "2022-09-07T14:53:55.569509-06:00", "Request": { "Body": "{\"carrier\":\"USPS\",\"tracking_code\":\"EZ1000000001\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/trackers" }, "Response": { - "Body": "{\"id\":\"trk_24994061c14640deacab9bd8d895c70f\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:31Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:31Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:31Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzI0OTk0MDYxYzE0NjQwZGVhY2FiOWJkOGQ4OTVjNzBm\",\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}]}", + "Body": "{\"id\":\"trk_aedb1010dad547a3a1c9d68ff7304df2\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:55Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:55Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:55Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2FlZGIxMDEwZGFkNTQ3YTNhMWM5ZDY4ZmY3MzA0ZGYy\",\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bbf7a5a4ea00794a26", + "x-ep-request-uuid": "3bde9a2a631904e3e799f6a4002e0b85", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/trackers/trk_24994061c14640deacab9bd8d895c70f", - "ETag": "W/\"575fc32c037b37048814778809f8a61a\"", - "x-runtime": "0.150314", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/trackers/trk_aedb1010dad547a3a1c9d68ff7304df2", + "ETag": "W/\"32c529aa2f0d3cd74de3365ccf2cea19\"", + "x-runtime": "0.161847", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 181, - "RecordedAt": "2022-08-24T13:53:31.904131-06:00", + "Duration": 106, + "RecordedAt": "2022-09-07T14:53:55.794141-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/trackers/trk_24994061c14640deacab9bd8d895c70f" + "Uri": "https://api.easypost.com/v2/trackers/trk_aedb1010dad547a3a1c9d68ff7304df2" }, "Response": { - "Body": "{\"id\":\"trk_24994061c14640deacab9bd8d895c70f\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:31Z\",\"updated_at\":\"2022-08-24T19:53:31Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:31Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:31Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:31Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}],\"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/djE6dHJrXzI0OTk0MDYxYzE0NjQwZGVhY2FiOWJkOGQ4OTVjNzBm\"}", + "Body": "{\"id\":\"trk_aedb1010dad547a3a1c9d68ff7304df2\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:53:55Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:53:55Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:30:55Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}],\"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/djE6dHJrX2FlZGIxMDEwZGFkNTQ3YTNhMWM5ZDY4ZmY3MzA0ZGYy\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bbf7a5a4ea00794a52", + "x-ep-request-uuid": "3bde9a2a631904e3e799f6a4002e0bb0", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"4e73a29294fa9a1ed1f5d7e038d88350\"", - "x-runtime": "0.141100", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"caaee63341cb4124b14265816129f32a\"", + "x-runtime": "0.046770", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/net/user/create.json b/EasyPost.Tests/cassettes/net/user/create.json index 07f9a6e41..4763a61c7 100644 --- a/EasyPost.Tests/cassettes/net/user/create.json +++ b/EasyPost.Tests/cassettes/net/user/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 953, - "RecordedAt": "2022-08-24T13:53:36.578186-06:00", + "Duration": 122, + "RecordedAt": "2022-09-07T14:54:00.441205-06:00", "Request": { "Body": "{\"name\":\"Test User\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/users" }, "Response": { - "Body": "{\"id\":\"user_76db3a16008f4d5ab35dc628f73805b1\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:36Z\",\"children\":[],\"api_keys\":[]}", + "Body": "{\"id\":\"user_087649e99c074cf0abf435383f48a1c7\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T20:53:59Z\",\"children\":[],\"api_keys\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bff7db5de800794ccf", + "x-ep-request-uuid": "3bde9a2a631904e7e799fa62002e0d48", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"01ed60c9dee4418d67cf33d40e1ff91f\"", - "x-runtime": "0.770274", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"fabd12847418721c2b49f99badafa00e\"", + "x-runtime": "0.833094", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -52,8 +52,8 @@ } }, { - "Duration": 77, - "RecordedAt": "2022-08-24T13:53:36.666711-06:00", + "Duration": 91, + "RecordedAt": "2022-09-07T14:54:00.54363-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_76db3a16008f4d5ab35dc628f73805b1" + "Uri": "https://api.easypost.com/v2/users/user_087649e99c074cf0abf435383f48a1c7" }, "Response": { - "Body": "{\"id\":\"user_76db3a16008f4d5ab35dc628f73805b1\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:36Z\",\"children\":[]}", + "Body": "{\"id\":\"user_087649e99c074cf0abf435383f48a1c7\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T20:53:59Z\",\"children\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,13 +83,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681c0f7db5de800794d3a", + "x-ep-request-uuid": "3bde9a2a631904e8e799fa62002e0d96", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"47ea62966a098499501cb0b990169f55\"", - "x-runtime": "0.039813", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"5cb90d7bf0794a0e5a533475be6cedea\"", + "x-runtime": "0.035129", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -101,8 +101,8 @@ } }, { - "Duration": 163, - "RecordedAt": "2022-08-24T13:53:36.839646-06:00", + "Duration": 366, + "RecordedAt": "2022-09-07T14:54:00.91903-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,7 +114,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_76db3a16008f4d5ab35dc628f73805b1" + "Uri": "https://api.easypost.com/v2/users/user_087649e99c074cf0abf435383f48a1c7" }, "Response": { "Body": "", @@ -123,23 +123,23 @@ "Expires": "0" }, "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681c0f7db5de800794d49", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.120118", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2a631904e8e799fa62002e0d9c", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.119647", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 204, "Message": "No Content" diff --git a/EasyPost.Tests/cassettes/net/user/delete.json b/EasyPost.Tests/cassettes/net/user/delete.json index e886eece7..4bad9f345 100644 --- a/EasyPost.Tests/cassettes/net/user/delete.json +++ b/EasyPost.Tests/cassettes/net/user/delete.json @@ -1,7 +1,7 @@ [ { - "Duration": 898, - "RecordedAt": "2022-08-24T13:53:37.756524-06:00", + "Duration": 87, + "RecordedAt": "2022-09-07T14:54:02.019057-06:00", "Request": { "Body": "{\"name\":\"Test User\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/users" }, "Response": { - "Body": "{\"id\":\"user_55ea206232f04d9f9cd56e87aa28316b\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:37Z\",\"children\":[],\"api_keys\":[]}", + "Body": "{\"id\":\"user_fc164e80b61a45b0ba20981002fd67a3\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T20:54:01Z\",\"children\":[],\"api_keys\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681c1f7ed770e00794d75", + "x-ep-request-uuid": "3bde9a29631904e9e799fa66002e0dd2", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"bfc3229221d3504f9641520cf3e55851\"", - "x-runtime": "0.700384", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"6d5a8ade2d9e2f60dfdcb36fc0103e7b\"", + "x-runtime": "0.809056", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 219, - "RecordedAt": "2022-08-24T13:53:37.986162-06:00", + "Duration": 180, + "RecordedAt": "2022-09-07T14:54:02.209317-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,7 +65,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_55ea206232f04d9f9cd56e87aa28316b" + "Uri": "https://api.easypost.com/v2/users/user_fc164e80b61a45b0ba20981002fd67a3" }, "Response": { "Body": "", @@ -74,23 +74,23 @@ "Expires": "0" }, "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681c1f7ed770e00794dda", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.180316", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a29631904eae799fa66002e0e0e", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.114227", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 204, "Message": "No Content" diff --git a/EasyPost.Tests/cassettes/net/user/retrieve.json b/EasyPost.Tests/cassettes/net/user/retrieve.json index d872c959c..64be0766d 100644 --- a/EasyPost.Tests/cassettes/net/user/retrieve.json +++ b/EasyPost.Tests/cassettes/net/user/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 477, - "RecordedAt": "2022-08-24T13:53:34.695428-06:00", + "Duration": 564, + "RecordedAt": "2022-09-07T14:53:58.818704-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -22,26 +22,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "3964" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681bef7dbff8f00794c1a", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", - "x-runtime": "0.293810", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631904e6e799fa45002e0cdc", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", + "x-runtime": "0.302537", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" @@ -49,8 +49,8 @@ } }, { - "Duration": 289, - "RecordedAt": "2022-08-24T13:53:35.014771-06:00", + "Duration": 473, + "RecordedAt": "2022-09-07T14:53:59.305086-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -71,26 +71,27 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "3964" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681bef7dbff8f00794c49", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", - "x-runtime": "0.248029", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631904e6e799fa45002e0d07", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", + "x-runtime": "0.407796", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/user/retrieve_me.json b/EasyPost.Tests/cassettes/net/user/retrieve_me.json index 7ac7a3352..c6a44edc0 100644 --- a/EasyPost.Tests/cassettes/net/user/retrieve_me.json +++ b/EasyPost.Tests/cassettes/net/user/retrieve_me.json @@ -1,7 +1,7 @@ [ { - "Duration": 418, - "RecordedAt": "2022-08-24T13:53:38.4164-06:00", + "Duration": 690, + "RecordedAt": "2022-09-07T14:54:02.917982-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -22,26 +22,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "3964" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681c2e68c386400794e09", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", - "x-runtime": "0.239131", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2a631904eae799fa81002e0e2a", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", + "x-runtime": "0.440660", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/user/update.json b/EasyPost.Tests/cassettes/net/user/update.json index c9de2684b..35c8293c8 100644 --- a/EasyPost.Tests/cassettes/net/user/update.json +++ b/EasyPost.Tests/cassettes/net/user/update.json @@ -1,7 +1,7 @@ [ { - "Duration": 966, - "RecordedAt": "2022-08-24T13:53:33.697172-06:00", + "Duration": 942, + "RecordedAt": "2022-09-07T14:53:57.713369-06:00", "Request": { "Body": "{\"name\":\"Test User\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/users" }, "Response": { - "Body": "{\"id\":\"user_d73a9ad075e94f7aa22bf1b558f6e73b\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:33Z\",\"children\":[],\"api_keys\":[]}", + "Body": "{\"id\":\"user_1bac97dc014d444f8a39981d1cd742e3\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T20:53:57Z\",\"children\":[],\"api_keys\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bdf800357900794b1a", + "x-ep-request-uuid": "3bde9a2c631904e5e799f70f002e0c3d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"d7bac1febc44adc76b01890e9bb63d1c\"", - "x-runtime": "0.765228", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"d54ed4b3f08554b23049249fa9aea619\"", + "x-runtime": "0.690119", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +53,8 @@ } }, { - "Duration": 172, - "RecordedAt": "2022-08-24T13:53:33.884742-06:00", + "Duration": 212, + "RecordedAt": "2022-09-07T14:53:57.941588-06:00", "Request": { "Body": "{\"name\":\"New Name\"}", "BodyContentType": "Json", @@ -68,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_d73a9ad075e94f7aa22bf1b558f6e73b" + "Uri": "https://api.easypost.com/v2/users/user_1bac97dc014d444f8a39981d1cd742e3" }, "Response": { - "Body": "{\"id\":\"user_d73a9ad075e94f7aa22bf1b558f6e73b\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"New Name\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:33Z\",\"children\":[]}", + "Body": "{\"id\":\"user_1bac97dc014d444f8a39981d1cd742e3\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"New Name\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T20:53:57Z\",\"children\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -86,15 +87,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bdf800357900794baf", + "x-ep-request-uuid": "3bde9a2c631904e5e799f70f002e0c99", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"ae829aea1827ccdda7b70089e1a85c5d\"", - "x-runtime": "0.134915", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"aac2c2a2f82a86d770ac7ea9d4a5be39\"", + "x-runtime": "0.132597", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, @@ -105,8 +105,8 @@ } }, { - "Duration": 130, - "RecordedAt": "2022-08-24T13:53:34.027256-06:00", + "Duration": 98, + "RecordedAt": "2022-09-07T14:53:58.053418-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -118,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_d73a9ad075e94f7aa22bf1b558f6e73b" + "Uri": "https://api.easypost.com/v2/users/user_1bac97dc014d444f8a39981d1cd742e3" }, "Response": { - "Body": "{\"id\":\"user_d73a9ad075e94f7aa22bf1b558f6e73b\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"New Name\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:33Z\",\"children\":[]}", + "Body": "{\"id\":\"user_1bac97dc014d444f8a39981d1cd742e3\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"New Name\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T20:53:57Z\",\"children\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -136,15 +136,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bef800357900794bc9", + "x-ep-request-uuid": "3bde9a2c631904e6e799f70f002e0cb0", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"ae829aea1827ccdda7b70089e1a85c5d\"", - "x-runtime": "0.092685", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"aac2c2a2f82a86d770ac7ea9d4a5be39\"", + "x-runtime": "0.043056", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -154,8 +154,8 @@ } }, { - "Duration": 161, - "RecordedAt": "2022-08-24T13:53:34.203315-06:00", + "Duration": 175, + "RecordedAt": "2022-09-07T14:53:58.239224-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -167,7 +167,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_d73a9ad075e94f7aa22bf1b558f6e73b" + "Uri": "https://api.easypost.com/v2/users/user_1bac97dc014d444f8a39981d1cd742e3" }, "Response": { "Body": "", @@ -176,24 +176,23 @@ "Expires": "0" }, "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681bef800357900794bda", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.124038", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631904e6e799f70f002e0cba", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.115976", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 204, "Message": "No Content" diff --git a/EasyPost.Tests/cassettes/net/user/update_brand.json b/EasyPost.Tests/cassettes/net/user/update_brand.json index ab8daf723..15fb949a2 100644 --- a/EasyPost.Tests/cassettes/net/user/update_brand.json +++ b/EasyPost.Tests/cassettes/net/user/update_brand.json @@ -1,7 +1,7 @@ [ { - "Duration": 73, - "RecordedAt": "2022-08-24T13:53:32.302772-06:00", + "Duration": 149, + "RecordedAt": "2022-09-07T14:53:56.19152-06:00", "Request": { "Body": "{\"name\":\"Test User\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/users" }, "Response": { - "Body": "{\"id\":\"user_4709258a632949c3aa647fa5d789c3f5\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:31Z\",\"children\":[],\"api_keys\":[]}", + "Body": "{\"id\":\"user_e3d49bce4b8b4eb9974c8ebcd524fa1b\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T20:53:55Z\",\"children\":[],\"api_keys\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681bbf7a6ba7100794a2a", + "x-ep-request-uuid": "3bde9a2c631904e3e799f6a6002e0b91", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"f2a8b8f628507b10268ab614c26083ad\"", - "x-runtime": "0.788858", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"8a95e5e545509dba131cfbe8426f71d4\"", + "x-runtime": "0.688093", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 78, - "RecordedAt": "2022-08-24T13:53:32.414053-06:00", + "Duration": 134, + "RecordedAt": "2022-09-07T14:53:56.37032-06:00", "Request": { "Body": "{\"color\":\"#123456\"}", "BodyContentType": "Json", @@ -68,10 +68,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_4709258a632949c3aa647fa5d789c3f5/brand" + "Uri": "https://api.easypost.com/v2/users/user_e3d49bce4b8b4eb9974c8ebcd524fa1b/brand" }, "Response": { - "Body": "{\"id\":\"brd_0f3b21246a3a4080989cea09a9ad7bde\",\"color\":\"#123456\",\"logo\":\"https://assets.easypost.com/assets/images/branding/easypost-primary-logo-7a2cf535f2.svg\",\"logo_href\":\"https://www.easypost.com\",\"name\":\"EasyPost\",\"ad\":null,\"ad_href\":null,\"object\":\"Brand\",\"user_id\":\"user_4709258a632949c3aa647fa5d789c3f5\",\"background_color\":null,\"theme\":\"theme1\"}", + "Body": "{\"id\":\"brd_57b71c65f9c44615853e7608ca3e9a54\",\"color\":\"#123456\",\"logo\":\"https://assets.easypost.com/assets/images/branding/easypost-primary-logo-7a2cf535f2.svg\",\"logo_href\":\"https://www.easypost.com\",\"name\":\"EasyPost\",\"ad\":null,\"ad_href\":null,\"object\":\"Brand\",\"user_id\":\"user_e3d49bce4b8b4eb9974c8ebcd524fa1b\",\"background_color\":null,\"theme\":\"theme1\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -86,15 +86,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681bcf7a6ba7100794abc", + "x-ep-request-uuid": "3bde9a2c631904e4e799f6a6002e0be6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"04d6add2e3beb7773fe9a493a250de8e\"", - "x-runtime": "0.044594", + "ETag": "W/\"b72b00f8fad14772e0c3309800135491\"", + "x-runtime": "0.067586", "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -104,8 +104,8 @@ } }, { - "Duration": 88, - "RecordedAt": "2022-08-24T13:53:32.530035-06:00", + "Duration": 159, + "RecordedAt": "2022-09-07T14:53:56.559838-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -117,10 +117,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_4709258a632949c3aa647fa5d789c3f5" + "Uri": "https://api.easypost.com/v2/users/user_e3d49bce4b8b4eb9974c8ebcd524fa1b" }, "Response": { - "Body": "{\"id\":\"user_4709258a632949c3aa647fa5d789c3f5\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:31Z\",\"children\":[]}", + "Body": "{\"id\":\"user_e3d49bce4b8b4eb9974c8ebcd524fa1b\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T20:53:55Z\",\"children\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -135,16 +135,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681bcf7a6ba7100794ad5", + "x-ep-request-uuid": "3bde9a2c631904e4e799f6a6002e0bf6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6755026ef11b4ff8ab29dcb4eb893ac4\"", - "x-runtime": "0.047240", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"5e3d43ab3272a01c94aaffbcb24a3524\"", + "x-runtime": "0.103657", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -154,8 +153,8 @@ } }, { - "Duration": 157, - "RecordedAt": "2022-08-24T13:53:32.709321-06:00", + "Duration": 184, + "RecordedAt": "2022-09-07T14:53:56.755566-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -167,7 +166,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_4709258a632949c3aa647fa5d789c3f5" + "Uri": "https://api.easypost.com/v2/users/user_e3d49bce4b8b4eb9974c8ebcd524fa1b" }, "Response": { "Body": "", @@ -176,23 +175,23 @@ "Expires": "0" }, "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681bcf7a6ba7100794ae7", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.117754", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631904e4e799f6a6002e0c0e", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.124776", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 204, "Message": "No Content" diff --git a/EasyPost.Tests/cassettes/net/webhook/all.json b/EasyPost.Tests/cassettes/net/webhook/all.json index 417418cd6..d84e1826a 100644 --- a/EasyPost.Tests/cassettes/net/webhook/all.json +++ b/EasyPost.Tests/cassettes/net/webhook/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 205, - "RecordedAt": "2022-08-24T13:53:34.338525-06:00", + "Duration": 316, + "RecordedAt": "2022-09-07T14:53:58.740196-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -22,26 +22,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "15" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bef7dec1d600794c09", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"d03ff1e2df7ad33907b2086ec5f9e0a9\"", - "x-runtime": "0.026370", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2a631904e6e799fa47002e0cef", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"d03ff1e2df7ad33907b2086ec5f9e0a9\"", + "x-runtime": "0.028480", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/webhook/create.json b/EasyPost.Tests/cassettes/net/webhook/create.json index da4e93011..747501a44 100644 --- a/EasyPost.Tests/cassettes/net/webhook/create.json +++ b/EasyPost.Tests/cassettes/net/webhook/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 383, - "RecordedAt": "2022-08-24T13:53:32.83601-06:00", + "Duration": 396, + "RecordedAt": "2022-09-07T14:53:56.851949-06:00", "Request": { "Body": "{\"url\":\"https://example.com/create\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/webhooks" }, "Response": { - "Body": "{\"id\":\"hook_6eddfa1a23e611eda7cf07b3bfb3b82f\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/create\",\"created_at\":\"2022-08-24T19:53:33Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_30bf24b62eef11edbe3959eb1f83f746\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/create\",\"created_at\":\"2022-09-07T20:53:57Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bcf7df4a8100794af4", + "x-ep-request-uuid": "3bde9a28631904e4e799f709002e0c19", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"cc88f63c6f3a81cb7a50de1b04d07707\"", - "x-runtime": "0.200120", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"44958fdcc4dee7fde0cd56f59f4e3e1d\"", + "x-runtime": "0.130842", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 64, - "RecordedAt": "2022-08-24T13:53:32.911802-06:00", + "Duration": 90, + "RecordedAt": "2022-09-07T14:53:56.955241-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_6eddfa1a23e611eda7cf07b3bfb3b82f" + "Uri": "https://api.easypost.com/v2/webhooks/hook_30bf24b62eef11edbe3959eb1f83f746" }, "Response": { - "Body": "{\"id\":\"hook_6eddfa1a23e611eda7cf07b3bfb3b82f\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/create\",\"created_at\":\"2022-08-24T19:53:33Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_30bf24b62eef11edbe3959eb1f83f746\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/create\",\"created_at\":\"2022-09-07T20:53:57Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bdf7df4a8100794b15", + "x-ep-request-uuid": "3bde9a28631904e5e799f709002e0c2c", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"cc88f63c6f3a81cb7a50de1b04d07707\"", - "x-runtime": "0.024494", + "ETag": "W/\"44958fdcc4dee7fde0cd56f59f4e3e1d\"", + "x-runtime": "0.028069", "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,8 +101,8 @@ } }, { - "Duration": 324, - "RecordedAt": "2022-08-24T13:53:33.249468-06:00", + "Duration": 374, + "RecordedAt": "2022-09-07T14:53:57.340054-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,7 +114,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_6eddfa1a23e611eda7cf07b3bfb3b82f" + "Uri": "https://api.easypost.com/v2/webhooks/hook_30bf24b62eef11edbe3959eb1f83f746" }, "Response": { "Body": "{}", @@ -123,26 +123,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681bdf7df4a8100794b23", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.287094", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a28631904e5e799f709002e0c3e", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.310530", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/webhook/delete.json b/EasyPost.Tests/cassettes/net/webhook/delete.json index ddc066a74..d64a927a1 100644 --- a/EasyPost.Tests/cassettes/net/webhook/delete.json +++ b/EasyPost.Tests/cassettes/net/webhook/delete.json @@ -1,7 +1,7 @@ [ { - "Duration": 351, - "RecordedAt": "2022-08-24T13:53:33.61485-06:00", + "Duration": 411, + "RecordedAt": "2022-09-07T14:53:57.764562-06:00", "Request": { "Body": "{\"url\":\"https://example.com/delete\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/webhooks" }, "Response": { - "Body": "{\"id\":\"hook_6f5a320623e611edb57c4102a2bf8e68\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/delete\",\"created_at\":\"2022-08-24T19:53:34Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_31470fca2eef11edbcdf1bdee6ecad12\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/delete\",\"created_at\":\"2022-09-07T20:53:58Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bdf7ed08e000794b7d", + "x-ep-request-uuid": "3bde9a2b631904e5e799fa26002e0c89", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"9c14678a237153e661ff516b61e3d9f2\"", - "x-runtime": "0.165304", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"2dd1f89f7b1e66ec828b1bfd350eb41a\"", + "x-runtime": "0.155164", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 72, - "RecordedAt": "2022-08-24T13:53:33.698226-06:00", + "Duration": 215, + "RecordedAt": "2022-09-07T14:53:57.990953-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_6f5a320623e611edb57c4102a2bf8e68" + "Uri": "https://api.easypost.com/v2/webhooks/hook_31470fca2eef11edbcdf1bdee6ecad12" }, "Response": { - "Body": "{\"id\":\"hook_6f5a320623e611edb57c4102a2bf8e68\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/delete\",\"created_at\":\"2022-08-24T19:53:34Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_31470fca2eef11edbcdf1bdee6ecad12\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/delete\",\"created_at\":\"2022-09-07T20:53:58Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,16 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bdf7ed08e000794b9a", + "x-ep-request-uuid": "3bde9a2b631904e5e799fa26002e0ca2", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"9c14678a237153e661ff516b61e3d9f2\"", - "x-runtime": "0.027572", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"2dd1f89f7b1e66ec828b1bfd350eb41a\"", + "x-runtime": "0.131394", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -103,7 +102,7 @@ }, { "Duration": 404, - "RecordedAt": "2022-08-24T13:53:34.120776-06:00", + "RecordedAt": "2022-09-07T14:53:58.406453-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -115,7 +114,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_6f5a320623e611edb57c4102a2bf8e68" + "Uri": "https://api.easypost.com/v2/webhooks/hook_31470fca2eef11edbcdf1bdee6ecad12" }, "Response": { "Body": "{}", @@ -124,27 +123,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bdf7ed08e000794bb0", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.366228", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2b631904e6e799fa26002e0cb4", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.348316", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/webhook/retrieve.json b/EasyPost.Tests/cassettes/net/webhook/retrieve.json index a4f142560..c3cfd17bf 100644 --- a/EasyPost.Tests/cassettes/net/webhook/retrieve.json +++ b/EasyPost.Tests/cassettes/net/webhook/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 521, - "RecordedAt": "2022-08-24T13:53:31.760554-06:00", + "Duration": 637, + "RecordedAt": "2022-09-07T14:53:55.691089-06:00", "Request": { "Body": "{\"url\":\"https://example.com/retrieve\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/webhooks" }, "Response": { - "Body": "{\"id\":\"hook_6e40de0623e611ed9cb35f21d613a3f6\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/retrieve\",\"created_at\":\"2022-08-24T19:53:32Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_300864ec2eef11eda1d13700e79f9199\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/retrieve\",\"created_at\":\"2022-09-07T20:53:56Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bbf7cdb1b900794a41", + "x-ep-request-uuid": "3bde9a2a631904e3e799f6c7002e0b9a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"022dcfcec35717425fde052647622b0b\"", - "x-runtime": "0.156463", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"8ca4097d11f8236fdf68152bb0af44d0\"", + "x-runtime": "0.158006", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 124, - "RecordedAt": "2022-08-24T13:53:31.987021-06:00", + "Duration": 85, + "RecordedAt": "2022-09-07T14:53:55.943227-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_6e40de0623e611ed9cb35f21d613a3f6" + "Uri": "https://api.easypost.com/v2/webhooks/hook_300864ec2eef11eda1d13700e79f9199" }, "Response": { - "Body": "{\"id\":\"hook_6e40de0623e611ed9cb35f21d613a3f6\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/retrieve\",\"created_at\":\"2022-08-24T19:53:32Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_300864ec2eef11eda1d13700e79f9199\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/retrieve\",\"created_at\":\"2022-09-07T20:53:56Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bcf7cdb1b900794a68", + "x-ep-request-uuid": "3bde9a2a631904e3e799f6c7002e0bbb", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"022dcfcec35717425fde052647622b0b\"", - "x-runtime": "0.086726", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"8ca4097d11f8236fdf68152bb0af44d0\"", + "x-runtime": "0.028957", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,8 +101,8 @@ } }, { - "Duration": 434, - "RecordedAt": "2022-08-24T13:53:32.438849-06:00", + "Duration": 476, + "RecordedAt": "2022-09-07T14:53:56.441613-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,7 +114,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_6e40de0623e611ed9cb35f21d613a3f6" + "Uri": "https://api.easypost.com/v2/webhooks/hook_300864ec2eef11eda1d13700e79f9199" }, "Response": { "Body": "{}", @@ -123,26 +123,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b2630681bcf7cdb1b900794a85", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.394602", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2a631904e4e799f6c7002e0bd0", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.416031", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/net/webhook/update.json b/EasyPost.Tests/cassettes/net/webhook/update.json index 0fa6c9544..0270765b0 100644 --- a/EasyPost.Tests/cassettes/net/webhook/update.json +++ b/EasyPost.Tests/cassettes/net/webhook/update.json @@ -1,7 +1,7 @@ [ { - "Duration": 345, - "RecordedAt": "2022-08-24T13:53:34.698888-06:00", + "Duration": 417, + "RecordedAt": "2022-09-07T14:53:59.172727-06:00", "Request": { "Body": "{\"url\":\"https://example.com/update\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/webhooks" }, "Response": { - "Body": "{\"id\":\"hook_7001b8e623e611edbad66d33c57cedbf\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-08-24T19:53:35Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_321dd3ca2eef11eda058538dbc37e108\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-09-07T20:53:59Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bef801393800794c2f", + "x-ep-request-uuid": "3bde9a2a631904e7e799fa60002e0d15", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"69b25f45d4154cdeb51357efff50eece\"", - "x-runtime": "0.168377", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"832f856abe2f824f8fb1be7f76217260\"", + "x-runtime": "0.154886", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 490, - "RecordedAt": "2022-08-24T13:53:35.217576-06:00", + "Duration": 606, + "RecordedAt": "2022-09-07T14:53:59.789867-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_7001b8e623e611edbad66d33c57cedbf" + "Uri": "https://api.easypost.com/v2/webhooks/hook_321dd3ca2eef11eda058538dbc37e108" }, "Response": { - "Body": "{\"id\":\"hook_7001b8e623e611edbad66d33c57cedbf\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-08-24T19:53:35Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_321dd3ca2eef11eda058538dbc37e108\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-09-07T20:53:59Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bef801393800794c4b", + "x-ep-request-uuid": "3bde9a2a631904e7e799fa60002e0d2b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"69b25f45d4154cdeb51357efff50eece\"", - "x-runtime": "0.443182", + "ETag": "W/\"832f856abe2f824f8fb1be7f76217260\"", + "x-runtime": "0.532331", "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,8 +101,8 @@ } }, { - "Duration": 61, - "RecordedAt": "2022-08-24T13:53:35.288914-06:00", + "Duration": 90, + "RecordedAt": "2022-09-07T14:53:59.889911-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,10 +114,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_7001b8e623e611edbad66d33c57cedbf" + "Uri": "https://api.easypost.com/v2/webhooks/hook_321dd3ca2eef11eda058538dbc37e108" }, "Response": { - "Body": "{\"id\":\"hook_7001b8e623e611edbad66d33c57cedbf\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-08-24T19:53:35Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_321dd3ca2eef11eda058538dbc37e108\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-09-07T20:53:59Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -132,13 +132,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bff801393800794c8d", + "x-ep-request-uuid": "3bde9a2a631904e7e799fa60002e0d64", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"69b25f45d4154cdeb51357efff50eece\"", - "x-runtime": "0.024576", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"832f856abe2f824f8fb1be7f76217260\"", + "x-runtime": "0.026887", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -150,8 +150,8 @@ } }, { - "Duration": 384, - "RecordedAt": "2022-08-24T13:53:35.687212-06:00", + "Duration": 390, + "RecordedAt": "2022-09-07T14:54:00.289672-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -163,7 +163,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_7001b8e623e611edbad66d33c57cedbf" + "Uri": "https://api.easypost.com/v2/webhooks/hook_321dd3ca2eef11eda058538dbc37e108" }, "Response": { "Body": "{}", @@ -172,26 +172,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681bff801393800794c93", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.347109", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-XSS-Protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "Referrer-Policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2a631904e8e799fa60002e0d6e", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.318838", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/address/all.json b/EasyPost.Tests/cassettes/netstandard/address/all.json index 4488fd116..925b649d1 100644 --- a/EasyPost.Tests/cassettes/netstandard/address/all.json +++ b/EasyPost.Tests/cassettes/netstandard/address/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 221, - "RecordedAt": "2022-08-24T13:53:07.252612-06:00", + "Duration": 306, + "RecordedAt": "2022-09-07T15:01:20.413827-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,7 +16,7 @@ "Uri": "https://api.easypost.com/v2/addresses?page_size=5" }, "Response": { - "Body": "{\"addresses\":[{\"id\":\"adr_5f8bcafb23e611ed8427ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},{\"id\":\"adr_5f666f9323e611ed8421ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},{\"id\":\"adr_5f6403ed23e611ed8991ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},{\"id\":\"adr_5f4c8e9d23e611ed9c39ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},{\"id\":\"adr_5f4a63d423e611ed8419ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}],\"has_more\":true}", + "Body": "{\"addresses\":[{\"id\":\"adr_38fa36ae2ef011eda84bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},{\"id\":\"adr_38f02d412ef011ed9fc4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},{\"id\":\"adr_38dd776b2ef011edb16dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},{\"id\":\"adr_38db04142ef011eda5f3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -31,15 +31,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681a3f7a532f500794024", + "x-ep-request-uuid": "3bde9a26631906a0e79a6167002e91b1", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"ae62a3063cca85b852d9d137682052dc\"", - "x-runtime": "0.050182", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"f800e8cc74f4a73c2249157042b9fb41\"", + "x-runtime": "0.039143", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, diff --git a/EasyPost.Tests/cassettes/netstandard/address/create.json b/EasyPost.Tests/cassettes/netstandard/address/create.json index 676145be9..7450dd475 100644 --- a/EasyPost.Tests/cassettes/netstandard/address/create.json +++ b/EasyPost.Tests/cassettes/netstandard/address/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 399, - "RecordedAt": "2022-08-24T13:53:05.391385-06:00", + "Duration": 298, + "RecordedAt": "2022-09-07T15:01:18.812709-06:00", "Request": { "Body": "{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses" }, "Response": { - "Body": "{\"id\":\"adr_5e955fd423e611ed9c05ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:05-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", + "Body": "{\"id\":\"adr_383a1eca2ef011ed9f89ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc5630681a1f7efc1d70072f535", + "x-ep-request-uuid": "3bde9a266319069ee79a6121002e9106", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_5e955fd423e611ed9c05ac1f6bc72124", - "ETag": "W/\"3202f6cb875ec68a6037b87e16c64048\"", - "x-runtime": "0.031516", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_383a1eca2ef011ed9f89ac1f6b0a0d1e", + "ETag": "W/\"41178d28b066fe6e8afe8a4d57ea282b\"", + "x-runtime": "0.035392", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/address/create_and_verify.json b/EasyPost.Tests/cassettes/netstandard/address/create_and_verify.json index 7e2b9bfeb..91fdfb0c2 100644 --- a/EasyPost.Tests/cassettes/netstandard/address/create_and_verify.json +++ b/EasyPost.Tests/cassettes/netstandard/address/create_and_verify.json @@ -1,7 +1,7 @@ [ { - "Duration": 405, - "RecordedAt": "2022-08-24T13:53:07.007484-06:00", + "Duration": 316, + "RecordedAt": "2022-09-07T15:01:20.072704-06:00", "Request": { "Body": "{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"verify_strict\":[true]}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses/create_and_verify" }, "Response": { - "Body": "{\"address\":{\"id\":\"adr_5f8bcafb23e611ed8427ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}}", + "Body": "{\"address\":{\"id\":\"adr_38fa36ae2ef011eda84bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,17 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b083630681a2f7a7eff7007698f8", + "x-ep-request-uuid": "3bde9a29631906a0e79a6165002e918d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_5f8bcafb23e611ed8427ac1f6bc7bdc6", - "ETag": "W/\"d1a4c3d3bcfa846fecacf50a1dc0ff57\"", - "x-runtime": "0.044145", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_38fa36ae2ef011eda84bac1f6bc72124", + "ETag": "W/\"7c4d20473ad2134b1b92ec0cb4f86e97\"", + "x-runtime": "0.048926", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/address/create_verify.json b/EasyPost.Tests/cassettes/netstandard/address/create_verify.json index f844fdff7..af8633978 100644 --- a/EasyPost.Tests/cassettes/netstandard/address/create_verify.json +++ b/EasyPost.Tests/cassettes/netstandard/address/create_verify.json @@ -1,7 +1,7 @@ [ { - "Duration": 417, - "RecordedAt": "2022-08-24T13:53:05.841448-06:00", + "Duration": 327, + "RecordedAt": "2022-09-07T15:01:19.171425-06:00", "Request": { "Body": "{\"verify\":[true],\"street1\":\"417 montgomery street\",\"street2\":\"FL 5\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94104\",\"country\":\"US\",\"company\":\"EasyPost\",\"phone\":\"\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses" }, "Response": { - "Body": "{\"id\":\"adr_5eda110723e611ed8364ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:05-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":null,\"company\":\"EASYPOST\",\"street1\":\"417 MONTGOMERY ST FL 5\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94104-1129\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[{\"code\":\"E.SECONDARY_INFORMATION.INVALID\",\"field\":\"street2\",\"message\":\"Invalid secondary information(Apt/Suite#)\",\"suggestion\":null}],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[{\"code\":\"E.SECONDARY_INFORMATION.INVALID\",\"field\":\"street2\",\"message\":\"Invalid secondary information(Apt/Suite#)\",\"suggestion\":null}],\"details\":{\"latitude\":37.79342,\"longitude\":-122.40288,\"time_zone\":\"America/Los_Angeles\"}}}}", + "Body": "{\"id\":\"adr_3870d3492ef011eda5d8ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":null,\"company\":\"EASYPOST\",\"street1\":\"417 MONTGOMERY ST FL 5\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94104-1129\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[{\"code\":\"E.SECONDARY_INFORMATION.INVALID\",\"field\":\"street2\",\"message\":\"Invalid secondary information(Apt/Suite#)\",\"suggestion\":null}],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[{\"code\":\"E.SECONDARY_INFORMATION.INVALID\",\"field\":\"street2\",\"message\":\"Invalid secondary information(Apt/Suite#)\",\"suggestion\":null}],\"details\":{\"latitude\":37.79342,\"longitude\":-122.40288,\"time_zone\":\"America/Los_Angeles\"}}}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc1630681a1f7baff510072f55e", + "x-ep-request-uuid": "3bde9a266319069fe79a613e002e912e", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_5eda110723e611ed8364ac1f6b0a0d1e", - "ETag": "W/\"67dbd72b624ed00fe708ee59c45be5fc\"", - "x-runtime": "0.043921", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_3870d3492ef011eda5d8ac1f6bc7bdc6", + "ETag": "W/\"e7afd0ef378d6c0c78efd470d2668db7\"", + "x-runtime": "0.047829", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/address/create_verify_strict.json b/EasyPost.Tests/cassettes/netstandard/address/create_verify_strict.json index c611a28f2..67c322b20 100644 --- a/EasyPost.Tests/cassettes/netstandard/address/create_verify_strict.json +++ b/EasyPost.Tests/cassettes/netstandard/address/create_verify_strict.json @@ -1,7 +1,7 @@ [ { - "Duration": 546, - "RecordedAt": "2022-08-24T13:53:04.164083-06:00", + "Duration": 640, + "RecordedAt": "2022-09-07T15:01:17.765401-06:00", "Request": { "Body": "{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"verify_strict\":[true]}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses" }, "Response": { - "Body": "{\"id\":\"adr_5dd9cde023e611ed9bc1ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}", + "Body": "{\"id\":\"adr_37963c062ef011ed9f57ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,17 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dc630681a0f7f1455c007ed257", + "x-ep-request-uuid": "3bde9a296319069de79a60e1002e9076", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_5dd9cde023e611ed9bc1ac1f6bc72124", - "ETag": "W/\"42c62644f89f3eb01e2a606b4b93ef53\"", - "x-runtime": "0.046714", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_37963c062ef011ed9f57ac1f6b0a0d1e", + "ETag": "W/\"fabcabe2b2e434c86e735bbc3554ce50\"", + "x-runtime": "0.047786", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/address/retrieve.json b/EasyPost.Tests/cassettes/netstandard/address/retrieve.json index ad3d60a18..ddfe5bf96 100644 --- a/EasyPost.Tests/cassettes/netstandard/address/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/address/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 224, - "RecordedAt": "2022-08-24T13:53:04.67538-06:00", + "Duration": 327, + "RecordedAt": "2022-09-07T15:01:18.333817-06:00", "Request": { "Body": "{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses" }, "Response": { - "Body": "{\"id\":\"adr_5e2d83d423e611ed83e9ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", + "Body": "{\"id\":\"adr_37f029042ef011eda5c0ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33db630681a0f7b85fd6007ed2bc", + "x-ep-request-uuid": "3bde9a2c6319069ee79a6100002e90c3", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_5e2d83d423e611ed83e9ac1f6bc7bdc6", - "ETag": "W/\"35a04c51ad055d1af2114396f8ad349a\"", - "x-runtime": "0.031418", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_37f029042ef011eda5c0ac1f6bc7bdc6", + "ETag": "W/\"b13d2e76495c7a5b8c14e1efe5f74070\"", + "x-runtime": "0.033434", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 193, - "RecordedAt": "2022-08-24T13:53:04.952006-06:00", + "Duration": 85, + "RecordedAt": "2022-09-07T15:01:18.458944-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/addresses/adr_5e2d83d423e611ed83e9ac1f6bc7bdc6" + "Uri": "https://api.easypost.com/v2/addresses/adr_37f029042ef011eda5c0ac1f6bc7bdc6" }, "Response": { - "Body": "{\"id\":\"adr_5e2d83d423e611ed83e9ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", + "Body": "{\"id\":\"adr_37f029042ef011eda5c0ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33db630681a0f7b85fd6007ed2d7", + "x-ep-request-uuid": "3bde9a2c6319069ee79a6100002e90d8", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"35a04c51ad055d1af2114396f8ad349a\"", - "x-runtime": "0.154176", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"b13d2e76495c7a5b8c14e1efe5f74070\"", + "x-runtime": "0.026610", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/address/verify.json b/EasyPost.Tests/cassettes/netstandard/address/verify.json index 8936be5d3..b66b3aae2 100644 --- a/EasyPost.Tests/cassettes/netstandard/address/verify.json +++ b/EasyPost.Tests/cassettes/netstandard/address/verify.json @@ -1,7 +1,7 @@ [ { - "Duration": 416, - "RecordedAt": "2022-08-24T13:53:06.309718-06:00", + "Duration": 333, + "RecordedAt": "2022-09-07T15:01:19.558113-06:00", "Request": { "Body": "{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/addresses" }, "Response": { - "Body": "{\"id\":\"adr_5f219a4823e611ed837dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", + "Body": "{\"id\":\"adr_38ab65d82ef011eda828ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b085630681a2f7dc728d0076989b", + "x-ep-request-uuid": "3bde9a256319069fe79a6145002e915a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_5f219a4823e611ed837dac1f6b0a0d1e", - "ETag": "W/\"3918490e4d053a3656864784c9a34542\"", - "x-runtime": "0.033563", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/addresses/adr_38ab65d82ef011eda828ac1f6bc72124", + "ETag": "W/\"abbf2ed7a1185560360604192939220e\"", + "x-runtime": "0.035868", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 233, - "RecordedAt": "2022-08-24T13:53:06.576215-06:00", + "Duration": 126, + "RecordedAt": "2022-09-07T15:01:19.706723-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/addresses/adr_5f219a4823e611ed837dac1f6b0a0d1e/verify" + "Uri": "https://api.easypost.com/v2/addresses/adr_38ab65d82ef011eda828ac1f6bc72124/verify" }, "Response": { - "Body": "{\"address\":{\"id\":\"adr_5f4aab7c23e611ed841aac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}}", + "Body": "{\"address\":{\"id\":\"adr_38c0d6112ef011edb164ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,16 +84,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b085630681a2f7dc728d007698b6", + "x-ep-request-uuid": "3bde9a256319069fe79a6145002e9167", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/addresses/adr_5f4aab7c23e611ed841aac1f6bc7bdc6", - "ETag": "W/\"4c1c2ddd55066571e5371f0a795defc5\"", - "x-runtime": "0.048793", + "Location": "/api/v2/addresses/adr_38c0d6112ef011edb164ac1f6bc7b362", + "ETag": "W/\"b0524116b0218850d6481759f8548995\"", + "x-runtime": "0.049372", "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,5 +101,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/api_key/all_api_keys.json b/EasyPost.Tests/cassettes/netstandard/api_key/all_api_keys.json index afe661086..87b9aa565 100644 --- a/EasyPost.Tests/cassettes/netstandard/api_key/all_api_keys.json +++ b/EasyPost.Tests/cassettes/netstandard/api_key/all_api_keys.json @@ -1,7 +1,7 @@ [ { - "Duration": 532, - "RecordedAt": "2022-08-30T15:21:42.377082-06:00", + "Duration": 753, + "RecordedAt": "2022-09-07T15:01:17.76417-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -31,13 +31,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b0630e7f66e7885de4001187d9", + "x-ep-request-uuid": "3bde9a2a6319069de79a60ba002e9060", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", "ETag": "W/\"d2c7f1cab89f9296401d89b317b2fa3a\"", - "x-runtime": "0.038771", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "x-runtime": "0.129861", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/batch/add_remove_shipments.json b/EasyPost.Tests/cassettes/netstandard/batch/add_remove_shipments.json index 8fe36fdcf..eaf2f6dd0 100644 --- a/EasyPost.Tests/cassettes/netstandard/batch/add_remove_shipments.json +++ b/EasyPost.Tests/cassettes/netstandard/batch/add_remove_shipments.json @@ -1,7 +1,7 @@ [ { - "Duration": 188, - "RecordedAt": "2022-08-24T13:53:18.617221-06:00", + "Duration": 304, + "RecordedAt": "2022-09-07T15:01:42.130771-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780357\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_65ea08de23e611ed8bbaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:17-06:00\",\"updated_at\":\"2022-08-24T13:53:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f5200b06de314bff8319bb5fa0e3a031\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:17Z\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_d137505499064f02b8f6d2cf25d0b360\",\"created_at\":\"2022-08-24T19:53:18Z\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/7215034800334dabad3728ad9a2b833a.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_02d10564858843cfa3db9759ecf5e26f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:17Z\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_023d93c91343467ebd6db54e88bdbdb6\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:17Z\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6339e21de7514d7c8940fdfacb66b756\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:17Z\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_dbe57313d8274ec5952b99b4fabc8fed\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:17Z\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_023d93c91343467ebd6db54e88bdbdb6\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:18Z\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ebbbe213a08e4ff4b7e8dfd06c958aec\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780357\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:18Z\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2ViYmJlMjEzYTA4ZTRmZjRiN2U4ZGZkMDZjOTU4YWVj\"},\"to_address\":{\"id\":\"adr_65e7b34423e611ed9e76ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:17-06:00\",\"updated_at\":\"2022-08-24T13:53:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_65ea08de23e611ed8bbaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:17-06:00\",\"updated_at\":\"2022-08-24T13:53:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_65e7b34423e611ed9e76ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:17-06:00\",\"updated_at\":\"2022-08-24T13:53:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:41Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478818\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:41-06:00\",\"updated_at\":\"2022-09-07T15:01:41-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_ffe434f1b06c452e8b688d901e403de6\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_43c21a83e05840f0a60ac415fab535d1\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/6dda387b91224f6b93c976a75c49d8f1.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_4de70b3232ee4b3f8c579f35e22fa212\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_167202b7ab3b47aea6d4baa3a4a2257a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_acaf39d619de499d962559b04da87d50\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_2a308f7efb0148d68fde389aaed3b1b2\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478818\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzJhMzA4ZjdlZmIwMTQ4ZDY4ZmRlMzg5YWFlZDNiMWIy\"},\"to_address\":{\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:41-06:00\",\"updated_at\":\"2022-09-07T15:01:41-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:41-06:00\",\"updated_at\":\"2022-09-07T15:01:41-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:41-06:00\",\"updated_at\":\"2022-09-07T15:01:41-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,17 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681adf7eea95b007944ab", + "x-ep-request-uuid": "3bde9a2b631906b5e79a64dd002e9adc", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_b49d800b026b4abca4b89c343490ce00", - "ETag": "W/\"06d5cb54a5a2ee5765e82641564c7e58\"", - "x-runtime": "1.015615", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_6aa330c847194861aac5ec755bf93ded", + "ETag": "W/\"f6b3f78cf0b2172d4032ca0e042e87a8\"", + "x-runtime": "1.032348", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -54,8 +53,8 @@ } }, { - "Duration": 81, - "RecordedAt": "2022-08-24T13:53:18.759216-06:00", + "Duration": 92, + "RecordedAt": "2022-09-07T15:01:42.277436-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -70,12 +69,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_08ec7a17112e4db59d7b38a61fd6be99\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-08-24T19:53:18Z\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"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}", + "Body": "{\"id\":\"batch_20374cc335d94b4e9316baba88f3218a\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "383" + "Content-Length": "401" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -85,14 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681aef7eea95b0079451a", + "x-ep-request-uuid": "3bde9a2b631906b6e79a64dd002e9b4d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"506687bc2103c69d280d5b490fc264bb\"", - "x-runtime": "0.042096", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"1bf1c7da5225981807a56bd86e70d259\"", + "x-runtime": "0.031746", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", + "x-canary": "direct", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, @@ -103,14 +103,14 @@ } }, { - "Duration": 112, - "RecordedAt": "2022-08-24T13:53:18.899128-06:00", + "Duration": 157, + "RecordedAt": "2022-09-07T15:01:42.46272-06:00", "Request": { - "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"adr_65e7b34423e611ed9e76ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"adr_65ea08de23e611ed8bbaac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"prcl_f5200b06de314bff8319bb5fa0e3a031\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:18Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/7215034800334dabad3728ad9a2b833a.png\",\"created_at\":\"2022-08-24T19:53:18Z\",\"id\":\"pl_d137505499064f02b8f6d2cf25d0b360\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"rate_02d10564858843cfa3db9759ecf5e26f\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"rate_023d93c91343467ebd6db54e88bdbdb6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"rate_6339e21de7514d7c8940fdfacb66b756\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"rate_dbe57313d8274ec5952b99b4fabc8fed\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"adr_65ea08de23e611ed8bbaac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"created_at\":\"2022-08-24T19:53:18Z\",\"id\":\"rate_023d93c91343467ebd6db54e88bdbdb6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"adr_65e7b34423e611ed9e76ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2ViYmJlMjEzYTA4ZTRmZjRiN2U4ZGZkMDZjOTU4YWVj\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780357\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:18Z\",\"id\":\"trk_ebbbe213a08e4ff4b7e8dfd06c958aec\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780357\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"object\":\"Shipment\"}]}", + "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"prcl_ffe434f1b06c452e8b688d901e403de6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:41Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/6dda387b91224f6b93c976a75c49d8f1.png\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"pl_43c21a83e05840f0a60ac415fab535d1\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_4de70b3232ee4b3f8c579f35e22fa212\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_167202b7ab3b47aea6d4baa3a4a2257a\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_acaf39d619de499d962559b04da87d50\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzJhMzA4ZjdlZmIwMTQ4ZDY4ZmRlMzg5YWFlZDNiMWIy\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478818\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:42Z\",\"id\":\"trk_2a308f7efb0148d68fde389aaed3b1b2\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478818\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"object\":\"Shipment\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6026" + "Content-Length": "6002" }, "Method": "POST", "RequestHeaders": { @@ -119,10 +119,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_08ec7a17112e4db59d7b38a61fd6be99/add_shipments" + "Uri": "https://api.easypost.com/v2/batches/batch_20374cc335d94b4e9316baba88f3218a/add_shipments" }, "Response": { - "Body": "{\"id\":\"batch_08ec7a17112e4db59d7b38a61fd6be99\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:18Z\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361134780357\",\"id\":\"shp_b49d800b026b4abca4b89c343490ce00\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_20374cc335d94b4e9316baba88f3218a\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361136478818\",\"id\":\"shp_6aa330c847194861aac5ec755bf93ded\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -137,13 +137,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681aef7eea95b00794523", + "x-ep-request-uuid": "3bde9a2b631906b6e79a64dd002e9b57", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"9fcfbe55172325db16d125f62afba43d\"", - "x-runtime": "0.060280", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"e0eb0d218b8c321eb466953b8d2ed067\"", + "x-runtime": "0.051458", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -155,14 +155,14 @@ } }, { - "Duration": 111, - "RecordedAt": "2022-08-24T13:53:19.042347-06:00", + "Duration": 122, + "RecordedAt": "2022-09-07T15:01:42.613875-06:00", "Request": { - "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"adr_65e7b34423e611ed9e76ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"adr_65ea08de23e611ed8bbaac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"prcl_f5200b06de314bff8319bb5fa0e3a031\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:18Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/7215034800334dabad3728ad9a2b833a.png\",\"created_at\":\"2022-08-24T19:53:18Z\",\"id\":\"pl_d137505499064f02b8f6d2cf25d0b360\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"rate_02d10564858843cfa3db9759ecf5e26f\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"rate_023d93c91343467ebd6db54e88bdbdb6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"rate_6339e21de7514d7c8940fdfacb66b756\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"rate_dbe57313d8274ec5952b99b4fabc8fed\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"adr_65ea08de23e611ed8bbaac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"created_at\":\"2022-08-24T19:53:18Z\",\"id\":\"rate_023d93c91343467ebd6db54e88bdbdb6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"adr_65e7b34423e611ed9e76ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2ViYmJlMjEzYTA4ZTRmZjRiN2U4ZGZkMDZjOTU4YWVj\",\"shipment_id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780357\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:18Z\",\"id\":\"trk_ebbbe213a08e4ff4b7e8dfd06c958aec\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780357\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:17Z\",\"id\":\"shp_b49d800b026b4abca4b89c343490ce00\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"object\":\"Shipment\"}]}", + "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"prcl_ffe434f1b06c452e8b688d901e403de6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:41Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/6dda387b91224f6b93c976a75c49d8f1.png\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"pl_43c21a83e05840f0a60ac415fab535d1\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_4de70b3232ee4b3f8c579f35e22fa212\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_167202b7ab3b47aea6d4baa3a4a2257a\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_acaf39d619de499d962559b04da87d50\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzJhMzA4ZjdlZmIwMTQ4ZDY4ZmRlMzg5YWFlZDNiMWIy\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478818\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:42Z\",\"id\":\"trk_2a308f7efb0148d68fde389aaed3b1b2\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478818\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"object\":\"Shipment\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6026" + "Content-Length": "6002" }, "Method": "POST", "RequestHeaders": { @@ -171,10 +171,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_08ec7a17112e4db59d7b38a61fd6be99/remove_shipments" + "Uri": "https://api.easypost.com/v2/batches/batch_20374cc335d94b4e9316baba88f3218a/remove_shipments" }, "Response": { - "Body": "{\"id\":\"batch_08ec7a17112e4db59d7b38a61fd6be99\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-08-24T19:53:18Z\",\"updated_at\":\"2022-08-24T19:53:19Z\",\"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}", + "Body": "{\"id\":\"batch_20374cc335d94b4e9316baba88f3218a\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -189,15 +189,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681aff7eea95b00794536", + "x-ep-request-uuid": "3bde9a2b631906b6e79a64dd002e9b6b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"a7dfdf4406ceb5acf5894fa055df72a9\"", - "x-runtime": "0.064886", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"b91e5907ef00cdba4e68cf530cba60c2\"", + "x-runtime": "0.042181", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -205,5 +205,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/batch/all.json b/EasyPost.Tests/cassettes/netstandard/batch/all.json index 961d91fdc..2b85417a0 100644 --- a/EasyPost.Tests/cassettes/netstandard/batch/all.json +++ b/EasyPost.Tests/cassettes/netstandard/batch/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 602, - "RecordedAt": "2022-08-24T13:53:17.394605-06:00", + "Duration": 353, + "RecordedAt": "2022-09-07T15:01:40.790381-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/batches?page_size=5" }, "Response": { - "Body": "{\"batches\":[{\"id\":\"batch_8e8de7ecda584fa8b347a67a3158518b\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-07-29T22:21:29Z\",\"updated_at\":\"2022-07-29T22:21:29Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361130690742\",\"id\":\"shp_0205a0ae381f44d18b3d7e81e8d543c6\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":{\"id\":\"pickup_232eeabbdacf471b9aef9e6a5140904a\",\"object\":\"Pickup\",\"created_at\":\"2022-07-29T22:21:29Z\",\"updated_at\":\"2022-07-29T22:21:29Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-06-04T00:00:00Z\",\"max_datetime\":\"2022-06-04T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_cae205140f8c11edad58ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-07-29T16:21:29-06:00\",\"updated_at\":\"2022-07-29T16:21:29-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"carrier_accounts\":[],\"pickup_rates\":[]},\"label_url\":null},{\"id\":\"batch_4e4391bff1f744daa85da0d6c1aa55a8\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-07-29T22:21:31Z\",\"updated_at\":\"2022-07-29T22:21:31Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361130690759\",\"id\":\"shp_f0790789429847e49cd1673e741b117a\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":{\"id\":\"pickup_a160908a99d64008aae29b546fd3b1f1\",\"object\":\"Pickup\",\"created_at\":\"2022-07-29T22:21:31Z\",\"updated_at\":\"2022-07-29T22:21:31Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-06-04T00:00:00Z\",\"max_datetime\":\"2022-06-04T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_cbfbe8b60f8c11ed9bb0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-07-29T16:21:31-06:00\",\"updated_at\":\"2022-07-29T16:21:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"carrier_accounts\":[],\"pickup_rates\":[]},\"label_url\":null},{\"id\":\"batch_70a4c528844b48109392e4b0db9be994\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-07-29T22:21:33Z\",\"updated_at\":\"2022-07-29T22:21:33Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361130690766\",\"id\":\"shp_64548fe835d246f0a7ace6b98320dd62\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":{\"id\":\"pickup_b688ada25e6f468ab2bb0db85040a76d\",\"object\":\"Pickup\",\"created_at\":\"2022-07-29T22:21:33Z\",\"updated_at\":\"2022-07-29T22:21:33Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-06-04T00:00:00Z\",\"max_datetime\":\"2022-06-04T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_cd40d6600f8c11ed9bf0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-07-29T16:21:33-06:00\",\"updated_at\":\"2022-07-29T16:21:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"carrier_accounts\":[],\"pickup_rates\":[]},\"label_url\":null},{\"id\":\"batch_b3e21f523c804635b077ac60d7d2386f\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-07-29T22:21:35Z\",\"updated_at\":\"2022-07-29T22:21:35Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361130690773\",\"id\":\"shp_ff1aa920a9ce494299392ca9d2b813eb\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":{\"id\":\"pickup_a5676eb5e5d94b26adfbc815eb7f71e6\",\"object\":\"Pickup\",\"created_at\":\"2022-07-29T22:21:35Z\",\"updated_at\":\"2022-07-29T22:21:35Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-06-04T00:00:00Z\",\"max_datetime\":\"2022-06-04T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_ce6658d70f8c11eda317ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-07-29T16:21:35-06:00\",\"updated_at\":\"2022-07-29T16:21:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"carrier_accounts\":[],\"pickup_rates\":[]},\"label_url\":null},{\"id\":\"batch_52b03eae64984fc5bf7fcdf0c9540163\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-07-29T22:21:36Z\",\"updated_at\":\"2022-07-29T22:21:36Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361130690797\",\"id\":\"shp_774a97e2d2974de1a65aee89c51288ba\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":{\"id\":\"pickup_a04ba9b84619421d99baa57777aa5e3c\",\"object\":\"Pickup\",\"created_at\":\"2022-07-29T22:21:37Z\",\"updated_at\":\"2022-07-29T22:21:37Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-06-04T00:00:00Z\",\"max_datetime\":\"2022-06-04T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_cf812bd20f8c11edae5cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-07-29T16:21:36-06:00\",\"updated_at\":\"2022-07-29T16:21:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"carrier_accounts\":[],\"pickup_rates\":[]},\"label_url\":null}],\"has_more\":true}", + "Body": "{\"batches\":[{\"id\":\"batch_41e9aaf17d6643d7a1cfb6732df5ecb5\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-08T23:33:53Z\",\"updated_at\":\"2022-08-08T23:33:53Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_8529e9fea32140709ffcef01e7d50052\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null},{\"id\":\"batch_fa9fec53024d4cc8b3e2a99cc69a29a8\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-08T23:33:53Z\",\"updated_at\":\"2022-08-08T23:33:53Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_6ea38acae3e6400faf4e7e0f151651e4\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null},{\"id\":\"batch_c2f965d123bf4dd09b413ff378668122\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-08T23:33:53Z\",\"updated_at\":\"2022-08-08T23:33:53Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_740837f18d3d47388ce18981113f1578\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null},{\"id\":\"batch_39ead6df77784bb3a8fe4306f9bff29a\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-08T23:34:35Z\",\"updated_at\":\"2022-08-08T23:34:35Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_81ae8d11eb4f4ad680d84a6f617aed67\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null},{\"id\":\"batch_c86a3c7460da4b80af5aa1e5631cb3a6\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-08T23:34:35Z\",\"updated_at\":\"2022-08-08T23:34:35Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_f6d23f58374347fc8ad8215f9df09aa6\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "7064" + "Content-Length": "2594" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,13 +31,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681adf7b7427200794462", + "x-ep-request-uuid": "3bde9a26631906b4e79a64dc002e9ab7", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"8ba166741283759ced4cacd0cf973fe9\"", - "x-runtime": "0.429791", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"5c1208ab5ed3aec43155cd3045185046\"", + "x-runtime": "0.067736", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/batch/buy.json b/EasyPost.Tests/cassettes/netstandard/batch/buy.json index a1cea1632..c59d2a9a6 100644 --- a/EasyPost.Tests/cassettes/netstandard/batch/buy.json +++ b/EasyPost.Tests/cassettes/netstandard/batch/buy.json @@ -1,7 +1,7 @@ [ { - "Duration": 417, - "RecordedAt": "2022-08-24T13:53:04.163436-06:00", + "Duration": 648, + "RecordedAt": "2022-09-07T15:01:17.763558-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_434a2664b9644637af416aea404b3797\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"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}", + "Body": "{\"id\":\"batch_6011900a7bcd48699e45347643daf114\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33de630681a0e68cd2a8007ed245", + "x-ep-request-uuid": "3bde9a256319069de79a60c0002e906a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"2d69b12f91e29bb3ab4cd4369f4a61d1\"", - "x-runtime": "0.037849", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"47f6f92bef5a889783a0989a7b9253b3\"", + "x-runtime": "0.048628", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 86, - "RecordedAt": "2022-08-24T13:53:04.514473-06:00", + "Duration": 125, + "RecordedAt": "2022-09-07T15:01:18.107559-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_434a2664b9644637af416aea404b3797/buy" + "Uri": "https://api.easypost.com/v2/batches/batch_6011900a7bcd48699e45347643daf114/buy" }, "Response": { - "Body": "{\"id\":\"batch_434a2664b9644637af416aea404b3797\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_6f83381ea05f4d39871fd971d7ae8caa\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_6011900a7bcd48699e45347643daf114\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_f9d6baa0ecf64328b7e0d19d4ba5b984\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33de630681a0e68cd2a8007ed29e", + "x-ep-request-uuid": "3bde9a256319069ee79a60c0002e90a6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6b831e8c574eb8ee3996084bb4ef0e29\"", - "x-runtime": "0.048537", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"cd8aaf8bb7ebee44dfb0ebb8339bedfe\"", + "x-runtime": "0.053993", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -99,5 +99,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/batch/create.json b/EasyPost.Tests/cassettes/netstandard/batch/create.json index c7d443118..9f299097a 100644 --- a/EasyPost.Tests/cassettes/netstandard/batch/create.json +++ b/EasyPost.Tests/cassettes/netstandard/batch/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 412, - "RecordedAt": "2022-08-24T13:53:05.778219-06:00", + "Duration": 296, + "RecordedAt": "2022-09-07T15:01:19.258865-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_0d29b1f2fb004e21986ea668572806d5\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"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}", + "Body": "{\"id\":\"batch_3cdf0658a578414883a724fe5fc3114d\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edbf630681a1e68cb89e0072f559", + "x-ep-request-uuid": "3bde9a2a6319069fe79a6140002e9139", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"9062d0880fc408ddb25ac0cfa40f3adb\"", - "x-runtime": "0.035816", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"7dfee9f4dfdf6557f046586e4d7f0fb8\"", + "x-runtime": "0.040144", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/batch/create_and_buy.json b/EasyPost.Tests/cassettes/netstandard/batch/create_and_buy.json index e2b4a7dc3..15a1f0ef0 100644 --- a/EasyPost.Tests/cassettes/netstandard/batch/create_and_buy.json +++ b/EasyPost.Tests/cassettes/netstandard/batch/create_and_buy.json @@ -1,7 +1,7 @@ [ { - "Duration": 416, - "RecordedAt": "2022-08-24T13:53:05.341071-06:00", + "Duration": 304, + "RecordedAt": "2022-09-07T15:01:18.938802-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches/create_and_buy" }, "Response": { - "Body": "{\"id\":\"batch_7b96888df2094b1c871de922163ee1cd\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"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}", + "Body": "{\"id\":\"batch_0bc3d35f547e4fdc9521dc7297fbc5dc\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc3630681a1f800399f0072f52d", + "x-ep-request-uuid": "3bde9a256319069ee79a6122002e9115", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"c9ebe1810d3875f8fff4478d3cd6fd89\"", - "x-runtime": "0.037625", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"e9bea5c20dbc8c1f87e9a16a45eb4fd8\"", + "x-runtime": "0.035169", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/batch/create_scan_form.json b/EasyPost.Tests/cassettes/netstandard/batch/create_scan_form.json index 44617a130..5b1d3eda5 100644 --- a/EasyPost.Tests/cassettes/netstandard/batch/create_scan_form.json +++ b/EasyPost.Tests/cassettes/netstandard/batch/create_scan_form.json @@ -1,7 +1,7 @@ [ { - "Duration": 410, - "RecordedAt": "2022-08-24T13:53:06.21292-06:00", + "Duration": 321, + "RecordedAt": "2022-09-07T15:01:19.609843-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_d453f55ee35f431b8252b6dc9f904a24\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"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}", + "Body": "{\"id\":\"batch_560b69809ce240de9767ab071b83f1e9\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,15 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b087630681a2f7c8c6140076988f", + "x-ep-request-uuid": "3bde9a2b6319069fe79a6147002e915f", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"65b09ed9fde124c2a9f598f7d7a6c72e\"", - "x-runtime": "0.033513", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"b532f913fba06593cd3a61885ea2a234\"", + "x-runtime": "0.040920", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +53,8 @@ } }, { - "Duration": 234, - "RecordedAt": "2022-08-24T13:53:06.468872-06:00", + "Duration": 336, + "RecordedAt": "2022-09-07T15:01:29.969003-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_d453f55ee35f431b8252b6dc9f904a24/buy" + "Uri": "https://api.easypost.com/v2/batches/batch_560b69809ce240de9767ab071b83f1e9/buy" }, "Response": { - "Body": "{\"id\":\"batch_d453f55ee35f431b8252b6dc9f904a24\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_aa88eb31d8034123ad05d03088c28043\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_560b69809ce240de9767ab071b83f1e9\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_c9499ece7ffa46709663feb73d142239\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b087630681a2f7c8c614007698ab", + "x-ep-request-uuid": "3bde9a28631906a9e79a64bb002e9657", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"c7d9d01188e45eeaf31b4dedb0d26743\"", - "x-runtime": "0.048428", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"1649f8232f399d5cf5cea190c35f49cb\"", + "x-runtime": "0.071887", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,8 +102,8 @@ } }, { - "Duration": 269, - "RecordedAt": "2022-08-24T13:53:16.762757-06:00", + "Duration": 414, + "RecordedAt": "2022-09-07T15:01:40.411583-06:00", "Request": { "Body": "{\"file_format\":\"pdf\"}", "BodyContentType": "Json", @@ -117,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_d453f55ee35f431b8252b6dc9f904a24/scan_form" + "Uri": "https://api.easypost.com/v2/batches/batch_560b69809ce240de9767ab071b83f1e9/scan_form" }, "Response": { - "Body": "{\"id\":\"batch_d453f55ee35f431b8252b6dc9f904a24\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:16Z\",\"scan_form\":{\"id\":\"sf_74b656ab10e44994bf7a525c0a563462\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:16Z\",\"updated_at\":\"2022-08-24T19:53:16Z\",\"tracking_codes\":[],\"address\":null,\"status\":\"creating\",\"message\":null,\"form_url\":null,\"form_file_type\":null,\"batch_id\":\"batch_d453f55ee35f431b8252b6dc9f904a24\",\"confirmation\":null},\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361134780203\",\"id\":\"shp_aa88eb31d8034123ad05d03088c28043\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_560b69809ce240de9767ab071b83f1e9\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:40Z\",\"scan_form\":{\"id\":\"sf_220876a01d174e5689c43d4ee8f52672\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:40Z\",\"updated_at\":\"2022-09-07T21:01:40Z\",\"tracking_codes\":[],\"address\":null,\"status\":\"creating\",\"message\":null,\"form_url\":null,\"form_file_type\":null,\"batch_id\":\"batch_560b69809ce240de9767ab071b83f1e9\",\"confirmation\":null},\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361136478771\",\"id\":\"shp_c9499ece7ffa46709663feb73d142239\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -135,15 +136,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681acf7ca6bba00794443", + "x-ep-request-uuid": "3bde9a2c631906b4e79a64da002e9a8e", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"476a9a4906296454bfcb57bff27754e7\"", - "x-runtime": "0.080469", + "ETag": "W/\"3d0de23e0b547e333eaf6bc631dac6c7\"", + "x-runtime": "0.161577", "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -151,5 +152,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/batch/label.json b/EasyPost.Tests/cassettes/netstandard/batch/label.json index 20116f6d9..ab0a7d73a 100644 --- a/EasyPost.Tests/cassettes/netstandard/batch/label.json +++ b/EasyPost.Tests/cassettes/netstandard/batch/label.json @@ -1,7 +1,7 @@ [ { - "Duration": 330, - "RecordedAt": "2022-08-24T13:53:19.398044-06:00", + "Duration": 320, + "RecordedAt": "2022-09-07T15:01:42.959521-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_38c6449a3e314e36a640dcec6b9d0853\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:19Z\",\"updated_at\":\"2022-08-24T19:53:19Z\",\"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}", + "Body": "{\"id\":\"batch_41ef05832a864f3bacd5d84dd167d763\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:43Z\",\"updated_at\":\"2022-09-07T21:01:43Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681aff7b8f0de0079454d", + "x-ep-request-uuid": "3bde9a26631906b6e79a64e2002e9b87", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"9f0267e4a961bacdd554f4500cadea09\"", - "x-runtime": "0.120988", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"008cb657c2cc4c0cb830d2bb1aa028f2\"", + "x-runtime": "0.043760", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -52,8 +52,8 @@ } }, { - "Duration": 174, - "RecordedAt": "2022-08-24T13:53:19.591289-06:00", + "Duration": 327, + "RecordedAt": "2022-09-07T15:01:53.307011-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_38c6449a3e314e36a640dcec6b9d0853/buy" + "Uri": "https://api.easypost.com/v2/batches/batch_41ef05832a864f3bacd5d84dd167d763/buy" }, "Response": { - "Body": "{\"id\":\"batch_38c6449a3e314e36a640dcec6b9d0853\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:19Z\",\"updated_at\":\"2022-08-24T19:53:19Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_d875fdca7cb64646a15547fe711f4659\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_41ef05832a864f3bacd5d84dd167d763\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:43Z\",\"updated_at\":\"2022-09-07T21:01:43Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"queued_for_purchase\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_7fe82cb0552f4f598da39e050d476989\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,13 +83,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681aff7b8f0de0079456a", + "x-ep-request-uuid": "3bde9a25631906c1e79a64e3002e9f4a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"1427caf07b1fc6d496084dae08f294eb\"", - "x-runtime": "0.124268", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"0a125f842f9234cc5aa84abf4fd8d13b\"", + "x-runtime": "0.051049", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -101,8 +101,8 @@ } }, { - "Duration": 225, - "RecordedAt": "2022-08-24T13:53:29.842553-06:00", + "Duration": 293, + "RecordedAt": "2022-09-07T15:02:03.625124-06:00", "Request": { "Body": "{\"file_format\":\"ZPL\"}", "BodyContentType": "Json", @@ -117,10 +117,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_38c6449a3e314e36a640dcec6b9d0853/label" + "Uri": "https://api.easypost.com/v2/batches/batch_41ef05832a864f3bacd5d84dd167d763/label" }, "Response": { - "Body": "{\"id\":\"batch_38c6449a3e314e36a640dcec6b9d0853\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"label_generating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:19Z\",\"updated_at\":\"2022-08-24T19:53:29Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361134780364\",\"id\":\"shp_d875fdca7cb64646a15547fe711f4659\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_41ef05832a864f3bacd5d84dd167d763\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"label_generating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:43Z\",\"updated_at\":\"2022-09-07T21:02:03Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361136478849\",\"id\":\"shp_7fe82cb0552f4f598da39e050d476989\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -135,13 +135,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681b9f7ee985400794958", + "x-ep-request-uuid": "3bde9a2c631906cbe79a64fc002ea362", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"22ec8cd344254d49329f4121cd7f4060\"", - "x-runtime": "0.039441", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"c5a8563c8ae4af01e8f1f6fd79c4c384\"", + "x-runtime": "0.030514", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -151,5 +151,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/batch/retrieve.json b/EasyPost.Tests/cassettes/netstandard/batch/retrieve.json index 9d3edda34..71680986f 100644 --- a/EasyPost.Tests/cassettes/netstandard/batch/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/batch/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 218, - "RecordedAt": "2022-08-24T13:53:04.775849-06:00", + "Duration": 330, + "RecordedAt": "2022-09-07T15:01:18.479315-06:00", "Request": { "Body": "{\"batch\":{\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_0d1a9e0ac5264c98820c2babd7b75f3e\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"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}", + "Body": "{\"id\":\"batch_7e2ded7ab08b4417b1e371efc846bca5\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"creating\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "384" + "Content-Length": "402" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d7630681a0f7a98959007ed2cd", + "x-ep-request-uuid": "3bde9a2c6319069ee79a6103002e90d3", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"3aea12215fbc7b53bd367bafae39a6b1\"", - "x-runtime": "0.034368", + "ETag": "W/\"017c739c7d129a0acc07991fdf1dbd60\"", + "x-runtime": "0.056574", "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 63, - "RecordedAt": "2022-08-24T13:53:04.896401-06:00", + "Duration": 85, + "RecordedAt": "2022-09-07T15:01:18.606582-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_0d1a9e0ac5264c98820c2babd7b75f3e" + "Uri": "https://api.easypost.com/v2/batches/batch_7e2ded7ab08b4417b1e371efc846bca5" }, "Response": { - "Body": "{\"id\":\"batch_0d1a9e0ac5264c98820c2babd7b75f3e\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_66687a0e578547559b7a4fa61f4a9882\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_7e2ded7ab08b4417b1e371efc846bca5\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"created\",\"batch_message\":null,\"reference\":null,\"tracking_code\":null,\"id\":\"shp_96821e0dbf1749df9abeab8ac71cac65\"}],\"status\":{\"created\":1,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d7630681a0f7a98959007ed2e1", + "x-ep-request-uuid": "3bde9a2c6319069ee79a6103002e90e7", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"c473c368e262dfee4e2753c4eb5da9f2\"", - "x-runtime": "0.021982", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"ccddf474c24ce5c04c823fa94613a902\"", + "x-runtime": "0.022904", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -99,5 +99,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/carrier_account/all.json b/EasyPost.Tests/cassettes/netstandard/carrier_account/all.json index f6008b245..8dda59466 100644 --- a/EasyPost.Tests/cassettes/netstandard/carrier_account/all.json +++ b/EasyPost.Tests/cassettes/netstandard/carrier_account/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 286, - "RecordedAt": "2022-08-24T13:53:04.762881-06:00", + "Duration": 387, + "RecordedAt": "2022-09-07T15:01:18.419163-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -22,26 +22,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "3191" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33da630681a0f7ba8c98007ed2c1", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"da4a827c91b0a4c71d2fd21f58ae5fbb\"", - "x-runtime": "0.086300", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2b6319069ee79a6102002e90c9", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"da4a827c91b0a4c71d2fd21f58ae5fbb\"", + "x-runtime": "0.084399", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/carrier_account/create.json b/EasyPost.Tests/cassettes/netstandard/carrier_account/create.json index a440a703b..715096c90 100644 --- a/EasyPost.Tests/cassettes/netstandard/carrier_account/create.json +++ b/EasyPost.Tests/cassettes/netstandard/carrier_account/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 568, - "RecordedAt": "2022-08-24T13:53:05.395712-06:00", + "Duration": 413, + "RecordedAt": "2022-09-07T15:01:18.86401-06:00", "Request": { "Body": "{\"type\":\"UpsAccount\",\"credentials\":{}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/carrier_accounts" }, "Response": { - "Body": "{\"id\":\"ca_1e442c026ba34710b1f705e70335dff7\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_804ca1522f994f769a451ae2503d5d55\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc4630681a1e68a10640072f51f", + "x-ep-request-uuid": "3bde9a286319069ee79a6120002e90fe", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"22620edd927d61659f52ca98f23556d5\"", - "x-runtime": "0.208319", + "ETag": "W/\"045f24062a92bd6cf424973b9e44faea\"", + "x-runtime": "0.132478", "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 208, - "RecordedAt": "2022-08-24T13:53:05.650063-06:00", + "Duration": 113, + "RecordedAt": "2022-09-07T15:01:19.005169-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_1e442c026ba34710b1f705e70335dff7" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_804ca1522f994f769a451ae2503d5d55" }, "Response": { - "Body": "{\"id\":\"ca_1e442c026ba34710b1f705e70335dff7\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_804ca1522f994f769a451ae2503d5d55\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc4630681a1e68a10640072f551", + "x-ep-request-uuid": "3bde9a286319069fe79a6120002e911d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"22620edd927d61659f52ca98f23556d5\"", - "x-runtime": "0.025775", + "ETag": "W/\"045f24062a92bd6cf424973b9e44faea\"", + "x-runtime": "0.026981", "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,8 +101,8 @@ } }, { - "Duration": 297, - "RecordedAt": "2022-08-24T13:53:05.973854-06:00", + "Duration": 179, + "RecordedAt": "2022-09-07T15:01:19.204575-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,7 +114,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_1e442c026ba34710b1f705e70335dff7" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_804ca1522f994f769a451ae2503d5d55" }, "Response": { "Body": "{}", @@ -123,26 +123,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc4630681a1e68a10640072f563", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.118028", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb4wdc 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a286319069fe79a6120002e912b", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.119649", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/carrier_account/delete.json b/EasyPost.Tests/cassettes/netstandard/carrier_account/delete.json index fe42b76bb..05f98ff33 100644 --- a/EasyPost.Tests/cassettes/netstandard/carrier_account/delete.json +++ b/EasyPost.Tests/cassettes/netstandard/carrier_account/delete.json @@ -1,7 +1,7 @@ [ { "Duration": 383, - "RecordedAt": "2022-08-24T13:53:08.67139-06:00", + "RecordedAt": "2022-09-07T15:01:21.556943-06:00", "Request": { "Body": "{\"type\":\"UpsAccount\",\"credentials\":{}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/carrier_accounts" }, "Response": { - "Body": "{\"id\":\"ca_872da344a2fc43c2ad423075f11aa5ff\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_834e171a81ed48d995c8e8e99bf2db02\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681a4f7ef30d4007940b2", + "x-ep-request-uuid": "3bde9a2c631906a1e79a647c002e9229", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"f668c84df0bdb527978c48b79e309e48\"", - "x-runtime": "0.204456", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"74a7952e15b4afa70e7bd7eeb8d1a616\"", + "x-runtime": "0.125982", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -52,8 +52,8 @@ } }, { - "Duration": 161, - "RecordedAt": "2022-08-24T13:53:08.850976-06:00", + "Duration": 179, + "RecordedAt": "2022-09-07T15:01:21.75427-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,7 +65,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_872da344a2fc43c2ad423075f11aa5ff" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_834e171a81ed48d995c8e8e99bf2db02" }, "Response": { "Body": "{}", @@ -74,26 +74,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681a4f7ef30d4007940cd", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.119009", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631906a1e79a647c002e923b", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.113873", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/carrier_account/retrieve.json b/EasyPost.Tests/cassettes/netstandard/carrier_account/retrieve.json index 8f04b912d..ca57549ae 100644 --- a/EasyPost.Tests/cassettes/netstandard/carrier_account/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/carrier_account/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 505, - "RecordedAt": "2022-08-24T13:53:06.499402-06:00", + "Duration": 382, + "RecordedAt": "2022-09-07T15:01:19.61017-06:00", "Request": { "Body": "{\"type\":\"UpsAccount\",\"credentials\":{}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/carrier_accounts" }, "Response": { - "Body": "{\"id\":\"ca_41163f5fce094401b9c7e809a906f406\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_38f7cbf0581e4b1991bae3695802722a\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b086630681a2f7a59865007698a4", + "x-ep-request-uuid": "3bde9a266319069fe79a6146002e9157", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"5d1a8cbf5feb9287755f6d2ab57b09ba\"", - "x-runtime": "0.126268", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"cedc1a54a93be6228a8ee8cc56694294\"", + "x-runtime": "0.115398", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 282, - "RecordedAt": "2022-08-24T13:53:07.038518-06:00", + "Duration": 83, + "RecordedAt": "2022-09-07T15:01:19.857048-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_41163f5fce094401b9c7e809a906f406" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_38f7cbf0581e4b1991bae3695802722a" }, "Response": { - "Body": "{\"id\":\"ca_41163f5fce094401b9c7e809a906f406\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_38f7cbf0581e4b1991bae3695802722a\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b086630681a2f7a59865007698f6", + "x-ep-request-uuid": "3bde9a266319069fe79a6146002e917d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"5d1a8cbf5feb9287755f6d2ab57b09ba\"", - "x-runtime": "0.095659", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"cedc1a54a93be6228a8ee8cc56694294\"", + "x-runtime": "0.026356", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,8 +102,8 @@ } }, { - "Duration": 301, - "RecordedAt": "2022-08-24T13:53:07.3665-06:00", + "Duration": 198, + "RecordedAt": "2022-09-07T15:01:20.070921-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,7 +115,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_41163f5fce094401b9c7e809a906f406" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_38f7cbf0581e4b1991bae3695802722a" }, "Response": { "Body": "{}", @@ -123,26 +124,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b086630681a3f7a598650076992d", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.115885", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb3wdc 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a266319069fe79a6146002e9184", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.140491", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/carrier_account/types.json b/EasyPost.Tests/cassettes/netstandard/carrier_account/types.json index 7dc6bc413..9e4034ac6 100644 --- a/EasyPost.Tests/cassettes/netstandard/carrier_account/types.json +++ b/EasyPost.Tests/cassettes/netstandard/carrier_account/types.json @@ -1,7 +1,7 @@ [ { - "Duration": 424, - "RecordedAt": "2022-08-24T13:53:04.175924-06:00", + "Duration": 575, + "RecordedAt": "2022-09-07T15:01:17.774799-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/carrier_types" }, "Response": { - "Body": "[{\"object\":\"CarrierType\",\"type\":\"AmazonMwsAccount\",\"readable\":\"Amazon MWS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ApcAccount\",\"readable\":\"APC\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AsendiaAccount\",\"readable\":\"Asendia USA (Legacy)\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AsendiaUsaAccount\",\"readable\":\"Asendia USA\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AustraliaPostAccount\",\"readable\":\"Australia Post\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AxlehireV3Account\",\"readable\":\"AxlehireV3\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"BetterTrucksAccount\",\"readable\":\"Better Trucks\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"BondAccount\",\"readable\":\"Bond\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CanadaPostAccount\",\"readable\":\"Canada Post\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"CanparAccount\",\"readable\":\"Canpar\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ColumbusLastMileAccount\",\"readable\":\"CDL Last Mile Solutions\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CourierExpressAccount\",\"readable\":\"Courier Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CouriersPleaseAccount\",\"readable\":\"CouriersPlease\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DaiPostAccount\",\"readable\":\"Dai Post\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DeutschePostUKAccount\",\"readable\":\"Deutsche Post UK\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlEcommerceAsiaAccount\",\"readable\":\"DHL Ecommerce Asia\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlEcsAccount\",\"readable\":\"DHL eCommerce Solutions\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlExpressAccount\",\"readable\":\"DHL Express\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlParcelAccount\",\"readable\":\"DHL Parcel\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DpdAccount\",\"readable\":\"DPD\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DpdUkAccount\",\"readable\":\"DPD UK\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"EstafetaAccount\",\"readable\":\"Estafeta\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FastwayAccount\",\"readable\":\"Fastway\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexAccount\",\"readable\":\"FedEx\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{},\"creation_fields\":{\"credential_information\":{\"account_number\":{\"label\":\"FedEx Account #\",\"visibility\":\"visible\"}},\"company_information\":{\"corporate_first_name\":{\"label\":\"Company Contact First Name\",\"visibility\":\"visible\"},\"corporate_last_name\":{\"label\":\"Company Contact Last Name\",\"visibility\":\"visible\"},\"corporate_job_title\":{\"label\":\"Company Contact Job Title\",\"visibility\":\"visible\"},\"corporate_company_name\":{\"label\":\"Company Name\",\"visibility\":\"visible\"},\"corporate_phone_number\":{\"label\":\"Company Phone\",\"visibility\":\"visible\"},\"corporate_email_address\":{\"label\":\"Company Email\",\"visibility\":\"visible\"},\"corporate_streets\":{\"label\":\"Company Street\",\"visibility\":\"visible\"},\"corporate_city\":{\"label\":\"Company City\",\"visibility\":\"visible\"},\"corporate_state\":{\"label\":\"Company State\",\"visibility\":\"visible\"},\"corporate_postal_code\":{\"label\":\"Company Postal Code\",\"visibility\":\"visible\"},\"corporate_country_code\":{\"label\":\"Company Country Code\",\"visibility\":\"visible\"}},\"address_information\":{\"shipping_streets\":{\"label\":\"Shipping Street\",\"visibility\":\"visible\"},\"shipping_city\":{\"label\":\"Shipping City\",\"visibility\":\"visible\"},\"shipping_state\":{\"label\":\"Shipping State\",\"visibility\":\"visible\"},\"shipping_postal_code\":{\"label\":\"Shipping Postal Code \",\"visibility\":\"visible\"},\"shipping_country_code\":{\"label\":\"Shipping Country Code\",\"visibility\":\"visible\"}}},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"FedexCrossBorderAccount\",\"readable\":\"FedEx Cross Border\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexMailviewAccount\",\"readable\":\"FedEx MailView\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexSamedayCityAccount\",\"readable\":\"FedEx SameDay City\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexSmartpostAccount\",\"readable\":\"FedEx SmartPost\",\"logo\":null,\"fields\":{\"credentials\":{},\"creation_fields\":{\"credential_information\":{\"account_number\":{\"label\":\"FedEx SmartPost Account #\",\"visibility\":\"visible\"},\"hub_id\":{\"label\":\"FedEx SmartPost Hub ID\",\"visibility\":\"visible\"}},\"company_information\":{\"corporate_first_name\":{\"label\":\"Company Contact First Name\",\"visibility\":\"visible\"},\"corporate_last_name\":{\"label\":\"Company Contact Last Name\",\"visibility\":\"visible\"},\"corporate_job_title\":{\"label\":\"Company Contact Job Title\",\"visibility\":\"visible\"},\"corporate_company_name\":{\"label\":\"Company Name\",\"visibility\":\"visible\"},\"corporate_phone_number\":{\"label\":\"Company Phone\",\"visibility\":\"visible\"},\"corporate_email_address\":{\"label\":\"Company Email\",\"visibility\":\"visible\"},\"corporate_streets\":{\"label\":\"Company Street\",\"visibility\":\"visible\"},\"corporate_city\":{\"label\":\"Company City\",\"visibility\":\"visible\"},\"corporate_state\":{\"label\":\"Company State\",\"visibility\":\"visible\"},\"corporate_postal_code\":{\"label\":\"Company Postal Code\",\"visibility\":\"visible\"},\"corporate_country_code\":{\"label\":\"Company Country Code\",\"visibility\":\"visible\"}},\"address_information\":{\"shipping_streets\":{\"label\":\"Shipping Street\",\"visibility\":\"visible\"},\"shipping_city\":{\"label\":\"Shipping City\",\"visibility\":\"visible\"},\"shipping_state\":{\"label\":\"Shipping State\",\"visibility\":\"visible\"},\"shipping_postal_code\":{\"label\":\"Shipping Postal Code \",\"visibility\":\"visible\"},\"shipping_country_code\":{\"label\":\"Shipping Country Code\",\"visibility\":\"visible\"}}},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"GlobegisticsAccount\",\"readable\":\"Globegistics\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"GsoAccount\",\"readable\":\"GSO\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"HermesAccount\",\"readable\":\"Evri\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"InterlinkExpressAccount\",\"readable\":\"Interlink Express\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LasershipV2Account\",\"readable\":\"LaserShipV2\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LoomisExpressAccount\",\"readable\":\"Loomis Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LsoAccount\",\"readable\":\"LSO\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"NewgisticsAccount\",\"readable\":\"Newgistics\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OmniParcelAccount\",\"readable\":\"OmniParcel\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OntracAccount\",\"readable\":\"OnTrac\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OsmWorldwideAccount\",\"readable\":\"OSM Worldwide\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ParcelForceAccount\",\"readable\":\"Parcel Force\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ParcllAccount\",\"readable\":\"Parcll\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"PassportGlobalAccount\",\"readable\":\"Passport Global\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"PurolatorAccount\",\"readable\":\"Purolator\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"RoyalMailAccount\",\"readable\":\"Royal Mail\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"RRDonnelleyAccount\",\"readable\":\"ePost Global\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SendleAccount\",\"readable\":\"Sendle\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SfExpressAccount\",\"readable\":\"SF Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SpeedeeAccount\",\"readable\":\"Spee-Dee\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"StarTrackAccount\",\"readable\":\"StarTrack\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SwyftAccount\",\"readable\":\"Swyft\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"TforceConciseAccount\",\"readable\":\"TForce\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UdsAccount\",\"readable\":\"UDS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UpsAccount\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"UpsIparcelAccount\",\"readable\":\"UPS i-Parcel\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UpsMailInnovationsAccount\",\"readable\":\"UPS Mail Innovations\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UspsAccount\",\"readable\":\"USPS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"VehoAccount\",\"readable\":\"Veho\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}}]", + "Body": "[{\"object\":\"CarrierType\",\"type\":\"AmazonMwsAccount\",\"readable\":\"Amazon MWS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ApcAccount\",\"readable\":\"APC\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AsendiaAccount\",\"readable\":\"Asendia USA (Legacy)\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AsendiaUsaAccount\",\"readable\":\"Asendia USA\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AustraliaPostAccount\",\"readable\":\"Australia Post\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"AxlehireV3Account\",\"readable\":\"AxlehireV3\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"BetterTrucksAccount\",\"readable\":\"Better Trucks\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"BondAccount\",\"readable\":\"Bond\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CanadaPostAccount\",\"readable\":\"Canada Post\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"CanparAccount\",\"readable\":\"Canpar\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ColumbusLastMileAccount\",\"readable\":\"CDL Last Mile Solutions\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CourierExpressAccount\",\"readable\":\"Courier Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"CouriersPleaseAccount\",\"readable\":\"CouriersPlease\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DaiPostAccount\",\"readable\":\"Dai Post\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DeutschePostUKAccount\",\"readable\":\"Deutsche Post UK\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlEcommerceAsiaAccount\",\"readable\":\"DHL Ecommerce Asia\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlEcsAccount\",\"readable\":\"DHL eCommerce Solutions\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlExpressAccount\",\"readable\":\"DHL Express\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DhlParcelAccount\",\"readable\":\"DHL Parcel\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DpdAccount\",\"readable\":\"DPD\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"DpdUkAccount\",\"readable\":\"DPD UK\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"EstafetaAccount\",\"readable\":\"Estafeta\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FastwayAccount\",\"readable\":\"Fastway\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexAccount\",\"readable\":\"FedEx\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{},\"creation_fields\":{\"credential_information\":{\"account_number\":{\"label\":\"FedEx Account #\",\"visibility\":\"visible\"}},\"company_information\":{\"corporate_first_name\":{\"label\":\"Company Contact First Name\",\"visibility\":\"visible\"},\"corporate_last_name\":{\"label\":\"Company Contact Last Name\",\"visibility\":\"visible\"},\"corporate_job_title\":{\"label\":\"Company Contact Job Title\",\"visibility\":\"visible\"},\"corporate_company_name\":{\"label\":\"Company Name\",\"visibility\":\"visible\"},\"corporate_phone_number\":{\"label\":\"Company Phone\",\"visibility\":\"visible\"},\"corporate_email_address\":{\"label\":\"Company Email\",\"visibility\":\"visible\"},\"corporate_streets\":{\"label\":\"Company Street\",\"visibility\":\"visible\"},\"corporate_city\":{\"label\":\"Company City\",\"visibility\":\"visible\"},\"corporate_state\":{\"label\":\"Company State\",\"visibility\":\"visible\"},\"corporate_postal_code\":{\"label\":\"Company Postal Code\",\"visibility\":\"visible\"},\"corporate_country_code\":{\"label\":\"Company Country Code\",\"visibility\":\"visible\"}},\"address_information\":{\"shipping_streets\":{\"label\":\"Shipping Street\",\"visibility\":\"visible\"},\"shipping_city\":{\"label\":\"Shipping City\",\"visibility\":\"visible\"},\"shipping_state\":{\"label\":\"Shipping State\",\"visibility\":\"visible\"},\"shipping_postal_code\":{\"label\":\"Shipping Postal Code \",\"visibility\":\"visible\"},\"shipping_country_code\":{\"label\":\"Shipping Country Code\",\"visibility\":\"visible\"}}},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"FedexCrossBorderAccount\",\"readable\":\"FedEx Cross Border\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexMailviewAccount\",\"readable\":\"FedEx MailView\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexSamedayCityAccount\",\"readable\":\"FedEx SameDay City\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"FedexSmartpostAccount\",\"readable\":\"FedEx SmartPost\",\"logo\":null,\"fields\":{\"credentials\":{},\"creation_fields\":{\"credential_information\":{\"account_number\":{\"label\":\"FedEx SmartPost Account #\",\"visibility\":\"visible\"},\"hub_id\":{\"label\":\"FedEx SmartPost Hub ID\",\"visibility\":\"visible\"}},\"company_information\":{\"corporate_first_name\":{\"label\":\"Company Contact First Name\",\"visibility\":\"visible\"},\"corporate_last_name\":{\"label\":\"Company Contact Last Name\",\"visibility\":\"visible\"},\"corporate_job_title\":{\"label\":\"Company Contact Job Title\",\"visibility\":\"visible\"},\"corporate_company_name\":{\"label\":\"Company Name\",\"visibility\":\"visible\"},\"corporate_phone_number\":{\"label\":\"Company Phone\",\"visibility\":\"visible\"},\"corporate_email_address\":{\"label\":\"Company Email\",\"visibility\":\"visible\"},\"corporate_streets\":{\"label\":\"Company Street\",\"visibility\":\"visible\"},\"corporate_city\":{\"label\":\"Company City\",\"visibility\":\"visible\"},\"corporate_state\":{\"label\":\"Company State\",\"visibility\":\"visible\"},\"corporate_postal_code\":{\"label\":\"Company Postal Code\",\"visibility\":\"visible\"},\"corporate_country_code\":{\"label\":\"Company Country Code\",\"visibility\":\"visible\"}},\"address_information\":{\"shipping_streets\":{\"label\":\"Shipping Street\",\"visibility\":\"visible\"},\"shipping_city\":{\"label\":\"Shipping City\",\"visibility\":\"visible\"},\"shipping_state\":{\"label\":\"Shipping State\",\"visibility\":\"visible\"},\"shipping_postal_code\":{\"label\":\"Shipping Postal Code \",\"visibility\":\"visible\"},\"shipping_country_code\":{\"label\":\"Shipping Country Code\",\"visibility\":\"visible\"}}},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"GlobegisticsAccount\",\"readable\":\"Globegistics\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"GsoAccount\",\"readable\":\"GSO\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"HermesAccount\",\"readable\":\"Evri\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"InterlinkExpressAccount\",\"readable\":\"Interlink Express\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LasershipV2Account\",\"readable\":\"LaserShipV2\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LoomisExpressAccount\",\"readable\":\"Loomis Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"LsoAccount\",\"readable\":\"LSO\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"NewgisticsAccount\",\"readable\":\"Newgistics\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OmniParcelAccount\",\"readable\":\"OmniParcel\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OntracAccount\",\"readable\":\"OnTrac\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"OsmWorldwideAccount\",\"readable\":\"OSM Worldwide\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ParcelForceAccount\",\"readable\":\"Parcel Force\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"ParcllAccount\",\"readable\":\"Parcll\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"PassportGlobalAccount\",\"readable\":\"Passport Global\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"PurolatorAccount\",\"readable\":\"Purolator\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"RoyalMailAccount\",\"readable\":\"Royal Mail\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"RRDonnelleyAccount\",\"readable\":\"ePost Global\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SendleAccount\",\"readable\":\"Sendle\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SfExpressAccount\",\"readable\":\"SF Express\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SpeedeeAccount\",\"readable\":\"Spee-Dee\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"StarTrackAccount\",\"readable\":\"StarTrack\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"SwyftAccount\",\"readable\":\"Swyft\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"TforceConciseAccount\",\"readable\":\"TForce\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UdsAccount\",\"readable\":\"UDS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UpsAccount\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{},\"custom_workflow\":true}},{\"object\":\"CarrierType\",\"type\":\"UpsIparcelAccount\",\"readable\":\"UPS i-Parcel\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UpsMailInnovationsAccount\",\"readable\":\"UPS Mail Innovations\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"UspsAccount\",\"readable\":\"USPS\",\"logo\":null,\"fields\":{\"credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"VehoAccount\",\"readable\":\"Veho\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}},{\"object\":\"CarrierType\",\"type\":\"XDeliveryAccount\",\"readable\":\"XDelivery\",\"logo\":null,\"fields\":{\"credentials\":{},\"test_credentials\":{}}}]", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "32708" + "Content-Length": "33114" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,21 +31,21 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dc630681a0f7ed0059007ed249", + "x-ep-request-uuid": "3bde9a266319069de79a60db002e9069", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"520345ce7fba75ebc602d7f8070d61c7\"", - "x-runtime": "0.026224", + "ETag": "W/\"ab9b21e41223013b1cefac95928e4073\"", + "x-runtime": "0.028495", "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, - "Status": { - "Code": 200, - "Message": "OK" + "Status": { + "Code": 200, + "Message": "OK" + } } - } } ] diff --git a/EasyPost.Tests/cassettes/netstandard/carrier_account/update.json b/EasyPost.Tests/cassettes/netstandard/carrier_account/update.json index e16910825..d8416e6ee 100644 --- a/EasyPost.Tests/cassettes/netstandard/carrier_account/update.json +++ b/EasyPost.Tests/cassettes/netstandard/carrier_account/update.json @@ -1,7 +1,7 @@ [ { - "Duration": 403, - "RecordedAt": "2022-08-24T13:53:07.790148-06:00", + "Duration": 416, + "RecordedAt": "2022-09-07T15:01:20.507666-06:00", "Request": { "Body": "{\"type\":\"UpsAccount\",\"credentials\":{}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/carrier_accounts" }, "Response": { - "Body": "{\"id\":\"ca_f3dcd6a1de084b3083650dcc6bd24cd3\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_72341c37f2d9429d928321dc87ee8c98\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"description\":\"UPS Account\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681a3f7f0bc7700794047", + "x-ep-request-uuid": "3bde9a25631906a0e79a6166002e91b2", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"7758fb39211f026cbcac386940e88a4f\"", - "x-runtime": "0.207652", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"32413fd4996b8e9fced9f94b317a9cdc\"", + "x-runtime": "0.131577", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -52,8 +52,8 @@ } }, { - "Duration": 170, - "RecordedAt": "2022-08-24T13:53:07.991056-06:00", + "Duration": 190, + "RecordedAt": "2022-09-07T15:01:20.718918-06:00", "Request": { "Body": "{\"description\":\"my custom description\"}", "BodyContentType": "Json", @@ -68,10 +68,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_f3dcd6a1de084b3083650dcc6bd24cd3" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_72341c37f2d9429d928321dc87ee8c98" }, "Response": { - "Body": "{\"id\":\"ca_f3dcd6a1de084b3083650dcc6bd24cd3\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"description\":\"my custom description\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_72341c37f2d9429d928321dc87ee8c98\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"description\":\"my custom description\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -86,13 +86,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681a3f7f0bc770079406b", + "x-ep-request-uuid": "3bde9a25631906a0e79a6166002e91cd", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"0e6f5d45c11999fcbdcd623c2c7da7e1\"", - "x-runtime": "0.131630", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"a26b483a5c51e565bb29dbaeca102f9e\"", + "x-runtime": "0.127914", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -104,8 +104,8 @@ } }, { - "Duration": 78, - "RecordedAt": "2022-08-24T13:53:08.089322-06:00", + "Duration": 199, + "RecordedAt": "2022-09-07T15:01:20.938087-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -117,10 +117,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_f3dcd6a1de084b3083650dcc6bd24cd3" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_72341c37f2d9429d928321dc87ee8c98" }, "Response": { - "Body": "{\"id\":\"ca_f3dcd6a1de084b3083650dcc6bd24cd3\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"description\":\"my custom description\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", + "Body": "{\"id\":\"ca_72341c37f2d9429d928321dc87ee8c98\",\"object\":\"CarrierAccount\",\"type\":\"UpsAccount\",\"clone\":false,\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"description\":\"my custom description\",\"reference\":null,\"billing_type\":\"carrier\",\"readable\":\"UPS\",\"logo\":null,\"fields\":{\"credentials\":{}},\"credentials\":{}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -135,15 +135,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681a4f7f0bc770079407a", + "x-ep-request-uuid": "3bde9a25631906a0e79a6166002e91e4", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"0e6f5d45c11999fcbdcd623c2c7da7e1\"", - "x-runtime": "0.037356", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"a26b483a5c51e565bb29dbaeca102f9e\"", + "x-runtime": "0.136010", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -153,8 +153,8 @@ } }, { - "Duration": 161, - "RecordedAt": "2022-08-24T13:53:08.268398-06:00", + "Duration": 195, + "RecordedAt": "2022-09-07T15:01:21.154126-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -166,7 +166,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_f3dcd6a1de084b3083650dcc6bd24cd3" + "Uri": "https://api.easypost.com/v2/carrier_accounts/ca_72341c37f2d9429d928321dc87ee8c98" }, "Response": { "Body": "{}", @@ -175,26 +175,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681a4f7f0bc7700794082", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.122192", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a25631906a1e79a6166002e9200", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.114892", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/customs_info/create.json b/EasyPost.Tests/cassettes/netstandard/customs_info/create.json index d93be91ba..fb2506f7b 100644 --- a/EasyPost.Tests/cassettes/netstandard/customs_info/create.json +++ b/EasyPost.Tests/cassettes/netstandard/customs_info/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 595, - "RecordedAt": "2022-08-24T13:53:04.182036-06:00", + "Duration": 623, + "RecordedAt": "2022-09-07T15:01:17.763811-06:00", "Request": { "Body": "{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/customs_infos" }, "Response": { - "Body": "{\"id\":\"cstinfo_6218f4005f1a42e8a38a495e62752a70\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", + "Body": "{\"id\":\"cstinfo_e8793252750a443cbf500260a8560179\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d9630681a0f7de35e0007ed256", + "x-ep-request-uuid": "3bde9a286319069de79a60dd002e9070", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/customs_infos/cstinfo_6218f4005f1a42e8a38a495e62752a70", - "ETag": "W/\"3193e53f4362474cd94a472f0973bd5f\"", - "x-runtime": "0.102061", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/customs_infos/cstinfo_e8793252750a443cbf500260a8560179", + "ETag": "W/\"94c4018d79025eab854e0fa5309258df\"", + "x-runtime": "0.039030", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/customs_info/retrieve.json b/EasyPost.Tests/cassettes/netstandard/customs_info/retrieve.json index 3d0d6d714..badb81905 100644 --- a/EasyPost.Tests/cassettes/netstandard/customs_info/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/customs_info/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 212, - "RecordedAt": "2022-08-24T13:53:04.70461-06:00", + "Duration": 337, + "RecordedAt": "2022-09-07T15:01:18.310507-06:00", "Request": { "Body": "{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/customs_infos" }, "Response": { - "Body": "{\"id\":\"cstinfo_caea703fd06a46b182b2c31351b2cb4f\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", + "Body": "{\"id\":\"cstinfo_ea4c6d9dc8184c5b84ec8311ffacf437\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33db630681a0f7a525d1007ed2bf", + "x-ep-request-uuid": "3bde9a296319069ee79a60fd002e90be", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/customs_infos/cstinfo_caea703fd06a46b182b2c31351b2cb4f", - "ETag": "W/\"c14166cb4792de364c4911d749d1784d\"", - "x-runtime": "0.025948", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/customs_infos/cstinfo_ea4c6d9dc8184c5b84ec8311ffacf437", + "ETag": "W/\"af187a6c9e022ed81374ec751b37ee8b\"", + "x-runtime": "0.025234", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 112, - "RecordedAt": "2022-08-24T13:53:04.885413-06:00", + "Duration": 87, + "RecordedAt": "2022-09-07T15:01:18.424515-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/customs_infos/cstinfo_caea703fd06a46b182b2c31351b2cb4f" + "Uri": "https://api.easypost.com/v2/customs_infos/cstinfo_ea4c6d9dc8184c5b84ec8311ffacf437" }, "Response": { - "Body": "{\"id\":\"cstinfo_caea703fd06a46b182b2c31351b2cb4f\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", + "Body": "{\"id\":\"cstinfo_ea4c6d9dc8184c5b84ec8311ffacf437\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33db630681a0f7a525d1007ed2d9", + "x-ep-request-uuid": "3bde9a296319069ee79a60fd002e90d1", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"c14166cb4792de364c4911d749d1784d\"", - "x-runtime": "0.073746", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"af187a6c9e022ed81374ec751b37ee8b\"", + "x-runtime": "0.024420", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/customs_item/create.json b/EasyPost.Tests/cassettes/netstandard/customs_item/create.json index c65d542ee..086a9f133 100644 --- a/EasyPost.Tests/cassettes/netstandard/customs_item/create.json +++ b/EasyPost.Tests/cassettes/netstandard/customs_item/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 468, - "RecordedAt": "2022-08-24T13:53:04.162907-06:00", + "Duration": 690, + "RecordedAt": "2022-09-07T15:01:17.76273-06:00", "Request": { "Body": "{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/customs_items" }, "Response": { - "Body": "{\"id\":\"cstitem_7d799a6a16a441c1a08aa88ee6a0e3c2\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", + "Body": "{\"id\":\"cstitem_7dc9d786280a4493a70ca7057e9e20cd\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d7630681a0f7cd2033007ed269", + "x-ep-request-uuid": "3bde9a2b6319069de79a60e4002e9074", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/customs_items/cstitem_7d799a6a16a441c1a08aa88ee6a0e3c2", - "ETag": "W/\"981d5b3ecf5db56a8230d5d3ad564eab\"", - "x-runtime": "0.025716", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/customs_items/cstitem_7dc9d786280a4493a70ca7057e9e20cd", + "ETag": "W/\"051ad8faca36aad5046cf4d43254de33\"", + "x-runtime": "0.029070", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/customs_item/retrieve.json b/EasyPost.Tests/cassettes/netstandard/customs_item/retrieve.json index cb4087f43..e9f9d74fd 100644 --- a/EasyPost.Tests/cassettes/netstandard/customs_item/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/customs_item/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 210, - "RecordedAt": "2022-08-24T13:53:04.633183-06:00", + "Duration": 344, + "RecordedAt": "2022-09-07T15:01:18.316883-06:00", "Request": { "Body": "{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/customs_items" }, "Response": { - "Body": "{\"id\":\"cstitem_53da684938fb4fb899a20a43f4e602a3\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", + "Body": "{\"id\":\"cstitem_50c5647127d14ad299e2dbdc6adb0ed3\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,17 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dc630681a0f7a7e01a007ed2b6", + "x-ep-request-uuid": "3bde9a286319069ee79a60fe002e90bf", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/customs_items/cstitem_53da684938fb4fb899a20a43f4e602a3", - "ETag": "W/\"56bbd3addf519105385d979087dc0dfd\"", - "x-runtime": "0.026517", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/customs_items/cstitem_50c5647127d14ad299e2dbdc6adb0ed3", + "ETag": "W/\"4d2c6e969d9653ce0aced6e769ae08b4\"", + "x-runtime": "0.036082", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -54,8 +53,8 @@ } }, { - "Duration": 62, - "RecordedAt": "2022-08-24T13:53:04.733302-06:00", + "Duration": 95, + "RecordedAt": "2022-09-07T15:01:18.455254-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -67,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/customs_items/cstitem_53da684938fb4fb899a20a43f4e602a3" + "Uri": "https://api.easypost.com/v2/customs_items/cstitem_50c5647127d14ad299e2dbdc6adb0ed3" }, "Response": { - "Body": "{\"id\":\"cstitem_53da684938fb4fb899a20a43f4e602a3\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", + "Body": "{\"id\":\"cstitem_50c5647127d14ad299e2dbdc6adb0ed3\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -85,15 +84,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dc630681a0f7a7e01a007ed2c8", + "x-ep-request-uuid": "3bde9a286319069ee79a60fe002e90d6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"56bbd3addf519105385d979087dc0dfd\"", - "x-runtime": "0.021918", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"4d2c6e969d9653ce0aced6e769ae08b4\"", + "x-runtime": "0.021990", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,5 +101,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/end_shipper/all.json b/EasyPost.Tests/cassettes/netstandard/end_shipper/all.json index 07044073f..54e9b6025 100644 --- a/EasyPost.Tests/cassettes/netstandard/end_shipper/all.json +++ b/EasyPost.Tests/cassettes/netstandard/end_shipper/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 424, - "RecordedAt": "2022-08-24T13:53:05.800299-06:00", + "Duration": 333, + "RecordedAt": "2022-09-07T15:01:19.377166-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -22,26 +22,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "1801" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edbf630681a1f7ed7a8b0072f55a", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"00c862705e26113b8ffeb007f410f95f\"", - "x-runtime": "0.059931", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a266319069fe79a6141002e9146", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"00c862705e26113b8ffeb007f410f95f\"", + "x-runtime": "0.061776", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/end_shipper/create.json b/EasyPost.Tests/cassettes/netstandard/end_shipper/create.json index 0d0660c18..b1c965488 100644 --- a/EasyPost.Tests/cassettes/netstandard/end_shipper/create.json +++ b/EasyPost.Tests/cassettes/netstandard/end_shipper/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 397, - "RecordedAt": "2022-08-24T13:53:05.348418-06:00", + "Duration": 332, + "RecordedAt": "2022-09-07T15:01:19.016395-06:00", "Request": { "Body": "{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/beta/end_shippers" }, "Response": { - "Body": "{\"id\":\"es_3b9852267a8b4d929330b5ea01db34a3\",\"object\":\"EndShipper\",\"created_at\":\"2022-08-24T13:53:05-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", + "Body": "{\"id\":\"es_3654fb448632453c90c8d27626e94d98\",\"object\":\"EndShipper\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc3630681a1f7dcfb740072f52f", + "x-ep-request-uuid": "3bde9a286319069fe79a6123002e911a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"c40277bf2f5d40c64a1381bcaa09e048\"", - "x-runtime": "0.041233", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"dd9f7dbaa6846352dcd3b2ea806f9f4e\"", + "x-runtime": "0.065879", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/end_shipper/retrieve.json b/EasyPost.Tests/cassettes/netstandard/end_shipper/retrieve.json index b64891e8a..0f238afea 100644 --- a/EasyPost.Tests/cassettes/netstandard/end_shipper/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/end_shipper/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 242, - "RecordedAt": "2022-08-24T13:53:04.808599-06:00", + "Duration": 316, + "RecordedAt": "2022-09-07T15:01:18.523394-06:00", "Request": { "Body": "{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/beta/end_shippers" }, "Response": { - "Body": "{\"id\":\"es_a4ecd8b6b9f846bd9c5c38ef2fd98c70\",\"object\":\"EndShipper\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", + "Body": "{\"id\":\"es_7738111185534df4a2654be3efb8c56e\",\"object\":\"EndShipper\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d8630681a0e688dd7a007ed2d2", + "x-ep-request-uuid": "3bde9a296319069ee79a6105002e90dc", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"0aeaae38136623fd6456532219059576\"", - "x-runtime": "0.043982", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"25a52610fe7917720678065d9c8f3004\"", + "x-runtime": "0.047621", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +53,8 @@ } }, { - "Duration": 81, - "RecordedAt": "2022-08-24T13:53:04.926101-06:00", + "Duration": 110, + "RecordedAt": "2022-09-07T15:01:18.655389-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/end_shippers/es_a4ecd8b6b9f846bd9c5c38ef2fd98c70" + "Uri": "https://api.easypost.com/beta/end_shippers/es_7738111185534df4a2654be3efb8c56e" }, "Response": { - "Body": "{\"id\":\"es_a4ecd8b6b9f846bd9c5c38ef2fd98c70\",\"object\":\"EndShipper\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", + "Body": "{\"id\":\"es_7738111185534df4a2654be3efb8c56e\",\"object\":\"EndShipper\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d8630681a1e688dd7a007ed2e4", + "x-ep-request-uuid": "3bde9a296319069ee79a6105002e90ec", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"51c3b0fb6e0ea03629862ab1deb830c0\"", - "x-runtime": "0.037955", + "ETag": "W/\"1d11206d7c2e702c8e7f87f9367efdb8\"", + "x-runtime": "0.031007", "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -99,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/end_shipper/update.json b/EasyPost.Tests/cassettes/netstandard/end_shipper/update.json index 9dbaf69ad..f20ff92bb 100644 --- a/EasyPost.Tests/cassettes/netstandard/end_shipper/update.json +++ b/EasyPost.Tests/cassettes/netstandard/end_shipper/update.json @@ -1,7 +1,7 @@ [ { - "Duration": 447, - "RecordedAt": "2022-08-24T13:53:04.161952-06:00", + "Duration": 712, + "RecordedAt": "2022-09-07T15:01:17.807312-06:00", "Request": { "Body": "{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/beta/end_shippers" }, "Response": { - "Body": "{\"id\":\"es_b09ffe3af1954795b8a5afcab94e2688\",\"object\":\"EndShipper\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", + "Body": "{\"id\":\"es_fd38af55afec450199314e3d80479b26\",\"object\":\"EndShipper\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33de630681a0f7b8f01a007ed254", + "x-ep-request-uuid": "3bde9a296319069de79a60e0002e907b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"8e9e99a2329a3acfb56a56dd14949323\"", - "x-runtime": "0.042005", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"ff6c36023281d10dd5578419adfad4b7\"", + "x-runtime": "0.084322", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 106, - "RecordedAt": "2022-08-24T13:53:04.517387-06:00", + "Duration": 136, + "RecordedAt": "2022-09-07T15:01:18.157442-06:00", "Request": { "Body": "{\"address\":{\"name\":\"NEW NAME\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}}", "BodyContentType": "Json", @@ -68,10 +68,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/end_shippers/es_b09ffe3af1954795b8a5afcab94e2688" + "Uri": "https://api.easypost.com/beta/end_shippers/es_fd38af55afec450199314e3d80479b26" }, "Response": { - "Body": "{\"id\":\"es_b09ffe3af1954795b8a5afcab94e2688\",\"object\":\"EndShipper\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"NEW NAME\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", + "Body": "{\"id\":\"es_fd38af55afec450199314e3d80479b26\",\"object\":\"EndShipper\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"NEW NAME\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -86,15 +86,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33de630681a0f7b8f01a007ed29d", + "x-ep-request-uuid": "3bde9a296319069ee79a60e0002e90ab", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"9c8f18f3f98bc0e5e29fba443336e26c\"", - "x-runtime": "0.062777", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"28a274ad79c3cfcbbfe9a266332e3b09\"", + "x-runtime": "0.071206", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/error/bad_parameters.json b/EasyPost.Tests/cassettes/netstandard/error/bad_parameters.json index 88e2147a6..cde633acc 100644 --- a/EasyPost.Tests/cassettes/netstandard/error/bad_parameters.json +++ b/EasyPost.Tests/cassettes/netstandard/error/bad_parameters.json @@ -1,7 +1,7 @@ [ { - "Duration": 429, - "RecordedAt": "2022-08-24T13:53:04.149259-06:00", + "Duration": 584, + "RecordedAt": "2022-09-07T15:01:17.748652-06:00", "Request": { "Body": "{\"shipment\":{},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dd630681a0f7f16340007ed24e", + "x-ep-request-uuid": "3bde9a286319069de79a60dc002e905d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.033752", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-runtime": "0.031575", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/event/all.json b/EasyPost.Tests/cassettes/netstandard/event/all.json index 475ae5afe..ed1f459e8 100644 --- a/EasyPost.Tests/cassettes/netstandard/event/all.json +++ b/EasyPost.Tests/cassettes/netstandard/event/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 568, - "RecordedAt": "2022-08-24T13:53:05.204518-06:00", + "Duration": 549, + "RecordedAt": "2022-09-07T15:01:18.734746-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,7 +16,7 @@ "Uri": "https://api.easypost.com/v2/events?page_size=5" }, "Response": { - "Body": "{\"events\":[{\"description\":\"report.empty\",\"id\":\"evt_5e5720a423e611ed96c95d48f5e832b2\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:05.057Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"batch.updated\",\"id\":\"evt_5e4e092423e611eda1c311af42810bd9\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:04.997Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"batch.created\",\"id\":\"evt_5e4145c223e611edbc23574c3553f8fe\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:04.913Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.new\",\"id\":\"evt_5e2ff7ae23e611edae2651738d2e14fe\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:04.8Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.empty\",\"id\":\"evt_5e0adbae23e611ed99d359a45d5e108f\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:04.557Z\",\"mode\":\"test\",\"object\":\"Event\"}],\"has_more\":true}", + "Body": "{\"events\":[{\"description\":\"batch.updated\",\"id\":\"evt_38180bf02ef011ed955a2f2ea8b21001\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T21:01:18.648Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"batch.created\",\"id\":\"evt_380a3bb02ef011ed9e5d3f1e1e2ff4f0\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T21:01:18.557Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.empty\",\"id\":\"evt_3802a8002ef011ed811e193e4d8d481d\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T21:01:18.508Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.new\",\"id\":\"evt_37f479c42ef011ed94b145dfcce8ddb5\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T21:01:18.415Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.empty\",\"id\":\"evt_37b6d0d82ef011edbdf72d1bedf4cb7d\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T21:01:18.011Z\",\"mode\":\"test\",\"object\":\"Event\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -31,16 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edbf630681a0f7ee8f120072f510", + "x-ep-request-uuid": "3bde9a276319069ee79a6104002e90d9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"867905affd7acd9a010c0917f94a989c\"", - "x-runtime": "0.208659", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"1b85bbb9d39f09d1c1e6fc8b4e317a96\"", + "x-runtime": "0.257692", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/event/retrieve.json b/EasyPost.Tests/cassettes/netstandard/event/retrieve.json index 447dcc5dd..6c4b943cf 100644 --- a/EasyPost.Tests/cassettes/netstandard/event/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/event/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 707, - "RecordedAt": "2022-08-24T13:53:04.281556-06:00", + "Duration": 906, + "RecordedAt": "2022-09-07T15:01:17.925299-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/events?page_size=5" }, "Response": { - "Body": "{\"events\":[{\"description\":\"batch.updated\",\"id\":\"evt_5de8527823e611eda6c22d96cea81650\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:04.331Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.new\",\"id\":\"evt_5de5781e23e611ed8bb0771e3842fcfe\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:04.312Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"batch.created\",\"id\":\"evt_5dd862e623e611edb6545781cfe61033\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-24T19:53:04.226Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"tracker.updated\",\"id\":\"evt_eb1774b4226811eda1ed2b39f40708b4\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-22T22:22:33.447Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"tracker.updated\",\"id\":\"evt_eb0e56d6226811eda51a799c58066afb\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-08-22T22:22:33.388Z\",\"mode\":\"test\",\"object\":\"Event\"}],\"has_more\":true}", + "Body": "{\"events\":[{\"description\":\"batch.created\",\"id\":\"evt_3790fbec2ef011ed9f106f581a2c022c\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T21:01:17.763Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"report.new\",\"id\":\"evt_378fa3b42ef011ed95c46b6dfdf48f70\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T21:01:17.754Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"tracker.updated\",\"id\":\"evt_31283e642ef011eda7cf75c126147277\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T21:01:07.01Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"tracker.updated\",\"id\":\"evt_3089a7182ef011edb916732a43bf8f96\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T21:01:05.97Z\",\"mode\":\"test\",\"object\":\"Event\"},{\"description\":\"tracker.updated\",\"id\":\"evt_2f6637522ef011ed8d1919045dec094b\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"created_at\":\"2022-09-07T21:01:04.061Z\",\"mode\":\"test\",\"object\":\"Event\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1109" + "Content-Length": "1111" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,15 +31,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dc630681a0f7cdad97007ed246", + "x-ep-request-uuid": "3bde9a2c6319069de79a60bc002e9064", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"2733e294268c7247604978574b419272\"", - "x-runtime": "0.228727", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"8c45daa8b189c77ce9057788f1244627\"", + "x-runtime": "0.252577", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -49,8 +50,8 @@ } }, { - "Duration": 66, - "RecordedAt": "2022-08-24T13:53:04.591537-06:00", + "Duration": 101, + "RecordedAt": "2022-09-07T15:01:18.156266-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -62,15 +63,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/events/evt_5de8527823e611eda6c22d96cea81650" + "Uri": "https://api.easypost.com/v2/events/evt_3790fbec2ef011ed9f106f581a2c022c" }, "Response": { - "Body": "{\"description\":\"batch.updated\",\"mode\":\"test\",\"previous_attributes\":{\"state\":\"creating\"},\"created_at\":\"2022-08-24T19:53:04Z\",\"pending_urls\":[\"https://example.com/retrieve\"],\"completed_urls\":[],\"updated_at\":\"2022-08-24T19:53:04Z\",\"id\":\"evt_5de8527823e611eda6c22d96cea81650\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"object\":\"Event\"}", + "Body": "{\"description\":\"batch.created\",\"mode\":\"test\",\"previous_attributes\":{},\"created_at\":\"2022-09-07T21:01:18Z\",\"pending_urls\":[\"https://example.com/retrieve\"],\"completed_urls\":[],\"updated_at\":\"2022-09-07T21:01:18Z\",\"id\":\"evt_3790fbec2ef011ed9f106f581a2c022c\",\"user_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"status\":\"pending\",\"object\":\"Event\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "366" + "Content-Length": "348" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -80,15 +81,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dc630681a0f7cdad97007ed2af", + "x-ep-request-uuid": "3bde9a2c6319069ee79a60bc002e90ad", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"18f692269a79db33dea22d6affb5e276\"", - "x-runtime": "0.025419", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"0ab43c90f68e466de514257a3ce98f22\"", + "x-runtime": "0.030560", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -96,5 +97,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/insurance/all.json b/EasyPost.Tests/cassettes/netstandard/insurance/all.json index ac0d6d022..c33a40eb5 100644 --- a/EasyPost.Tests/cassettes/netstandard/insurance/all.json +++ b/EasyPost.Tests/cassettes/netstandard/insurance/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 600, - "RecordedAt": "2022-08-24T13:53:06.026329-06:00", + "Duration": 466, + "RecordedAt": "2022-09-07T15:01:19.402379-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/insurances?page_size=5" }, "Response": { - "Body": "{\"insurances\":[{\"id\":\"ins_700f235f45d64c0e92f6975c2f827a8a\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_5e7b17f223e611ed8343ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:05-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_5e7f17c623e611ed9bfaac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:05-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_75946a1b1cb246379fc140ed2dcf5664\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780142\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:05Z\",\"shipment_id\":\"shp_1979c48868a440709bd03c51dbf07aa2\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzc1OTQ2YTFiMWNiMjQ2Mzc5ZmMxNDBlZDJkY2Y1NjY0\",\"fees\":[]},\"tracking_code\":\"9400100109361134780142\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\"},{\"id\":\"ins_e4ed0f5ed7b44cc782d8f9e42134fa92\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"purchased\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_06502341226711ed96c6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:09:00-06:00\",\"updated_at\":\"2022-08-22T16:09:00-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_065200ac226711ed96c7ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:09:00-06:00\",\"updated_at\":\"2022-08-22T16:09:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipment_id\":\"shp_bf47c48ff22c42788820529d540d7be1\",\"tracker\":{\"id\":\"trk_8da3034065804eb49ff925352d082f15\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134350277\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-08-22T22:09:01Z\",\"updated_at\":\"2022-08-22T22:12:01Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-08-22T22:12:01Z\",\"shipment_id\":\"shp_bf47c48ff22c42788820529d540d7be1\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-22T22:12:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-23T10:49:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-23T20:54:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-24T22:30:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-25T01:21:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T07:01:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-07-25T07:11:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-07-25T12:03:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-07-25T12:03:01Z\"},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzhkYTMwMzQwNjU4MDRlYjQ5ZmY5MjUzNTJkMDgyZjE1\",\"fees\":[]},\"tracking_code\":\"9400100109361134350277\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-22T22:09:01Z\",\"updated_at\":\"2022-08-22T22:09:01Z\"},{\"id\":\"ins_9a473a3ac0cc4742bbb4638db4a57817\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"cancelled\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_fd521dcf226611ed9590ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:08:45-06:00\",\"updated_at\":\"2022-08-22T16:08:45-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_fd55e120226611ed92c2ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:08:45-06:00\",\"updated_at\":\"2022-08-22T16:08:45-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_34e3a8bfb0214642813b07c4ec438487\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134350185\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-08-22T22:08:44Z\",\"updated_at\":\"2022-08-22T22:11:45Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-08-22T22:11:45Z\",\"shipment_id\":\"shp_ae1388b7374845b99ca917915ced7d93\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-22T22:11:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-23T10:48:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-23T20:53:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-24T22:29:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-25T01:20:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T07:00:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-07-25T07:10:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-07-25T12:02:45Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-07-25T12:02:45Z\"},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzM0ZTNhOGJmYjAyMTQ2NDI4MTNiMDdjNGVjNDM4NDg3\",\"fees\":[]},\"tracking_code\":\"9400100109361134350185\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[\"The tracker entered the mailstream before insurance was purchased.\"],\"created_at\":\"2022-08-22T22:08:45Z\",\"updated_at\":\"2022-08-22T22:10:30Z\"},{\"id\":\"ins_596c17d8e9df49dda4cc1bc482d9b925\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"cancelled\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_fc31bca4226611ed9af7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:08:43-06:00\",\"updated_at\":\"2022-08-22T16:08:43-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_fc359ef0226611ed9569ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:08:43-06:00\",\"updated_at\":\"2022-08-22T16:08:43-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_96b542f7551b414d9885693e29b752cb\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134350093\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-08-22T22:08:43Z\",\"updated_at\":\"2022-08-22T22:11:43Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-08-22T22:11:43Z\",\"shipment_id\":\"shp_27a578c0ecf948adbf378d807840c888\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-22T22:11:43Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-23T10:48:43Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-23T20:53:43Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-24T22:29:43Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-25T01:20:43Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T07:00:43Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-07-25T07:10:43Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-07-25T12:02:43Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-07-25T12:02:43Z\"},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzk2YjU0MmY3NTUxYjQxNGQ5ODg1NjkzZTI5Yjc1MmNi\",\"fees\":[]},\"tracking_code\":\"9400100109361134350093\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[\"The tracker entered the mailstream before insurance was purchased.\"],\"created_at\":\"2022-08-22T22:08:43Z\",\"updated_at\":\"2022-08-22T22:09:43Z\"},{\"id\":\"ins_6f44df04283a49a2aeb292db60ad4cf9\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"purchased\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_d475dea7226611ed915dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:07:36-06:00\",\"updated_at\":\"2022-08-22T16:07:36-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_d477ee23226611ed88cbac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:07:36-06:00\",\"updated_at\":\"2022-08-22T16:07:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipment_id\":\"shp_949df0ae5e374e5d81c6ddd82461ce13\",\"tracker\":{\"id\":\"trk_fdf84d0a53424fd0b55aad487f330980\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134349905\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-08-22T22:07:37Z\",\"updated_at\":\"2022-08-22T22:10:37Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-08-22T22:10:37Z\",\"shipment_id\":\"shp_949df0ae5e374e5d81c6ddd82461ce13\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-22T22:10:37Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-23T10:47:37Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-23T20:52:37Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-24T22:28:37Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-07-25T01:19:37Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T06:59:37Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-07-25T07:09:37Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-07-25T12:01:37Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-07-25T12:01:37Z\"},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrX2ZkZjg0ZDBhNTM0MjRmZDBiNTVhYWQ0ODdmMzMwOTgw\",\"fees\":[]},\"tracking_code\":\"9400100109361134349905\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-22T22:07:37Z\",\"updated_at\":\"2022-08-22T22:07:37Z\"}],\"has_more\":true}", + "Body": "{\"insurances\":[{\"id\":\"ins_6eadab2dab5749aab430b0e5c22511b2\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_382af5a02ef011edb13cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_382e51df2ef011eda5d1ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_af30a5db0002462194eb2c2cd90246be\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478603\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:18Z\",\"shipment_id\":\"shp_af2bbea66e874f2cba8663437f15d8f1\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2FmMzBhNWRiMDAwMjQ2MjE5NGViMmMyY2Q5MDI0NmJl\",\"fees\":[]},\"tracking_code\":\"9400100109361136478603\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\"},{\"id\":\"ins_2393a07fe5754580805e7dedc4d25467\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"purchased\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_3cbcc0642eef11eda57dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:16-06:00\",\"updated_at\":\"2022-09-07T14:54:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_3cbf95bb2eef11eda57eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:54:16-06:00\",\"updated_at\":\"2022-09-07T14:54:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"tracker\":{\"id\":\"trk_934ce9b34f3e4c7bbf60c147db8f288d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477989\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-09-07T20:54:17Z\",\"updated_at\":\"2022-09-07T20:57:18Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:57:18Z\",\"shipment_id\":\"shp_03a711bd5d444c9aa8ad574d7314e85b\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:57:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:34:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-08T19:39:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-09T21:15:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-10T00:06:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-10T05:46:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-10T05:56:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-08-10T10:48:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-08-10T10:48:18Z\"},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzkzNGNlOWIzNGYzZTRjN2JiZjYwYzE0N2RiOGYyODhk\",\"fees\":[]},\"tracking_code\":\"9400100109361136477989\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-09-07T20:54:18Z\",\"updated_at\":\"2022-09-07T20:54:18Z\"},{\"id\":\"ins_09b4cbd7c92845c9902b84a55b18bdf8\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"cancelled\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_3216ed2e2eef11ed98ceac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:59-06:00\",\"updated_at\":\"2022-09-07T14:53:59-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_321ba67c2eef11ed98d2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:59-06:00\",\"updated_at\":\"2022-09-07T14:53:59-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_1d11796bc97d419ca61de49a61b5c1d4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477859\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:56:59Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:56:59Z\",\"shipment_id\":\"shp_da351b4842ab4a768fce4cc8ad0a42ca\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:56:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:33:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-08T19:38:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-09T21:14:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-10T00:05:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-10T05:45:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-10T05:55:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-08-10T10:47:59Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-08-10T10:47:59Z\"},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzFkMTE3OTZiYzk3ZDQxOWNhNjFkZTQ5YTYxYjVjMWQ0\",\"fees\":[]},\"tracking_code\":\"9400100109361136477859\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[\"The tracker entered the mailstream before insurance was purchased.\"],\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:55:09Z\"},{\"id\":\"ins_a44d84ddcf2748fc8fa8012db16ae8cd\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"cancelled\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_30c9126d2eef11edb611ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_30cd022f2eef11edb614ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:56-06:00\",\"updated_at\":\"2022-09-07T14:53:56-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_3b87ff9c2b5d4a6ea37ace77e8f0ecb7\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477781\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:56:57Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:56:57Z\",\"shipment_id\":\"shp_26032efe9b2c4421881d69d1fe56813f\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:56:57Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:33:57Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-08T19:38:57Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-09T21:14:57Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-10T00:05:57Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-10T05:45:57Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-10T05:55:57Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-08-10T10:47:57Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-08-10T10:47:57Z\"},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzNiODdmZjljMmI1ZDRhNmVhMzdhY2U3N2U4ZjBlY2I3\",\"fees\":[]},\"tracking_code\":\"9400100109361136477781\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[\"The tracker entered the mailstream before insurance was purchased.\"],\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:55:03Z\"},{\"id\":\"ins_45e5e231c9474f69916fcac801214c59\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"cancelled\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_1adebca82eef11ed852bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:20-06:00\",\"updated_at\":\"2022-09-07T14:53:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_1ae2db012eef11ed852cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:20-06:00\",\"updated_at\":\"2022-09-07T14:53:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_573615d4c3764408bea02735221fd335\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477644\",\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"created_at\":\"2022-09-07T20:53:20Z\",\"updated_at\":\"2022-09-07T20:56:20Z\",\"signed_by\":\"John Tester\",\"weight\":null,\"est_delivery_date\":\"2022-09-07T20:56:20Z\",\"shipment_id\":\"shp_9e9b88fbf3d543cbb9f51de76e184010\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T20:56:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:33:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-08T19:38:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-09T21:14:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-10T00:05:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-10T05:45:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-10T05:55:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Delivered\",\"description\":null,\"status\":\"delivered\",\"status_detail\":\"arrived_at_destination\",\"datetime\":\"2022-08-10T10:47:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"},\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":\"2022-08-10T10:47:20Z\"},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzU3MzYxNWQ0YzM3NjQ0MDhiZWEwMjczNTIyMWZkMzM1\",\"fees\":[]},\"tracking_code\":\"9400100109361136477644\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[\"The tracker entered the mailstream before insurance was purchased.\"],\"created_at\":\"2022-09-07T20:53:20Z\",\"updated_at\":\"2022-09-07T20:54:31Z\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "25208" + "Content-Length": "25429" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,16 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edbe630681a1f7b7312d0072f557", + "x-ep-request-uuid": "3bde9a276319069fe79a613f002e912f", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"99f1d01a28176570b3b3e094530d9a79\"", - "x-runtime": "0.224341", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"98a5ebf6eee2b6f5add9d471bea3340b\"", + "x-runtime": "0.204098", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/insurance/create.json b/EasyPost.Tests/cassettes/netstandard/insurance/create.json index c8c33408e..5442bed22 100644 --- a/EasyPost.Tests/cassettes/netstandard/insurance/create.json +++ b/EasyPost.Tests/cassettes/netstandard/insurance/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 392, - "RecordedAt": "2022-08-24T13:53:04.974305-06:00", + "Duration": 497, + "RecordedAt": "2022-09-07T15:01:18.527564-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:04Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780142\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5dd4a49d23e611ed8308ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_9e9bccd50d1744eb98e5487f2d1fe001\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_e807ac5860aa42638c04c0ddfc34e2de\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:04Z\",\"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/20220824/11138b2ea9234060b2d75760f90864a9.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_8db28f800c4a4f22a9f543d0a814c9d4\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_1979c48868a440709bd03c51dbf07aa2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_550f988f791348c0a6c41e2e818cb6f1\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_1979c48868a440709bd03c51dbf07aa2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_38a7842a241f46ffa4b1ea64efecf80f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1979c48868a440709bd03c51dbf07aa2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f94a1c91c24c4e89ac2ec50011a5f097\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1979c48868a440709bd03c51dbf07aa2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f94a1c91c24c4e89ac2ec50011a5f097\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1979c48868a440709bd03c51dbf07aa2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_75946a1b1cb246379fc140ed2dcf5664\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780142\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_1979c48868a440709bd03c51dbf07aa2\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzc1OTQ2YTFiMWNiMjQ2Mzc5ZmMxNDBlZDJkY2Y1NjY0\"},\"to_address\":{\"id\":\"adr_5dd2e4df23e611ed9bbaac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5dd4a49d23e611ed8308ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5dd2e4df23e611ed9bbaac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_1979c48868a440709bd03c51dbf07aa2\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478603\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_378a58822ef011edb108ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7bff48e45bcc4008bfb995cda813d51b\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_03dba787e2a1491785f2314040cdd346\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/cc5419baa7714765861ee3695d11ea99.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_389d76b309524b309cd06fbce8f891fd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_af2bbea66e874f2cba8663437f15d8f1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_74c65b98479a4ca59d53ba3b42c87127\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_af2bbea66e874f2cba8663437f15d8f1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_66a639d8d0864aaab9c2a88de67b6878\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_af2bbea66e874f2cba8663437f15d8f1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_77c2bfe1fc0e4644b0e363add5bcc961\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_af2bbea66e874f2cba8663437f15d8f1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_77c2bfe1fc0e4644b0e363add5bcc961\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_af2bbea66e874f2cba8663437f15d8f1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_af30a5db0002462194eb2c2cd90246be\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478603\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_af2bbea66e874f2cba8663437f15d8f1\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2FmMzBhNWRiMDAwMjQ2MjE5NGViMmMyY2Q5MDI0NmJl\"},\"to_address\":{\"id\":\"adr_3788aa242ef011edb107ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_378a58822ef011edb108ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3788aa242ef011edb107ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_af2bbea66e874f2cba8663437f15d8f1\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33de630681a0f7a6b630007ed248", + "x-ep-request-uuid": "3bde9a286319069de79a60c3002e9061", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_1979c48868a440709bd03c51dbf07aa2", - "ETag": "W/\"c6c9b552ea249208913a9c9843624f1c\"", - "x-runtime": "0.918304", + "Location": "/api/v2/shipments/shp_af2bbea66e874f2cba8663437f15d8f1", + "ETag": "W/\"81b49ff798facb075e962293b18a6073\"", + "x-runtime": "0.902287", "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,10 +53,10 @@ } }, { - "Duration": 182, - "RecordedAt": "2022-08-24T13:53:05.283291-06:00", + "Duration": 208, + "RecordedAt": "2022-09-07T15:01:18.817678-06:00", "Request": { - "Body": "{\"insurance\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"tracking_code\":\"9400100109361134780142\",\"carrier\":\"USPS\",\"amount\":100}}", + "Body": "{\"insurance\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"tracking_code\":\"9400100109361136478603\",\"carrier\":\"USPS\",\"amount\":100}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/insurances" }, "Response": { - "Body": "{\"id\":\"ins_700f235f45d64c0e92f6975c2f827a8a\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_5e7b17f223e611ed8343ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:05-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_5e7f17c623e611ed9bfaac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:05-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_75946a1b1cb246379fc140ed2dcf5664\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780142\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:05Z\",\"shipment_id\":\"shp_1979c48868a440709bd03c51dbf07aa2\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzc1OTQ2YTFiMWNiMjQ2Mzc5ZmMxNDBlZDJkY2Y1NjY0\",\"fees\":[]},\"tracking_code\":\"9400100109361134780142\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\"}", + "Body": "{\"id\":\"ins_6eadab2dab5749aab430b0e5c22511b2\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_382af5a02ef011edb13cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_382e51df2ef011eda5d1ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_af30a5db0002462194eb2c2cd90246be\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478603\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:18Z\",\"shipment_id\":\"shp_af2bbea66e874f2cba8663437f15d8f1\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:18Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2FmMzBhNWRiMDAwMjQ2MjE5NGViMmMyY2Q5MDI0NmJl\",\"fees\":[]},\"tracking_code\":\"9400100109361136478603\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,16 +87,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33de630681a1f7a6b630007ed2fe", + "x-ep-request-uuid": "3bde9a286319069ee79a60c3002e90f6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/insurances/ins_700f235f45d64c0e92f6975c2f827a8a", - "ETag": "W/\"968f1e5a9c6dec09c7f2710480fc2b20\"", - "x-runtime": "0.144309", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/insurances/ins_6eadab2dab5749aab430b0e5c22511b2", + "ETag": "W/\"8678f8a9c39cec14f67d1dd1e5115005\"", + "x-runtime": "0.146162", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -104,5 +104,5 @@ "Message": "Created" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/insurance/retrieve.json b/EasyPost.Tests/cassettes/netstandard/insurance/retrieve.json index 39545b36e..33a15b654 100644 --- a/EasyPost.Tests/cassettes/netstandard/insurance/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/insurance/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 412, - "RecordedAt": "2022-08-24T13:53:07.506983-06:00", + "Duration": 120, + "RecordedAt": "2022-09-07T15:01:20.566523-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:06Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780210\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5f3d4dd523e611ed8384ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_889886fcce5e4e63867457403419a25a\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_cdeef85b753f43e1894854cc48c13270\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/5e6cbe4498f04bf69bba58d3db5381aa.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_fb94f32639474ced943d95ac2855ed85\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_7c01ed0c88ba460d99f381edc58539a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fd8cf3c5d78e48baaaa2547ea42d09ba\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_7c01ed0c88ba460d99f381edc58539a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4f48c1ec3efc4b1592037f5b56c66bb0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_7c01ed0c88ba460d99f381edc58539a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a0901554525f48b9b18345d351ed1fdb\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_7c01ed0c88ba460d99f381edc58539a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_4f48c1ec3efc4b1592037f5b56c66bb0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_7c01ed0c88ba460d99f381edc58539a8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_7f1041d8add14b24add9f60d236962d0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780210\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_7c01ed0c88ba460d99f381edc58539a8\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzdmMTA0MWQ4YWRkMTRiMjRhZGQ5ZjYwZDIzNjk2MmQw\"},\"to_address\":{\"id\":\"adr_5f3b744b23e611ed8383ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5f3d4dd523e611ed8384ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5f3b744b23e611ed8383ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_7c01ed0c88ba460d99f381edc58539a8\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:19Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478672\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38c848012ef011eda835ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a333e59470234cdfb853162e6d26951d\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0d4ffe57f0774ea18dc519335b211d49\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:20Z\",\"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/20220907/1a3333fb73da454689cd7c3fd0c1c1e4.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_fcace2cc77a54fee9720a51984bddf8a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2c8d4ea142f2413f893cf3d69aeb841f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_32936b37efd94b769412949d2c202039\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_294edd1ead4940fd9f492b203b0e831c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_2c8d4ea142f2413f893cf3d69aeb841f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_d0d3d4a41efa4ec8a383ed00a7ae3596\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478672\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2QwZDNkNGE0MWVmYTRlYzhhMzgzZWQwMGE3YWUzNTk2\"},\"to_address\":{\"id\":\"adr_38c620f12ef011ed9fb6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38c848012ef011eda835ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38c620f12ef011ed9fb6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,17 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b082630681a2f7b85f34007698ad", + "x-ep-request-uuid": "3bde9a2a6319069fe79a6161002e916b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_7c01ed0c88ba460d99f381edc58539a8", - "ETag": "W/\"52e5f6e3878f8f09fbb49e9681d9e8ee\"", - "x-runtime": "1.052637", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_e9a965843eb446e989905623ab26b44a", + "ETag": "W/\"ac2bd7039bb5ddea92ce097bfa171efb\"", + "x-runtime": "0.861883", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -54,10 +53,10 @@ } }, { - "Duration": 314, - "RecordedAt": "2022-08-24T13:53:07.88499-06:00", + "Duration": 240, + "RecordedAt": "2022-09-07T15:01:20.860695-06:00", "Request": { - "Body": "{\"insurance\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"tracking_code\":\"9400100109361134780210\",\"carrier\":\"USPS\",\"amount\":100}}", + "Body": "{\"insurance\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"tracking_code\":\"9400100109361136478672\",\"carrier\":\"USPS\",\"amount\":100}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -73,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/insurances" }, "Response": { - "Body": "{\"id\":\"ins_f55b2d83dbf745bfb52e68f2bf3f641a\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_6004b65723e611ed83c0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_60088dbb23e611ed9c80ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_7f1041d8add14b24add9f60d236962d0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780210\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:07Z\",\"shipment_id\":\"shp_7c01ed0c88ba460d99f381edc58539a8\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzdmMTA0MWQ4YWRkMTRiMjRhZGQ5ZjYwZDIzNjk2MmQw\",\"fees\":[]},\"tracking_code\":\"9400100109361134780210\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\"}", + "Body": "{\"id\":\"ins_c95aa2a17f5843388ca6e598a570abd3\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_395f28072ef011ed9fe7ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_39644c082ef011edb193ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_d0d3d4a41efa4ec8a383ed00a7ae3596\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478672\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:20Z\",\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2QwZDNkNGE0MWVmYTRlYzhhMzgzZWQwMGE3YWUzNTk2\",\"fees\":[]},\"tracking_code\":\"9400100109361136478672\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -88,16 +87,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b082630681a3f7b85f3400769970", + "x-ep-request-uuid": "3bde9a2a631906a0e79a6161002e91d6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/insurances/ins_f55b2d83dbf745bfb52e68f2bf3f641a", - "ETag": "W/\"e55eb6aa3d39724bacb5e2f942c15927\"", - "x-runtime": "0.130691", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/insurances/ins_c95aa2a17f5843388ca6e598a570abd3", + "ETag": "W/\"62fc515a9b8646e2374e0f5cd44b0fff\"", + "x-runtime": "0.179939", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -107,8 +106,8 @@ } }, { - "Duration": 254, - "RecordedAt": "2022-08-24T13:53:08.176795-06:00", + "Duration": 143, + "RecordedAt": "2022-09-07T15:01:21.032872-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -120,10 +119,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/insurances/ins_f55b2d83dbf745bfb52e68f2bf3f641a" + "Uri": "https://api.easypost.com/v2/insurances/ins_c95aa2a17f5843388ca6e598a570abd3" }, "Response": { - "Body": "{\"id\":\"ins_f55b2d83dbf745bfb52e68f2bf3f641a\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_6004b65723e611ed83c0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_60088dbb23e611ed9c80ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_7f1041d8add14b24add9f60d236962d0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780210\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:07Z\",\"shipment_id\":\"shp_7c01ed0c88ba460d99f381edc58539a8\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzdmMTA0MWQ4YWRkMTRiMjRhZGQ5ZjYwZDIzNjk2MmQw\",\"fees\":[]},\"tracking_code\":\"9400100109361134780210\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\"}", + "Body": "{\"id\":\"ins_c95aa2a17f5843388ca6e598a570abd3\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_395f28072ef011ed9fe7ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"from_address\":{\"id\":\"adr_39644c082ef011edb193ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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_d0d3d4a41efa4ec8a383ed00a7ae3596\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478672\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:20Z\",\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2QwZDNkNGE0MWVmYTRlYzhhMzgzZWQwMGE3YWUzNTk2\",\"fees\":[]},\"tracking_code\":\"9400100109361136478672\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -138,15 +137,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b082630681a4f7b85f34007699ad", + "x-ep-request-uuid": "3bde9a2a631906a1e79a6161002e91f7", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"61cf02b72a0875d999ecc1c8e984dcd6\"", - "x-runtime": "0.074751", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"d5b3bd60d14e8528360041e476420d8d\"", + "x-runtime": "0.085155", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -154,5 +153,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/order/buy.json b/EasyPost.Tests/cassettes/netstandard/order/buy.json index 1ab6e8fed..885a86d26 100644 --- a/EasyPost.Tests/cassettes/netstandard/order/buy.json +++ b/EasyPost.Tests/cassettes/netstandard/order/buy.json @@ -1,7 +1,7 @@ [ { - "Duration": 959, - "RecordedAt": "2022-08-24T13:53:04.639484-06:00", + "Duration": 95, + "RecordedAt": "2022-09-07T15:01:18.211982-06:00", "Request": { "Body": "{\"order\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/orders" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_5dd49e6a23e611ed9bbdac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_5dd35d5b23e611ed8907ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5dd35d5b23e611ed8907ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_5dd49e6a23e611ed9bbdac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:04Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:04Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5dd49e6a23e611ed9bbdac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_7fb674e77630445a8a49c286ca382cd0\",\"parcel\":{\"id\":\"prcl_dce975f4db4f4ec8ae7c75fc8fffa4e9\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_256b6064e49f4b8bba51ee21dbd81a17\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_86900541338a464589c99cfca8b42c01\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d84195ecfcd8402a83e837cc23d80040\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e31a702dc3814477832f9f9722634364\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5dd35d5b23e611ed8907ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5dd49e6a23e611ed9bbdac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5dd35d5b23e611ed8907ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_256b6064e49f4b8bba51ee21dbd81a17\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_86900541338a464589c99cfca8b42c01\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d84195ecfcd8402a83e837cc23d80040\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e31a702dc3814477832f9f9722634364\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_7fb674e77630445a8a49c286ca382cd0\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_379733b32ef011eda7e2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_3795fcef2ef011edb10dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3795fcef2ef011edb10dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_379733b32ef011eda7e2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T21:01:17Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:17Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_379733b32ef011eda7e2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_e96d5cbcba9b4897ba627de2301e55eb\",\"parcel\":{\"id\":\"prcl_54600c9f22634301aeeb6edaece1d859\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8706bb4b753e4d53905ca531e8bbf3f6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fa3a0964d5194c738ec6e0f3e783d590\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_341f8aa94d494ea9a23a9974fc87536e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2c47a1b3d9594c7d9da06f1fcaa81c6f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3795fcef2ef011edb10dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_379733b32ef011eda7e2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3795fcef2ef011edb10dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_8706bb4b753e4d53905ca531e8bbf3f6\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fa3a0964d5194c738ec6e0f3e783d590\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_341f8aa94d494ea9a23a9974fc87536e\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2c47a1b3d9594c7d9da06f1fcaa81c6f\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_e96d5cbcba9b4897ba627de2301e55eb\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d8630681a0f7bb9894007ed24c", + "x-ep-request-uuid": "3bde9a2a6319069de79a60df002e9077", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/orders/order_7fb674e77630445a8a49c286ca382cd0", - "ETag": "W/\"444d504b960bac8ee72ebe3a3629a330\"", - "x-runtime": "0.576025", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/orders/order_e96d5cbcba9b4897ba627de2301e55eb", + "ETag": "W/\"b8be110173dcbf26820fcd5b8a56fb25\"", + "x-runtime": "0.485235", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 948, - "RecordedAt": "2022-08-24T13:53:05.747066-06:00", + "Duration": 940, + "RecordedAt": "2022-09-07T15:01:19.246634-06:00", "Request": { "Body": "{\"carrier\":\"USPS\",\"service\":\"First\"}", "BodyContentType": "Json", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/orders/order_7fb674e77630445a8a49c286ca382cd0/buy" + "Uri": "https://api.easypost.com/v2/orders/order_e96d5cbcba9b4897ba627de2301e55eb/buy" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_5dd49e6a23e611ed9bbdac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_5dd35d5b23e611ed8907ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"buyer_address\":{\"id\":\"adr_5dd35d5b23e611ed8907ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"return_address\":{\"id\":\"adr_5dd49e6a23e611ed9bbdac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:04Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780173\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5dd49e6a23e611ed9bbdac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_7fb674e77630445a8a49c286ca382cd0\",\"parcel\":{\"id\":\"prcl_dce975f4db4f4ec8ae7c75fc8fffa4e9\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_eedfaabe7a6c4c7da1f01c2fc0cfd18f\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:05Z\",\"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/20220824/9255013295cd49a8a11fc21044877b54.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_256b6064e49f4b8bba51ee21dbd81a17\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_86900541338a464589c99cfca8b42c01\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d84195ecfcd8402a83e837cc23d80040\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e31a702dc3814477832f9f9722634364\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_e31a702dc3814477832f9f9722634364\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ffbde4594d4b400690db44db3f533d17\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780173\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2ZmYmRlNDU5NGQ0YjQwMDY5MGRiNDRkYjNmNTMzZDE3\"},\"to_address\":{\"id\":\"adr_5dd35d5b23e611ed8907ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5dd49e6a23e611ed9bbdac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5dd35d5b23e611ed8907ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_256b6064e49f4b8bba51ee21dbd81a17\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_86900541338a464589c99cfca8b42c01\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d84195ecfcd8402a83e837cc23d80040\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e31a702dc3814477832f9f9722634364\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf027c28e7bd4df9b8bcaf2fee908378\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_7fb674e77630445a8a49c286ca382cd0\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_379733b32ef011eda7e2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_3795fcef2ef011edb10dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"buyer_address\":{\"id\":\"adr_3795fcef2ef011edb10dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"return_address\":{\"id\":\"adr_379733b32ef011eda7e2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T21:01:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478641\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_379733b32ef011eda7e2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_e96d5cbcba9b4897ba627de2301e55eb\",\"parcel\":{\"id\":\"prcl_54600c9f22634301aeeb6edaece1d859\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_d60aa9559f9048488709d592e4d995f0\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/89ce7b9a607c44e78c2ae52fe09b3f8c.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_8706bb4b753e4d53905ca531e8bbf3f6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fa3a0964d5194c738ec6e0f3e783d590\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_341f8aa94d494ea9a23a9974fc87536e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2c47a1b3d9594c7d9da06f1fcaa81c6f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_341f8aa94d494ea9a23a9974fc87536e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_554ea2612a6c4e4aa3df8d5c025f30ed\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478641\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzU1NGVhMjYxMmE2YzRlNGFhM2RmOGQ1YzAyNWYzMGVk\"},\"to_address\":{\"id\":\"adr_3795fcef2ef011edb10dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_379733b32ef011eda7e2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3795fcef2ef011edb10dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_8706bb4b753e4d53905ca531e8bbf3f6\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fa3a0964d5194c738ec6e0f3e783d590\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_341f8aa94d494ea9a23a9974fc87536e\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2c47a1b3d9594c7d9da06f1fcaa81c6f\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f9139ea3003747eca5d94bc061aee466\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_e96d5cbcba9b4897ba627de2301e55eb\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d8630681a0f7bb9894007ed2dd", + "x-ep-request-uuid": "3bde9a2a6319069ee79a60df002e90cc", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"67d8b5506fab8b4169ae754a2fe097be\"", - "x-runtime": "0.908751", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"67a2e45bf308c1ceadcb7dc598b99f78\"", + "x-runtime": "0.872649", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -103,5 +104,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/order/create.json b/EasyPost.Tests/cassettes/netstandard/order/create.json index 1ac14fae6..616399860 100644 --- a/EasyPost.Tests/cassettes/netstandard/order/create.json +++ b/EasyPost.Tests/cassettes/netstandard/order/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 23, - "RecordedAt": "2022-08-24T13:53:10.852467-06:00", + "Duration": 879, + "RecordedAt": "2022-09-07T15:01:23.962299-06:00", "Request": { "Body": "{\"order\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/orders" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_6161db1523e611ed8a46ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_616062ae23e611ed9ce9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_616062ae23e611ed9ce9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_6161db1523e611ed8a46ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:10Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:10Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6161db1523e611ed8a46ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_88b97b6c1311495eb53897e8a1ab5c76\",\"parcel\":{\"id\":\"prcl_1169568c12ac42dda4d66dfd63ff87cd\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8466a042ac2f45a880506427e7cb9cef\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e73f483db06c4a8580a0dc8a85653d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d498c2ba83634784adff1ecec0365932\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e73f483db06c4a8580a0dc8a85653d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_98f32501548b4bb2b4ba2c3a26f2a2d0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e73f483db06c4a8580a0dc8a85653d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c3f80b76f2db4ba498657810526b5f61\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e73f483db06c4a8580a0dc8a85653d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_616062ae23e611ed9ce9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6161db1523e611ed8a46ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_616062ae23e611ed9ce9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_e73f483db06c4a8580a0dc8a85653d7e\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_8466a042ac2f45a880506427e7cb9cef\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e73f483db06c4a8580a0dc8a85653d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d498c2ba83634784adff1ecec0365932\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e73f483db06c4a8580a0dc8a85653d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_98f32501548b4bb2b4ba2c3a26f2a2d0\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e73f483db06c4a8580a0dc8a85653d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c3f80b76f2db4ba498657810526b5f61\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e73f483db06c4a8580a0dc8a85653d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_88b97b6c1311495eb53897e8a1ab5c76\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_3af7a53f2ef011eda8d0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_3af677e42ef011eda8cfac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3af677e42ef011eda8cfac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_3af7a53f2ef011eda8d0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T21:01:23Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:23Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3af7a53f2ef011eda8d0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_8c12da84b8e347c2b36e33767dfe33b9\",\"parcel\":{\"id\":\"prcl_e862702ce4b54a1598e1553802ce77f0\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_ac47e1b67b77471e9fa2ffcbf04a0045\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_832a64da6c9a4809bb361705aad98147\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d3204b855dc34b95b847abaedcb48e88\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_832a64da6c9a4809bb361705aad98147\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ab78a29698184a54be3e51a0e6be131a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_832a64da6c9a4809bb361705aad98147\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b9839e19911d41d4ae42fdd1daf16793\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_832a64da6c9a4809bb361705aad98147\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3af677e42ef011eda8cfac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3af7a53f2ef011eda8d0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3af677e42ef011eda8cfac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_832a64da6c9a4809bb361705aad98147\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_ac47e1b67b77471e9fa2ffcbf04a0045\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_832a64da6c9a4809bb361705aad98147\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d3204b855dc34b95b847abaedcb48e88\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_832a64da6c9a4809bb361705aad98147\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ab78a29698184a54be3e51a0e6be131a\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_832a64da6c9a4809bb361705aad98147\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b9839e19911d41d4ae42fdd1daf16793\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_832a64da6c9a4809bb361705aad98147\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_8c12da84b8e347c2b36e33767dfe33b9\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681a6f7a984fe00794151", + "x-ep-request-uuid": "3bde9a2b631906a3e79a6499002e9329", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/orders/order_88b97b6c1311495eb53897e8a1ab5c76", - "ETag": "W/\"db19f5417ba00e955cf237d3453167ac\"", - "x-runtime": "0.840204", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/orders/order_8c12da84b8e347c2b36e33767dfe33b9", + "ETag": "W/\"2ac31eb569db76ccaf8c01a59e38b638\"", + "x-runtime": "0.580476", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/order/get_rates.json b/EasyPost.Tests/cassettes/netstandard/order/get_rates.json index 2d7808ad2..15b0d33ef 100644 --- a/EasyPost.Tests/cassettes/netstandard/order/get_rates.json +++ b/EasyPost.Tests/cassettes/netstandard/order/get_rates.json @@ -1,7 +1,7 @@ [ { - "Duration": 775, - "RecordedAt": "2022-08-24T13:53:07.94363-06:00", + "Duration": 844, + "RecordedAt": "2022-09-07T15:01:21.238391-06:00", "Request": { "Body": "{\"order\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/orders" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_5fcc7f3f23e611ed83b0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_5fcb167623e611ed89beac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5fcb167623e611ed89beac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_5fcc7f3f23e611ed83b0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:07Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:07Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5fcc7f3f23e611ed83b0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_3a7eb6953c8748c298dfb3ff1c44d95a\",\"parcel\":{\"id\":\"prcl_316b5f45b92b4f5a8dd47502c4ac305f\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_df48bea4ec82448c97512e800c9d2f34\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f59ba21957b34818bf7a0a5c63453114\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ae32e67bc17f489c9edd8d6349002ec0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f9b812649e14436e9d7838618566410b\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5fcb167623e611ed89beac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5fcc7f3f23e611ed83b0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5fcb167623e611ed89beac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_df48bea4ec82448c97512e800c9d2f34\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f59ba21957b34818bf7a0a5c63453114\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ae32e67bc17f489c9edd8d6349002ec0\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f9b812649e14436e9d7838618566410b\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_3a7eb6953c8748c298dfb3ff1c44d95a\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_72341c37f2d9429d928321dc87ee8c98\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_395bb9372ef011ed9fe6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_395a5eeb2ef011edb191ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_395a5eeb2ef011edb191ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_395bb9372ef011ed9fe6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T21:01:20Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_72341c37f2d9429d928321dc87ee8c98\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_395bb9372ef011ed9fe6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_a034437da005451ba8f568d791e0a67e\",\"parcel\":{\"id\":\"prcl_5326a87360cc47f4b5b14f8aca662173\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_4fb22e0ae58f42a5bbffefd6e8ef5cb7\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_35740b41b34d4a7c965c0d7da2488917\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c1d3d2d2bf9448faa687c1e837b87d5f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_626d4fa6457b4da2a46b2d4b78498e1f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_395a5eeb2ef011edb191ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_395bb9372ef011ed9fe6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_395a5eeb2ef011edb191ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_4fb22e0ae58f42a5bbffefd6e8ef5cb7\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_35740b41b34d4a7c965c0d7da2488917\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c1d3d2d2bf9448faa687c1e837b87d5f\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_626d4fa6457b4da2a46b2d4b78498e1f\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_a034437da005451ba8f568d791e0a67e\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "9888" + "Content-Length": "10166" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681a3f7f166fd00794034", + "x-ep-request-uuid": "3bde9a2b631906a0e79a6477002e91d5", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/orders/order_3a7eb6953c8748c298dfb3ff1c44d95a", - "ETag": "W/\"d3866be4c8820b883384f6ba3c9613a7\"", - "x-runtime": "0.594248", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/orders/order_a034437da005451ba8f568d791e0a67e", + "ETag": "W/\"f184256d8750e8531c500f1199242fcc\"", + "x-runtime": "0.563652", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 989, - "RecordedAt": "2022-08-24T13:53:08.996562-06:00", + "Duration": 712, + "RecordedAt": "2022-09-07T15:01:22.009864-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,15 +66,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/orders/order_3a7eb6953c8748c298dfb3ff1c44d95a/rates" + "Uri": "https://api.easypost.com/v2/orders/order_a034437da005451ba8f568d791e0a67e/rates" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_5fcc7f3f23e611ed83b0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_5fcb167623e611ed89beac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5fcb167623e611ed89beac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_5fcc7f3f23e611ed83b0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:07Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:07Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5fcc7f3f23e611ed83b0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_3a7eb6953c8748c298dfb3ff1c44d95a\",\"parcel\":{\"id\":\"prcl_316b5f45b92b4f5a8dd47502c4ac305f\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_7056c7d6c2584328a1852962bcef8a53\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ca482f0f55624fdd9f366fa55bb391f7\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d46481fda2b7428aa76c515ea0373832\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a3427623f1a14edbae6eee1b45886ced\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5fcb167623e611ed89beac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5fcc7f3f23e611ed83b0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5fcb167623e611ed89beac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:07-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_7056c7d6c2584328a1852962bcef8a53\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ca482f0f55624fdd9f366fa55bb391f7\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d46481fda2b7428aa76c515ea0373832\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a3427623f1a14edbae6eee1b45886ced\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_2daea6ee72c745c9b679062827331e8c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_3a7eb6953c8748c298dfb3ff1c44d95a\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_72341c37f2d9429d928321dc87ee8c98\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_395bb9372ef011ed9fe6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_395a5eeb2ef011edb191ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_395a5eeb2ef011edb191ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_395bb9372ef011ed9fe6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T21:01:20Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_395bb9372ef011ed9fe6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_a034437da005451ba8f568d791e0a67e\",\"parcel\":{\"id\":\"prcl_5326a87360cc47f4b5b14f8aca662173\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_919a46577f3b49a08e0f1594374ad423\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f3fabad936c047a9a1a65849457df5f2\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_df0beb4e2e0647eda09cdb49140215f8\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e154801fe99d4d14a0ba73730f257969\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_395a5eeb2ef011edb191ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_395bb9372ef011ed9fe6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_395a5eeb2ef011edb191ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_919a46577f3b49a08e0f1594374ad423\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f3fabad936c047a9a1a65849457df5f2\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_df0beb4e2e0647eda09cdb49140215f8\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e154801fe99d4d14a0ba73730f257969\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e81d568813cf4d70acf70386521a4917\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_a034437da005451ba8f568d791e0a67e\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "9472" + "Content-Length": "9611" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -84,13 +84,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681a4f7f166fd00794078", + "x-ep-request-uuid": "3bde9a2b631906a1e79a6477002e9224", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"41c130bb653a3cbec03b0b258d163dae\"", - "x-runtime": "0.943830", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"30f34dc999dc72aca71939fe1b96cf4c\"", + "x-runtime": "0.627703", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/order/lowest_rate.json b/EasyPost.Tests/cassettes/netstandard/order/lowest_rate.json index e140ec314..4c1e594c0 100644 --- a/EasyPost.Tests/cassettes/netstandard/order/lowest_rate.json +++ b/EasyPost.Tests/cassettes/netstandard/order/lowest_rate.json @@ -1,7 +1,7 @@ [ { - "Duration": 695, - "RecordedAt": "2022-08-24T13:53:09.763051-06:00", + "Duration": 939, + "RecordedAt": "2022-09-07T15:01:23.013362-06:00", "Request": { "Body": "{\"order\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/orders" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_60eab7ba23e611ed8a28ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:09-06:00\",\"updated_at\":\"2022-08-24T13:53:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_60e9759c23e611ed8a27ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:09-06:00\",\"updated_at\":\"2022-08-24T13:53:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_60e9759c23e611ed8a27ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:09-06:00\",\"updated_at\":\"2022-08-24T13:53:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_60eab7ba23e611ed8a28ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:09-06:00\",\"updated_at\":\"2022-08-24T13:53:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:09Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:09Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_60eab7ba23e611ed8a28ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:09-06:00\",\"updated_at\":\"2022-08-24T13:53:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_b21a6a08d6604424801a95d8a57ca4c8\",\"parcel\":{\"id\":\"prcl_f8165894c3224fcb84d957e36a84a6d6\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_591580f5e837447ba068cd5bbf907cd3\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a6d05b72cefe499ea029db2f816e086c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c979fc69494c4061bc9fa8c2ba4a802b\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a6d05b72cefe499ea029db2f816e086c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1cad24266bff42959c7be635abe85cc0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a6d05b72cefe499ea029db2f816e086c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f9a048edb8914cf39dbbd376016e92c5\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a6d05b72cefe499ea029db2f816e086c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_60e9759c23e611ed8a27ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:09-06:00\",\"updated_at\":\"2022-08-24T13:53:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_60eab7ba23e611ed8a28ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:09-06:00\",\"updated_at\":\"2022-08-24T13:53:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_60e9759c23e611ed8a27ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:09-06:00\",\"updated_at\":\"2022-08-24T13:53:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_a6d05b72cefe499ea029db2f816e086c\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_591580f5e837447ba068cd5bbf907cd3\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_a6d05b72cefe499ea029db2f816e086c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c979fc69494c4061bc9fa8c2ba4a802b\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_a6d05b72cefe499ea029db2f816e086c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1cad24266bff42959c7be635abe85cc0\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a6d05b72cefe499ea029db2f816e086c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f9a048edb8914cf39dbbd376016e92c5\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a6d05b72cefe499ea029db2f816e086c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_b21a6a08d6604424801a95d8a57ca4c8\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_3a59b7e12ef011eda8a4ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_3a57e21b2ef011eda02cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3a57e21b2ef011eda02cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_3a59b7e12ef011eda8a4ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T21:01:22Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:22Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3a59b7e12ef011eda8a4ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_144036a17ac04e56800116a0ba388c27\",\"parcel\":{\"id\":\"prcl_a0fd043a79b140179e3650253651e1b1\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_6d50344a9c3a4eda942aac440e941e2c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_da264558e39d49fca66b60a100bd355f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ec727a5136bc46a8bf56120c8b690971\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da264558e39d49fca66b60a100bd355f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7919f60e384d496189a55b7252f015e1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_da264558e39d49fca66b60a100bd355f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e26e932e01694c3ea4eb32ad9c277217\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da264558e39d49fca66b60a100bd355f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3a57e21b2ef011eda02cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3a59b7e12ef011eda8a4ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3a57e21b2ef011eda02cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_da264558e39d49fca66b60a100bd355f\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_6d50344a9c3a4eda942aac440e941e2c\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_da264558e39d49fca66b60a100bd355f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ec727a5136bc46a8bf56120c8b690971\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da264558e39d49fca66b60a100bd355f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7919f60e384d496189a55b7252f015e1\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_da264558e39d49fca66b60a100bd355f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e26e932e01694c3ea4eb32ad9c277217\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_da264558e39d49fca66b60a100bd355f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_144036a17ac04e56800116a0ba388c27\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b8630681a5f7ffa00f007940fb", + "x-ep-request-uuid": "3bde9a25631906a2e79a647e002e92b5", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/orders/order_b21a6a08d6604424801a95d8a57ca4c8", - "ETag": "W/\"4174134abbfebff74c2fde393dca7dcc\"", - "x-runtime": "0.525543", + "Location": "/api/v2/orders/order_144036a17ac04e56800116a0ba388c27", + "ETag": "W/\"a20389aa1efe253fe35f01b0c59aad1a\"", + "x-runtime": "0.678588", "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/order/retrieve.json b/EasyPost.Tests/cassettes/netstandard/order/retrieve.json index 990043618..88a816db6 100644 --- a/EasyPost.Tests/cassettes/netstandard/order/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/order/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 925, - "RecordedAt": "2022-08-24T13:53:06.75863-06:00", + "Duration": 793, + "RecordedAt": "2022-09-07T15:01:20.115469-06:00", "Request": { "Body": "{\"order\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"shipments\":[{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}}]}}", "BodyContentType": "Json", @@ -19,12 +19,12 @@ "Uri": "https://api.easypost.com/v2/orders" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_5f138f4623e611ed8378ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_5f121edc23e611ed897dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5f121edc23e611ed897dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_5f138f4623e611ed8378ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:06Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:06Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5f138f4623e611ed8378ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_6deca591a72a4b82aa4c91b055683e8a\",\"parcel\":{\"id\":\"prcl_d8577614f857456a96facd5dc041ca0b\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_a5f034ce85ab453985874225658f6935\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eecf753fe73c44cc8b7a3c2460b15cc8\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d4a1bedcae564361846fef236684c2e9\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1238ca78413a4337a5e0977d46f6ee0c\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5f121edc23e611ed897dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5f138f4623e611ed8378ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5f121edc23e611ed897dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_a5f034ce85ab453985874225658f6935\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eecf753fe73c44cc8b7a3c2460b15cc8\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d4a1bedcae564361846fef236684c2e9\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1238ca78413a4337a5e0977d46f6ee0c\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_6deca591a72a4b82aa4c91b055683e8a\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_38f7cbf0581e4b1991bae3695802722a\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_38b546ae2ef011eda82bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_38b40b8f2ef011ed9faeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38b40b8f2ef011ed9faeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_38b546ae2ef011eda82bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T21:01:19Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_38f7cbf0581e4b1991bae3695802722a\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:19Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38b546ae2ef011eda82bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_98568d22fdc544cfb78c062147cacba7\",\"parcel\":{\"id\":\"prcl_f3b7ed66971643279eb69756ec0b05c9\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_5f17fb00ec30476ba3df872949a06fb9\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_aed3aec3ecc644f9bd689c953c44b996\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_73cce6cc70ac487f8c0c3620b1e1ddd1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_98cd125a305c445fb431c6740864b7a1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_38b40b8f2ef011ed9faeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38b546ae2ef011eda82bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38b40b8f2ef011ed9faeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_5f17fb00ec30476ba3df872949a06fb9\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_aed3aec3ecc644f9bd689c953c44b996\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_73cce6cc70ac487f8c0c3620b1e1ddd1\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_98cd125a305c445fb431c6740864b7a1\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_98568d22fdc544cfb78c062147cacba7\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "9888" + "Content-Length": "10166" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b087630681a2f7cdc1fa0076988e", + "x-ep-request-uuid": "3bde9a2c6319069fe79a615f002e9162", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/orders/order_6deca591a72a4b82aa4c91b055683e8a", - "ETag": "W/\"f3f78abc90b13165ead7a0179ad20e8e\"", - "x-runtime": "0.573522", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/orders/order_98568d22fdc544cfb78c062147cacba7", + "ETag": "W/\"ff38de913b4da208f1420a3844da5e35\"", + "x-runtime": "0.529238", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 292, - "RecordedAt": "2022-08-24T13:53:07.106633-06:00", + "Duration": 161, + "RecordedAt": "2022-09-07T15:01:20.333102-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,15 +66,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/orders/order_6deca591a72a4b82aa4c91b055683e8a" + "Uri": "https://api.easypost.com/v2/orders/order_98568d22fdc544cfb78c062147cacba7" }, "Response": { - "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_5f138f4623e611ed8378ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_5f121edc23e611ed897dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5f121edc23e611ed897dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_5f138f4623e611ed8378ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-08-24T19:53:06Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:06Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5f138f4623e611ed8378ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_6deca591a72a4b82aa4c91b055683e8a\",\"parcel\":{\"id\":\"prcl_d8577614f857456a96facd5dc041ca0b\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_a5f034ce85ab453985874225658f6935\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eecf753fe73c44cc8b7a3c2460b15cc8\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d4a1bedcae564361846fef236684c2e9\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1238ca78413a4337a5e0977d46f6ee0c\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5f121edc23e611ed897dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5f138f4623e611ed8378ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5f121edc23e611ed897dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_a5f034ce85ab453985874225658f6935\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eecf753fe73c44cc8b7a3c2460b15cc8\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d4a1bedcae564361846fef236684c2e9\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1238ca78413a4337a5e0977d46f6ee0c\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_7791f9362fc4451383befca1ead44d4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_6deca591a72a4b82aa4c91b055683e8a\",\"object\":\"Order\"}", + "Body": "{\"mode\":\"test\",\"reference\":null,\"is_return\":false,\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_38f7cbf0581e4b1991bae3695802722a\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"customs_info\":null,\"from_address\":{\"id\":\"adr_38b546ae2ef011eda82bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"to_address\":{\"id\":\"adr_38b40b8f2ef011ed9faeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38b40b8f2ef011ed9faeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"return_address\":{\"id\":\"adr_38b546ae2ef011eda82bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"shipments\":[{\"created_at\":\"2022-09-07T21:01: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\":\"2022-09-07T21:01:19Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38b546ae2ef011eda82bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":\"order_98568d22fdc544cfb78c062147cacba7\",\"parcel\":{\"id\":\"prcl_f3b7ed66971643279eb69756ec0b05c9\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_5f17fb00ec30476ba3df872949a06fb9\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_aed3aec3ecc644f9bd689c953c44b996\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_73cce6cc70ac487f8c0c3620b1e1ddd1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_98cd125a305c445fb431c6740864b7a1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_38b40b8f2ef011ed9faeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38b546ae2ef011eda82bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38b40b8f2ef011ed9faeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"object\":\"Shipment\"}],\"rates\":[{\"id\":\"rate_5f17fb00ec30476ba3df872949a06fb9\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_aed3aec3ecc644f9bd689c953c44b996\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_73cce6cc70ac487f8c0c3620b1e1ddd1\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_98cd125a305c445fb431c6740864b7a1\",\"object\":\"Rate\",\"created_at\":null,\"updated_at\":null,\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f64202fc389b4b1598bf9cd5fbf36cf1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"id\":\"order_98568d22fdc544cfb78c062147cacba7\",\"object\":\"Order\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "9472" + "Content-Length": "9611" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -84,16 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b087630681a2f7cdc1fa007698fb", + "x-ep-request-uuid": "3bde9a2c631906a0e79a615f002e91a6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"45c174cf13e51c9220b87e7de905e12a\"", - "x-runtime": "0.111885", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"4d527f73cb65bad69572fe87d61f179a\"", + "x-runtime": "0.098475", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/parcel/create.json b/EasyPost.Tests/cassettes/netstandard/parcel/create.json index a85386a4f..74eac0bf1 100644 --- a/EasyPost.Tests/cassettes/netstandard/parcel/create.json +++ b/EasyPost.Tests/cassettes/netstandard/parcel/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 511, - "RecordedAt": "2022-08-24T13:53:04.161876-06:00", + "Duration": 615, + "RecordedAt": "2022-09-07T15:01:17.761968-06:00", "Request": { "Body": "{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/parcels" }, "Response": { - "Body": "{\"id\":\"prcl_f21c603e4d77409a9759a210a2ff9801\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", + "Body": "{\"id\":\"prcl_fe9ad80ebc1e4f838726d9caf19eb219\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33de630681a0f7b849f1007ed250", + "x-ep-request-uuid": "3bde9a276319069de79a60de002e9072", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/parcels.prcl_f21c603e4d77409a9759a210a2ff9801", - "ETag": "W/\"dcff6073f5e1f87c0e6a331c35ade51d\"", - "x-runtime": "0.026158", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/parcels.prcl_fe9ad80ebc1e4f838726d9caf19eb219", + "ETag": "W/\"e71f74c5bbc52ebe78f5c05dc60c5986\"", + "x-runtime": "0.028379", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/parcel/retrieve.json b/EasyPost.Tests/cassettes/netstandard/parcel/retrieve.json index 36d44034a..2256660a1 100644 --- a/EasyPost.Tests/cassettes/netstandard/parcel/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/parcel/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 212, - "RecordedAt": "2022-08-24T13:53:04.632652-06:00", + "Duration": 343, + "RecordedAt": "2022-09-07T15:01:18.314404-06:00", "Request": { "Body": "{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/parcels" }, "Response": { - "Body": "{\"id\":\"prcl_3382111114e84fdc8984c006106c040f\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", + "Body": "{\"id\":\"prcl_87117979c609486caabccd3677852aa7\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dc630681a0e68bb49e007ed2b7", + "x-ep-request-uuid": "3bde9a296319069ee79a60fc002e90c2", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/parcels.prcl_3382111114e84fdc8984c006106c040f", - "ETag": "W/\"c38f967dea2f7e6e77143d69bfc0f446\"", - "x-runtime": "0.022678", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/parcels.prcl_87117979c609486caabccd3677852aa7", + "ETag": "W/\"ef44e44b2418092da77a65763c5f5dbe\"", + "x-runtime": "0.028533", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 55, - "RecordedAt": "2022-08-24T13:53:04.711118-06:00", + "Duration": 85, + "RecordedAt": "2022-09-07T15:01:18.433408-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/parcels/prcl_3382111114e84fdc8984c006106c040f" + "Uri": "https://api.easypost.com/v2/parcels/prcl_87117979c609486caabccd3677852aa7" }, "Response": { - "Body": "{\"id\":\"prcl_3382111114e84fdc8984c006106c040f\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", + "Body": "{\"id\":\"prcl_87117979c609486caabccd3677852aa7\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dc630681a0e68bb49e007ed2c5", + "x-ep-request-uuid": "3bde9a296319069ee79a60fc002e90d5", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"c38f967dea2f7e6e77143d69bfc0f446\"", - "x-runtime": "0.018181", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"ef44e44b2418092da77a65763c5f5dbe\"", + "x-runtime": "0.016570", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/pickup/buy.json b/EasyPost.Tests/cassettes/netstandard/pickup/buy.json index b0c7a660d..cdaf5d084 100644 --- a/EasyPost.Tests/cassettes/netstandard/pickup/buy.json +++ b/EasyPost.Tests/cassettes/netstandard/pickup/buy.json @@ -1,7 +1,7 @@ [ { - "Duration": 485, - "RecordedAt": "2022-08-24T13:53:05.070487-06:00", + "Duration": 582, + "RecordedAt": "2022-09-07T15:01:18.612911-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:04Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780135\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5dd4d53d23e611ed8909ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_9b0d7f0d467344b597421904f6dc6327\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_813e1298ee0445c7815eb64845b898bc\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:04Z\",\"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/20220824/0a33911fe94e467b99059054f1ab5c3e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_08ac7e269cdf475dbcbd2634a4375f52\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f29bd96c1dd5419e9ef067c710803670\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f38b348578674125b800ddc8ae22bbb0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_143920a037574ef1ab4536f0f36261da\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_143920a037574ef1ab4536f0f36261da\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_1932a66ee88546e88f5094e23ac977e6\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780135\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzE5MzJhNjZlZTg4NTQ2ZTg4ZjUwOTRlMjNhYzk3N2U2\"},\"to_address\":{\"id\":\"adr_5dd3293123e611ed83d4ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5dd4d53d23e611ed8909ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5dd3293123e611ed83d4ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478610\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_378b65952ef011eda7ddac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5a25cce8884e4d7395c6d1f055751017\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_409325e48b594215bfeed4831eeef42f\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/3a18c4aa517e4f1b9596898a3d565370.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_35c7056ed33f457898673688698fd7c1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3a0862c2adff450c9d5c0a8592f4b6bd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4ead5bc12a2e4f61b85c8864a88f0854\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c5af986571d34843bb0d1da8a2398488\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3a0862c2adff450c9d5c0a8592f4b6bd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_70171a77de3c4ff8b58880d54f4316d4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478610\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzcwMTcxYTc3ZGUzYzRmZjhiNTg4ODBkNTRmNDMxNmQ0\"},\"to_address\":{\"id\":\"adr_37898d552ef011eda7dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_378b65952ef011eda7ddac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_37898d552ef011eda7dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d9630681a0e68cc948007ed24b", + "x-ep-request-uuid": "3bde9a276319069de79a60bf002e9062", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_af54fc76565f419ab163fe9c688fe9d0", - "ETag": "W/\"5fb75ab800d1b1357e7dd2ed7ebedbff\"", - "x-runtime": "1.011222", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_13357f2ceaa5490d95b1d0d98d672327", + "ETag": "W/\"4bb1eaf4fa1150b99200b9d1fa4bf499\"", + "x-runtime": "0.971011", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 446, - "RecordedAt": "2022-08-24T13:53:06.621285-06:00", + "Duration": 944, + "RecordedAt": "2022-09-07T15:01:19.671218-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-08-25\",\"max_datetime\":\"2022-08-25\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"adr_5dd3293123e611ed83d4ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"adr_5dd4d53d23e611ed8909ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"prcl_9b0d7f0d467344b597421904f6dc6327\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:04Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/0a33911fe94e467b99059054f1ab5c3e.png\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"pl_813e1298ee0445c7815eb64845b898bc\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"rate_08ac7e269cdf475dbcbd2634a4375f52\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"rate_f29bd96c1dd5419e9ef067c710803670\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"rate_f38b348578674125b800ddc8ae22bbb0\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"rate_143920a037574ef1ab4536f0f36261da\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"adr_5dd4d53d23e611ed8909ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"rate_143920a037574ef1ab4536f0f36261da\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"adr_5dd3293123e611ed83d4ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzE5MzJhNjZlZTg4NTQ2ZTg4ZjUwOTRlMjNhYzk3N2U2\",\"shipment_id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780135\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:05Z\",\"id\":\"trk_1932a66ee88546e88f5094e23ac977e6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780135\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"shp_af54fc76565f419ab163fe9c688fe9d0\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_37898d552ef011eda7dbac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_378b65952ef011eda7ddac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"prcl_5a25cce8884e4d7395c6d1f055751017\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:18Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/3a18c4aa517e4f1b9596898a3d565370.png\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"pl_409325e48b594215bfeed4831eeef42f\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_35c7056ed33f457898673688698fd7c1\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_3a0862c2adff450c9d5c0a8592f4b6bd\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_4ead5bc12a2e4f61b85c8864a88f0854\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_c5af986571d34843bb0d1da8a2398488\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_378b65952ef011eda7ddac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"rate_3a0862c2adff450c9d5c0a8592f4b6bd\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_37898d552ef011eda7dbac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzcwMTcxYTc3ZGUzYzRmZjhiNTg4ODBkNTRmNDMxNmQ0\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478610\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"trk_70171a77de3c4ff8b58880d54f4316d4\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478610\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6316" + "Content-Length": "6292" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_6083f82098054e72a8b40238847198a7\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_5e85c4f623e611ed8948ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:05-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_6083f82098054e72a8b40238847198a7\",\"id\":\"pickuprate_73308da05b94416b99fdca40cbe80183\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_badb33914e1d478497b29810f6e424a9\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_383fca282ef011ed9f8aac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_badb33914e1d478497b29810f6e424a9\",\"id\":\"pickuprate_d33383fdd4f0412f84722b60952d7100\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d9630681a1e68cc948007ed307", + "x-ep-request-uuid": "3bde9a276319069ee79a60bf002e9105", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"3ddaf8688849a9210e256a0b2140e7ff\"", - "x-runtime": "1.398283", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"7a49b85bc89e9837671e03b8004a4339\"", + "x-runtime": "0.874174", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -105,8 +105,8 @@ } }, { - "Duration": 244, - "RecordedAt": "2022-08-24T13:53:07.913867-06:00", + "Duration": 991, + "RecordedAt": "2022-09-07T15:01:20.732067-06:00", "Request": { "Body": "{\"carrier\":\"USPS\",\"service\":\"NextDay\"}", "BodyContentType": "Json", @@ -121,15 +121,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_6083f82098054e72a8b40238847198a7/buy" + "Uri": "https://api.easypost.com/v2/pickups/pickup_badb33914e1d478497b29810f6e424a9/buy" }, "Response": { - "Body": "{\"id\":\"pickup_6083f82098054e72a8b40238847198a7\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"mode\":\"test\",\"status\":\"scheduled\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC62071718\",\"address\":{\"id\":\"adr_5e85c4f623e611ed8948ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:05-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_6083f82098054e72a8b40238847198a7\",\"id\":\"pickuprate_73308da05b94416b99fdca40cbe80183\",\"object\":\"PickupRate\"}]}", + "Body": "{\"error\":{\"code\":\"PICKUP.BUY.FAILED\",\"message\":\"Service availability unknown.ServerCode=500 serverMessage = Internal server error\",\"errors\":[]}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1160" + "Content-Length": "146" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -139,21 +139,20 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d9630681a2e68cc948007ed3aa", + "x-ep-request-uuid": "3bde9a276319069fe79a60bf002e917a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"b0df664ccbc36554a97e8f149da09522\"", - "x-runtime": "1.203940", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-runtime": "0.915840", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { - "Code": 200, - "Message": "OK" + "Code": 400, + "Message": "Bad Request" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/pickup/cancel.json b/EasyPost.Tests/cassettes/netstandard/pickup/cancel.json index 252704179..f3ae1a641 100644 --- a/EasyPost.Tests/cassettes/netstandard/pickup/cancel.json +++ b/EasyPost.Tests/cassettes/netstandard/pickup/cancel.json @@ -1,7 +1,7 @@ [ { - "Duration": 45, - "RecordedAt": "2022-08-24T13:53:15.39621-06:00", + "Duration": 226, + "RecordedAt": "2022-09-07T15:01:28.574492-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:14Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780340\",\"updated_at\":\"2022-08-24T19:53:15Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_6412984223e611ed9decac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:14-06:00\",\"updated_at\":\"2022-08-24T13:53:14-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_c5a34e17c8224d79aac15249b5e88792\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:14Z\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_c3bd787e4bfc46859f3fcd3d408994ee\",\"created_at\":\"2022-08-24T19:53:15Z\",\"updated_at\":\"2022-08-24T19:53:15Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:15Z\",\"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/20220824/553f22a2978b40ddac6f7b97219254ad.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_a60deb7b2f61428a9c0a8a003218f3aa\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:14Z\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2fbf5e97bfe046ed838e5c2e574a1794\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:14Z\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6ed90543150942689ae72ecec5ee0fc9\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:14Z\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_41c17a4ce2364461a437b32dc18f7aaa\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:14Z\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_41c17a4ce2364461a437b32dc18f7aaa\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:15Z\",\"updated_at\":\"2022-08-24T19:53:15Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ae1250c07caf432b904508c4e0838206\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780340\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:15Z\",\"updated_at\":\"2022-08-24T19:53:15Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2FlMTI1MGMwN2NhZjQzMmI5MDQ1MDhjNGUwODM4MjA2\"},\"to_address\":{\"id\":\"adr_6410acf423e611ed9debac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:14-06:00\",\"updated_at\":\"2022-08-24T13:53:14-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_6412984223e611ed9decac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:14-06:00\",\"updated_at\":\"2022-08-24T13:53:14-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6410acf423e611ed9debac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:14-06:00\",\"updated_at\":\"2022-08-24T13:53:14-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:27Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478757\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3d8316342ef011eda999ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_48790f482c4d4afdb8063a318008b1f7\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_4e41ec0f02a44cc291b4bb29ffe3f068\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/4321e548ae0b4a2eb31616b8ff6c5309.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_293f7a2b8848482ba383863eee597dc1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_54eb3cef112b4c2a9ea7ffb592d0d9e0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_90f2b09ef6f9457c874fdcc4695aa964\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c82d2537e4824930a0984f0215c71ba5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_90f2b09ef6f9457c874fdcc4695aa964\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_bd1183a84e8a4a46a0543c076d9806bd\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478757\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2JkMTE4M2E4NGU4YTRhNDZhMDU0M2MwNzZkOTgwNmJk\"},\"to_address\":{\"id\":\"adr_3d7ec2952ef011eda116ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3d8316342ef011eda999ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3d7ec2952ef011eda116ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681aaf7dac99100794353", + "x-ep-request-uuid": "3bde9a29631906a7e79a64a1002e952a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_608638dd6d434cf4983f9214c68f5180", - "ETag": "W/\"21f335d26dec035585583504a25ca062\"", - "x-runtime": "0.874190", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_b173b7cde32d4cb4977cf9f6b6f9e5a3", + "ETag": "W/\"9c8f0fd50c9e7660bd1caaf41dd154f8\"", + "x-runtime": "0.947518", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, @@ -54,14 +53,14 @@ } }, { - "Duration": 754, - "RecordedAt": "2022-08-24T13:53:16.223953-06:00", + "Duration": 732, + "RecordedAt": "2022-09-07T15:01:29.362777-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-08-25\",\"max_datetime\":\"2022-08-25\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:14Z\",\"id\":\"adr_6410acf423e611ed9debac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:14Z\",\"id\":\"adr_6412984223e611ed9decac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:14Z\",\"id\":\"prcl_c5a34e17c8224d79aac15249b5e88792\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:15Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/553f22a2978b40ddac6f7b97219254ad.png\",\"created_at\":\"2022-08-24T19:53:15Z\",\"id\":\"pl_c3bd787e4bfc46859f3fcd3d408994ee\",\"updated_at\":\"2022-08-24T19:53:15Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"created_at\":\"2022-08-24T19:53:14Z\",\"id\":\"rate_a60deb7b2f61428a9c0a8a003218f3aa\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"created_at\":\"2022-08-24T19:53:14Z\",\"id\":\"rate_2fbf5e97bfe046ed838e5c2e574a1794\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"created_at\":\"2022-08-24T19:53:14Z\",\"id\":\"rate_6ed90543150942689ae72ecec5ee0fc9\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"created_at\":\"2022-08-24T19:53:14Z\",\"id\":\"rate_41c17a4ce2364461a437b32dc18f7aaa\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:14Z\",\"id\":\"adr_6412984223e611ed9decac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"created_at\":\"2022-08-24T19:53:15Z\",\"id\":\"rate_41c17a4ce2364461a437b32dc18f7aaa\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:15Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:14Z\",\"id\":\"adr_6410acf423e611ed9debac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2FlMTI1MGMwN2NhZjQzMmI5MDQ1MDhjNGUwODM4MjA2\",\"shipment_id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780340\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:15Z\",\"id\":\"trk_ae1250c07caf432b904508c4e0838206\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:15Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780340\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:14Z\",\"id\":\"shp_608638dd6d434cf4983f9214c68f5180\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:15Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"adr_3d7ec2952ef011eda116ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"adr_3d8316342ef011eda999ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"prcl_48790f482c4d4afdb8063a318008b1f7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:28Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/4321e548ae0b4a2eb31616b8ff6c5309.png\",\"created_at\":\"2022-09-07T21:01:28Z\",\"id\":\"pl_4e41ec0f02a44cc291b4bb29ffe3f068\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"rate_293f7a2b8848482ba383863eee597dc1\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"rate_54eb3cef112b4c2a9ea7ffb592d0d9e0\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"rate_90f2b09ef6f9457c874fdcc4695aa964\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"rate_c82d2537e4824930a0984f0215c71ba5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"adr_3d8316342ef011eda999ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"created_at\":\"2022-09-07T21:01:28Z\",\"id\":\"rate_90f2b09ef6f9457c874fdcc4695aa964\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"adr_3d7ec2952ef011eda116ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2JkMTE4M2E4NGU4YTRhNDZhMDU0M2MwNzZkOTgwNmJk\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478757\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:28Z\",\"id\":\"trk_bd1183a84e8a4a46a0543c076d9806bd\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478757\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6316" + "Content-Length": "6292" }, "Method": "POST", "RequestHeaders": { @@ -73,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_ca898223bbb444bcb49367f821826a97\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:15Z\",\"updated_at\":\"2022-08-24T19:53:15Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_64a820b823e611ed8549ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:15-06:00\",\"updated_at\":\"2022-08-24T13:53:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:16Z\",\"updated_at\":\"2022-08-24T19:53:16Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_ca898223bbb444bcb49367f821826a97\",\"id\":\"pickuprate_ea74297b34344da6a4be0ecbc311ff60\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_460e602470924d7e84d11ca6a4e5cea0\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_3e22f1aa2ef011eda155ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:28-06:00\",\"updated_at\":\"2022-09-07T15:01:28-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:29Z\",\"updated_at\":\"2022-09-07T21:01:29Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_460e602470924d7e84d11ca6a4e5cea0\",\"id\":\"pickuprate_e6ffc6f43ffe421d907384afecc0cfe0\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -88,13 +87,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681abf7dac991007943c4", + "x-ep-request-uuid": "3bde9a29631906a8e79a64a1002e95c5", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"8c7f3b09c275cfd486433ad06a45f772\"", - "x-runtime": "0.710372", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"5f9282ef8330675576bfc0f61cc7b05e\"", + "x-runtime": "0.654052", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -106,8 +105,8 @@ } }, { - "Duration": 779, - "RecordedAt": "2022-08-24T13:53:17.043179-06:00", + "Duration": 64, + "RecordedAt": "2022-09-07T15:01:30.457472-06:00", "Request": { "Body": "{\"carrier\":\"USPS\",\"service\":\"NextDay\"}", "BodyContentType": "Json", @@ -122,15 +121,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_ca898223bbb444bcb49367f821826a97/buy" + "Uri": "https://api.easypost.com/v2/pickups/pickup_460e602470924d7e84d11ca6a4e5cea0/buy" }, "Response": { - "Body": "{\"id\":\"pickup_ca898223bbb444bcb49367f821826a97\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:15Z\",\"updated_at\":\"2022-08-24T19:53:17Z\",\"mode\":\"test\",\"status\":\"scheduled\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC62071738\",\"address\":{\"id\":\"adr_64a820b823e611ed8549ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:15-06:00\",\"updated_at\":\"2022-08-24T13:53:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:16Z\",\"updated_at\":\"2022-08-24T19:53:16Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_ca898223bbb444bcb49367f821826a97\",\"id\":\"pickuprate_ea74297b34344da6a4be0ecbc311ff60\",\"object\":\"PickupRate\"}]}", + "Body": "{\"error\":{\"code\":\"PICKUP.BUY.FAILED\",\"message\":\"Service availability unknown.ServerCode=500 serverMessage = Internal server error\",\"errors\":[]}}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1160" + "Content-Length": "146" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -140,70 +139,20 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681acf7dac99100794414", + "x-ep-request-uuid": "3bde9a29631906a9e79a64a1002e9621", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"1620a09eb36946c2aa4767fd13ed730b\"", - "x-runtime": "0.740269", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-runtime": "0.975217", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { - "Code": 200, - "Message": "OK" - } - } - }, - { - "Duration": 849, - "RecordedAt": "2022-08-24T13:53:17.927271-06:00", - "Request": { - "Body": "", - "BodyContentType": "Text", - "ContentHeaders": {}, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_ca898223bbb444bcb49367f821826a97/cancel" - }, - "Response": { - "Body": "{\"id\":\"pickup_ca898223bbb444bcb49367f821826a97\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:15Z\",\"updated_at\":\"2022-08-24T19:53:18Z\",\"mode\":\"test\",\"status\":\"canceled\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC62071738\",\"address\":{\"id\":\"adr_64a820b823e611ed8549ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:15-06:00\",\"updated_at\":\"2022-08-24T13:53:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:16Z\",\"updated_at\":\"2022-08-24T19:53:16Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_ca898223bbb444bcb49367f821826a97\",\"id\":\"pickuprate_ea74297b34344da6a4be0ecbc311ff60\",\"object\":\"PickupRate\"}]}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1159" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681adf7dac99100794471", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"32a274f71b2b0c22087249cedd4d9131\"", - "x-runtime": "0.812466", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 200, - "Message": "OK" + "Code": 400, + "Message": "Bad Request" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/pickup/create.json b/EasyPost.Tests/cassettes/netstandard/pickup/create.json index 655436ea0..3c3dcbc1e 100644 --- a/EasyPost.Tests/cassettes/netstandard/pickup/create.json +++ b/EasyPost.Tests/cassettes/netstandard/pickup/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 134, - "RecordedAt": "2022-08-24T13:53:13.288975-06:00", + "Duration": 232, + "RecordedAt": "2022-09-07T15:01:26.480986-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:12Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780296\",\"updated_at\":\"2022-08-24T19:53:13Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_62c62b0123e611ed8acaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:12-06:00\",\"updated_at\":\"2022-08-24T13:53:12-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b98fcc5ed55240508e5c24fbb60a5540\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:12Z\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_03469525b5e741d3b7deb9da61d2a87f\",\"created_at\":\"2022-08-24T19:53:12Z\",\"updated_at\":\"2022-08-24T19:53:13Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:12Z\",\"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/20220824/4b4300c0d36146bab41b17ac3615d439.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_2cfc66ecef8f4e3eb0573b3e260dca6b\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:12Z\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6bb1c8b2bff04c048fc2cdc356996074\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:12Z\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_034d8496a75d4ccabd820ae41682eacc\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:12Z\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6e49446b951845f3938c28631540b4c9\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:12Z\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_6e49446b951845f3938c28631540b4c9\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:13Z\",\"updated_at\":\"2022-08-24T19:53:13Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_cefbb4540a044fc2b92dca177f8d9cb7\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780296\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:13Z\",\"updated_at\":\"2022-08-24T19:53:13Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2NlZmJiNDU0MGEwNDRmYzJiOTJkY2ExNzdmOGQ5Y2I3\"},\"to_address\":{\"id\":\"adr_62c4333023e611ed84ecac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:12-06:00\",\"updated_at\":\"2022-08-24T13:53:12-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_62c62b0123e611ed8acaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:12-06:00\",\"updated_at\":\"2022-08-24T13:53:12-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_62c4333023e611ed84ecac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:12-06:00\",\"updated_at\":\"2022-08-24T13:53:12-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:25Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478733\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3c414a362ef011eda0baac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5ffe00258d09451f8ce75c8bf0cadbe1\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_45148dd59fbb4ed3a431b5c2d37de081\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/9ac119680c574b88ace1b124139c19fd.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_696706d4daab41e2b1b0946a48e1e701\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_29a54c6616e8456bbf58854caad33a2e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_39d7e9dd50bd4b5f83b87d5091ec95a5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7df294075a724ea0ab79621d245d0ae6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7df294075a724ea0ab79621d245d0ae6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_8f2377ed02904246b64601adf72b5b57\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478733\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzhmMjM3N2VkMDI5MDQyNDZiNjQ2MDFhZGY3MmI1YjU3\"},\"to_address\":{\"id\":\"adr_3c3f644c2ef011eda679ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3c414a362ef011eda0baac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3c3f644c2ef011eda679ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681a8f7f1f73d00794267", + "x-ep-request-uuid": "3bde9a2c631906a5e79a649f002e9414", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c", - "ETag": "W/\"09340c9423313c234a22ed8b75a590d5\"", - "x-runtime": "0.943377", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_69fc4cbf3ced4b4eb6199cdd32462bc5", + "ETag": "W/\"05a9ac928ca975962322e9eac1eb5c69\"", + "x-runtime": "0.950878", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,14 +53,14 @@ } }, { - "Duration": 950, - "RecordedAt": "2022-08-24T13:53:14.306251-06:00", + "Duration": 773, + "RecordedAt": "2022-09-07T15:01:27.31451-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-08-25\",\"max_datetime\":\"2022-08-25\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:12Z\",\"id\":\"adr_62c4333023e611ed84ecac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:12Z\",\"id\":\"adr_62c62b0123e611ed8acaac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:12Z\",\"id\":\"prcl_b98fcc5ed55240508e5c24fbb60a5540\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:12Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/4b4300c0d36146bab41b17ac3615d439.png\",\"created_at\":\"2022-08-24T19:53:12Z\",\"id\":\"pl_03469525b5e741d3b7deb9da61d2a87f\",\"updated_at\":\"2022-08-24T19:53:13Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"created_at\":\"2022-08-24T19:53:12Z\",\"id\":\"rate_2cfc66ecef8f4e3eb0573b3e260dca6b\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"created_at\":\"2022-08-24T19:53:12Z\",\"id\":\"rate_6bb1c8b2bff04c048fc2cdc356996074\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"created_at\":\"2022-08-24T19:53:12Z\",\"id\":\"rate_034d8496a75d4ccabd820ae41682eacc\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"created_at\":\"2022-08-24T19:53:12Z\",\"id\":\"rate_6e49446b951845f3938c28631540b4c9\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:12Z\",\"id\":\"adr_62c62b0123e611ed8acaac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"created_at\":\"2022-08-24T19:53:13Z\",\"id\":\"rate_6e49446b951845f3938c28631540b4c9\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:13Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:12Z\",\"id\":\"adr_62c4333023e611ed84ecac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2NlZmJiNDU0MGEwNDRmYzJiOTJkY2ExNzdmOGQ5Y2I3\",\"shipment_id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780296\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:13Z\",\"id\":\"trk_cefbb4540a044fc2b92dca177f8d9cb7\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:13Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780296\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:12Z\",\"id\":\"shp_b4d6e347ae4e4bb8ad2a1fa62e6ca94c\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:13Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"adr_3c3f644c2ef011eda679ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"adr_3c414a362ef011eda0baac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"prcl_5ffe00258d09451f8ce75c8bf0cadbe1\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:26Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/9ac119680c574b88ace1b124139c19fd.png\",\"created_at\":\"2022-09-07T21:01:26Z\",\"id\":\"pl_45148dd59fbb4ed3a431b5c2d37de081\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"rate_696706d4daab41e2b1b0946a48e1e701\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"rate_29a54c6616e8456bbf58854caad33a2e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"rate_39d7e9dd50bd4b5f83b87d5091ec95a5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"rate_7df294075a724ea0ab79621d245d0ae6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"adr_3c414a362ef011eda0baac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"created_at\":\"2022-09-07T21:01:26Z\",\"id\":\"rate_7df294075a724ea0ab79621d245d0ae6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"adr_3c3f644c2ef011eda679ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzhmMjM3N2VkMDI5MDQyNDZiNjQ2MDFhZGY3MmI1YjU3\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478733\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:26Z\",\"id\":\"trk_8f2377ed02904246b64601adf72b5b57\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478733\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6316" + "Content-Length": "6292" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_2aa65227447e4557b08b5718de4e40bd\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:13Z\",\"updated_at\":\"2022-08-24T19:53:13Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_636606e223e611ed8af2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:13-06:00\",\"updated_at\":\"2022-08-24T13:53:13-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:14Z\",\"updated_at\":\"2022-08-24T19:53:14Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_2aa65227447e4557b08b5718de4e40bd\",\"id\":\"pickuprate_9c1034a5565349a3b59373095f61c8fc\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_8c0203510ca74d7fb11000d1ee4fadc3\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_3ce366ad2ef011edb28eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:26-06:00\",\"updated_at\":\"2022-09-07T15:01:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_8c0203510ca74d7fb11000d1ee4fadc3\",\"id\":\"pickuprate_9be36320615d416288d8724388b4ef70\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681a9f7f1f73d007942e1", + "x-ep-request-uuid": "3bde9a2c631906a6e79a649f002e94a8", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"71915e3e7e40509b63987ab761194fef\"", - "x-runtime": "0.903983", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"e4fae2f68cb24deb8a90ce1342cedc0f\"", + "x-runtime": "0.705100", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -103,5 +103,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/pickup/lowest_rate.json b/EasyPost.Tests/cassettes/netstandard/pickup/lowest_rate.json index 2205a0a6c..93ec3b8f5 100644 --- a/EasyPost.Tests/cassettes/netstandard/pickup/lowest_rate.json +++ b/EasyPost.Tests/cassettes/netstandard/pickup/lowest_rate.json @@ -1,7 +1,7 @@ [ { - "Duration": 67, - "RecordedAt": "2022-08-24T13:53:11.161681-06:00", + "Duration": 458, + "RecordedAt": "2022-09-07T15:01:24.477015-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:10Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780265\",\"updated_at\":\"2022-08-24T19:53:11Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_618b9f6223e611ed848eac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_342bad442aa24cb0b97cba18828caaae\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_e3f50bb218634ab397face78b6ab5036\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:11Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/287d5fc0c9c14e3cb33740512064dc02.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_b8dcd86889404abbbffb4e08ba74d79c\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c8717a5f92984be095646583a606aac2\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e468482811574d9d96bbaaa28151b3cf\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ca825e8cff2e46558e2a3efec3e5f773\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_b8dcd86889404abbbffb4e08ba74d79c\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:10Z\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_50aa7926a0d448e3951db2282b625b8c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780265\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:11Z\",\"updated_at\":\"2022-08-24T19:53:11Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzUwYWE3OTI2YTBkNDQ4ZTM5NTFkYjIyODJiNjI1Yjhj\"},\"to_address\":{\"id\":\"adr_61899bfb23e611ed9d04ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_618b9f6223e611ed848eac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_61899bfb23e611ed9d04ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:10-06:00\",\"updated_at\":\"2022-08-24T13:53:10-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:23Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478726\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3aeb878d2ef011edb1fcac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_8e5c55541e25439da0769c69dbda4bf5\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_afce1547bd3a48928220d11dbbcdbace\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/cd351fd7a2564521a167cb59d6fc1820.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_077c59d6a52a439e8cdda647d6943651\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_990479da6950471da7ec2e0388906694\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3ac100c16f534802809c28b6e12cda03\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1b414dd4ebfc40cf809631c369c9e282\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_1b414dd4ebfc40cf809631c369c9e282\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_aef44f6beec64ebdbd8fd31dcaa9189e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478726\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2FlZjQ0ZjZiZWVjNjRlYmRiZDhmZDMxZGNhYTkxODll\"},\"to_address\":{\"id\":\"adr_3ae92b1c2ef011eda05bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3aeb878d2ef011edb1fcac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3ae92b1c2ef011eda05bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681a6f7a863b70079416c", + "x-ep-request-uuid": "3bde9a25631906a3e79a6480002e931e", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_f08cfa4918ac47e5a8f27b29f8429ed3", - "ETag": "W/\"64ddce9435f2e4d782928a003673f678\"", - "x-runtime": "0.879417", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_f1cc93d553da43568b0a5ac8bdad656d", + "ETag": "W/\"99e552cf18bbf2bb169bd2dd2a4f8883\"", + "x-runtime": "1.193099", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,14 +53,14 @@ } }, { - "Duration": 883, - "RecordedAt": "2022-08-24T13:53:12.114473-06:00", + "Duration": 678, + "RecordedAt": "2022-09-07T15:01:25.216703-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-08-25\",\"max_datetime\":\"2022-08-25\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"adr_61899bfb23e611ed9d04ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"adr_618b9f6223e611ed848eac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"prcl_342bad442aa24cb0b97cba18828caaae\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:10Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/287d5fc0c9c14e3cb33740512064dc02.png\",\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"pl_e3f50bb218634ab397face78b6ab5036\",\"updated_at\":\"2022-08-24T19:53:11Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"rate_b8dcd86889404abbbffb4e08ba74d79c\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"rate_c8717a5f92984be095646583a606aac2\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"rate_e468482811574d9d96bbaaa28151b3cf\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"rate_ca825e8cff2e46558e2a3efec3e5f773\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"adr_618b9f6223e611ed848eac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"rate_b8dcd86889404abbbffb4e08ba74d79c\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"adr_61899bfb23e611ed9d04ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:10Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzUwYWE3OTI2YTBkNDQ4ZTM5NTFkYjIyODJiNjI1Yjhj\",\"shipment_id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780265\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:11Z\",\"id\":\"trk_50aa7926a0d448e3951db2282b625b8c\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:11Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780265\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:10Z\",\"id\":\"shp_f08cfa4918ac47e5a8f27b29f8429ed3\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:11Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"adr_3ae92b1c2ef011eda05bac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"adr_3aeb878d2ef011edb1fcac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"prcl_8e5c55541e25439da0769c69dbda4bf5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:24Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/cd351fd7a2564521a167cb59d6fc1820.png\",\"created_at\":\"2022-09-07T21:01:24Z\",\"id\":\"pl_afce1547bd3a48928220d11dbbcdbace\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"rate_077c59d6a52a439e8cdda647d6943651\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"rate_990479da6950471da7ec2e0388906694\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"rate_3ac100c16f534802809c28b6e12cda03\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"rate_1b414dd4ebfc40cf809631c369c9e282\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"adr_3aeb878d2ef011edb1fcac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"created_at\":\"2022-09-07T21:01:24Z\",\"id\":\"rate_1b414dd4ebfc40cf809631c369c9e282\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"adr_3ae92b1c2ef011eda05bac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2FlZjQ0ZjZiZWVjNjRlYmRiZDhmZDMxZGNhYTkxODll\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478726\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:24Z\",\"id\":\"trk_aef44f6beec64ebdbd8fd31dcaa9189e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478726\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6316" + "Content-Length": "6292" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_70b3b46d5e0c4d9f8a86af86f0fde3cd\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:11Z\",\"updated_at\":\"2022-08-24T19:53:11Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_6222a01e23e611ed8a93ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:11-06:00\",\"updated_at\":\"2022-08-24T13:53:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:12Z\",\"updated_at\":\"2022-08-24T19:53:12Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_70b3b46d5e0c4d9f8a86af86f0fde3cd\",\"id\":\"pickuprate_487194de582f4b04a24173078270fe24\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_9101a8e943ab4171a4395e6198e06c25\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_3bb11e5b2ef011eda661ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:24-06:00\",\"updated_at\":\"2022-09-07T15:01:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_9101a8e943ab4171a4395e6198e06c25\",\"id\":\"pickuprate_06c7427fb73942deaa7ab79838f29633\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b3630681a7f7a863b7007941e4", + "x-ep-request-uuid": "3bde9a25631906a4e79a6480002e9392", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"b698cbc95ac91db28da6a02315444dd7\"", - "x-runtime": "0.837241", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"d76d6891d534616b606b3f5d6669c480\"", + "x-runtime": "0.618294", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -103,5 +103,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/pickup/retrieve.json b/EasyPost.Tests/cassettes/netstandard/pickup/retrieve.json index f1af243b8..c7941e07a 100644 --- a/EasyPost.Tests/cassettes/netstandard/pickup/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/pickup/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 45, - "RecordedAt": "2022-08-24T13:53:09.002985-06:00", + "Duration": 220, + "RecordedAt": "2022-09-07T15:01:21.990107-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:08Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780241\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_60458d9e23e611ed9c92ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:08-06:00\",\"updated_at\":\"2022-08-24T13:53:08-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_878158f7c4de4b39815479f90949ae0c\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_273a4773b6544b13a93fe26ea5d4e91f\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:08Z\",\"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/20220824/b9d089b756624ad28eb6ba531aab05ba.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e10f452beee0418ab0cac0413c511261\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c86cf705df43461780dbb7477c7e1e90\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_31305fa9a83c4a6db467157efecb882f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_cb81b23cf3c347c3a2d58bbcbc80f84e\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_e10f452beee0418ab0cac0413c511261\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_29cf630008d0462497e0776c2e566d39\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780241\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzI5Y2Y2MzAwMDhkMDQ2MjQ5N2UwNzc2YzJlNTY2ZDM5\"},\"to_address\":{\"id\":\"adr_6043c18423e611ed8445ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:08-06:00\",\"updated_at\":\"2022-08-24T13:53:08-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_60458d9e23e611ed9c92ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:08-06:00\",\"updated_at\":\"2022-08-24T13:53:08-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_6043c18423e611ed8445ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:08-06:00\",\"updated_at\":\"2022-08-24T13:53:08-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:21Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478719\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_399374ec2ef011eda878ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b7dbc90b85a1454d85316e26a54be5bf\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6c72a9949cf748aa815722a753e51792\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/7d60c4ea2e7241dfa629ba03be1a3fae.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_f5f26e332bef447892ff5e211af34433\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f91c12861ed24c138703bc431148ee5b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_40092d60ac2d4750a221950b1470e4b0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1c37ae9032164cdebd16ffc24434a770\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f5f26e332bef447892ff5e211af34433\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_0fedf07401c2452ebdedbf7cc2f2fcc6\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478719\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzBmZWRmMDc0MDFjMjQ1MmViZGVkYmY3Y2MyZjJmY2M2\"},\"to_address\":{\"id\":\"adr_399186bf2ef011eda877ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_399374ec2ef011eda878ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_399186bf2ef011eda877ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681a4f7a96ef400794081", + "x-ep-request-uuid": "3bde9a27631906a1e79a6478002e9201", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_1398a031f9b944f1a58bb11f3441a9da", - "ETag": "W/\"ec9d65a8a5f13d68702c79e4d8904a4f\"", - "x-runtime": "0.854787", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_855b0a6f9a464faea4787ae73da0d6d7", + "ETag": "W/\"beb3f7022bf064b0834653c9d0e6dbff\"", + "x-runtime": "0.955334", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,14 +53,14 @@ } }, { - "Duration": 818, - "RecordedAt": "2022-08-24T13:53:09.905856-06:00", + "Duration": 757, + "RecordedAt": "2022-09-07T15:01:22.812905-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-08-25\",\"max_datetime\":\"2022-08-25\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"adr_6043c18423e611ed8445ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"adr_60458d9e23e611ed9c92ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"prcl_878158f7c4de4b39815479f90949ae0c\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:08Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/b9d089b756624ad28eb6ba531aab05ba.png\",\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"pl_273a4773b6544b13a93fe26ea5d4e91f\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"rate_e10f452beee0418ab0cac0413c511261\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"rate_c86cf705df43461780dbb7477c7e1e90\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"rate_31305fa9a83c4a6db467157efecb882f\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"rate_cb81b23cf3c347c3a2d58bbcbc80f84e\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"adr_60458d9e23e611ed9c92ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"rate_e10f452beee0418ab0cac0413c511261\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"adr_6043c18423e611ed8445ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzI5Y2Y2MzAwMDhkMDQ2MjQ5N2UwNzc2YzJlNTY2ZDM5\",\"shipment_id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780241\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:09Z\",\"id\":\"trk_29cf630008d0462497e0776c2e566d39\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780241\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:08Z\",\"id\":\"shp_1398a031f9b944f1a58bb11f3441a9da\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"adr_399186bf2ef011eda877ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"adr_399374ec2ef011eda878ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"prcl_b7dbc90b85a1454d85316e26a54be5bf\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:21Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/7d60c4ea2e7241dfa629ba03be1a3fae.png\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"pl_6c72a9949cf748aa815722a753e51792\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"rate_f5f26e332bef447892ff5e211af34433\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"rate_f91c12861ed24c138703bc431148ee5b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"rate_40092d60ac2d4750a221950b1470e4b0\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"rate_1c37ae9032164cdebd16ffc24434a770\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"adr_399374ec2ef011eda878ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"rate_f5f26e332bef447892ff5e211af34433\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"adr_399186bf2ef011eda877ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzBmZWRmMDc0MDFjMjQ1MmViZGVkYmY3Y2MyZjJmY2M2\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478719\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:22Z\",\"id\":\"trk_0fedf07401c2452ebdedbf7cc2f2fcc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478719\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6316" + "Content-Length": "6292" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_637f610bdd934edba6cfd7b8c13d107e\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_60db882123e611ed9cbfac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:09-06:00\",\"updated_at\":\"2022-08-24T13:53:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_637f610bdd934edba6cfd7b8c13d107e\",\"id\":\"pickuprate_08bb96b81c5d4a1ca7d775a89c08de3c\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_66a5ca12579540f795cc1a5738457e0c\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_3a38f86e2ef011eda028ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_66a5ca12579540f795cc1a5738457e0c\",\"id\":\"pickuprate_a4448123217943119217ed78c82a6c02\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,13 +87,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681a5f7a96ef4007940f3", + "x-ep-request-uuid": "3bde9a27631906a2e79a6478002e929e", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"cb39b49985599ccfcf44ceab2689df69\"", - "x-runtime": "0.759209", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"b45b01faa1ad444af0b9cf1914b03f9d\"", + "x-runtime": "0.679966", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -105,8 +105,8 @@ } }, { - "Duration": 100, - "RecordedAt": "2022-08-24T13:53:10.05126-06:00", + "Duration": 141, + "RecordedAt": "2022-09-07T15:01:22.985472-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -118,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_637f610bdd934edba6cfd7b8c13d107e" + "Uri": "https://api.easypost.com/v2/pickups/pickup_66a5ca12579540f795cc1a5738457e0c" }, "Response": { - "Body": "{\"id\":\"pickup_637f610bdd934edba6cfd7b8c13d107e\",\"object\":\"Pickup\",\"created_at\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-08-25T00:00:00Z\",\"max_datetime\":\"2022-08-25T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_60db882123e611ed9cbfac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:09-06:00\",\"updated_at\":\"2022-08-24T13:53:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-08-24T19:53:09Z\",\"updated_at\":\"2022-08-24T19:53:09Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_637f610bdd934edba6cfd7b8c13d107e\",\"id\":\"pickuprate_08bb96b81c5d4a1ca7d775a89c08de3c\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_66a5ca12579540f795cc1a5738457e0c\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_3a38f86e2ef011eda028ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_66a5ca12579540f795cc1a5738457e0c\",\"id\":\"pickuprate_a4448123217943119217ed78c82a6c02\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -136,13 +136,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b6630681a6f7a96ef400794150", + "x-ep-request-uuid": "3bde9a27631906a2e79a6478002e92f3", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"cb39b49985599ccfcf44ceab2689df69\"", - "x-runtime": "0.061490", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"b45b01faa1ad444af0b9cf1914b03f9d\"", + "x-runtime": "0.070100", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -152,5 +152,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/rate/retrieve.json b/EasyPost.Tests/cassettes/netstandard/rate/retrieve.json index 65cb02e3f..90bb8465c 100644 --- a/EasyPost.Tests/cassettes/netstandard/rate/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/rate/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 358, - "RecordedAt": "2022-08-24T13:53:04.936171-06:00", + "Duration": 82, + "RecordedAt": "2022-09-07T15:01:18.111562-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:04Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-24T19:53:05Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5dd7165223e611ed830cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_282b82383c6c46279a07c8d8c58e4e4a\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_0cef00cbb7ca404db8cb1dca69fbb8d6\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_fb0352fbaf8c419088e678cd3d26c5e1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3bdc27f279e74ba6a7bdf695892fa6ba\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_fb0352fbaf8c419088e678cd3d26c5e1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bc3e63985566451b90014042541e137a\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_fb0352fbaf8c419088e678cd3d26c5e1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_943b7270c4874a85b4d45d06e1a68409\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_fb0352fbaf8c419088e678cd3d26c5e1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5dd517e723e611ed830aac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5dd7165223e611ed830cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5dd517e723e611ed830aac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_fb0352fbaf8c419088e678cd3d26c5e1\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:17Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_378b9d3b2ef011edb109ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a2d4e58e1554402eb253aa99c021b0df\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8a45c85a096f49ac9f3193729188c48c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0d31458688854660a1a30798cc528e56\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f3f7075eeee54675a26bd701e9c8123f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_0d31458688854660a1a30798cc528e56\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_048230534f414797abe4514b2e79a5d8\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0d31458688854660a1a30798cc528e56\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_94ed58215ea74495b131cb9259290f5e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_0d31458688854660a1a30798cc528e56\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_378982842ef011eda5b5ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_378b9d3b2ef011edb109ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_378982842ef011eda5b5ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_0d31458688854660a1a30798cc528e56\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33db630681a0f800c219007ed252", + "x-ep-request-uuid": "3bde9a2b6319069de79a60c2002e9067", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_fb0352fbaf8c419088e678cd3d26c5e1", - "ETag": "W/\"6c797798b3d8c10d2025be1ecde7bc18\"", - "x-runtime": "0.872564", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_0d31458688854660a1a30798cc528e56", + "ETag": "W/\"dc51c64b6f6ebf2269ae473249cad81d\"", + "x-runtime": "0.472771", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 211, - "RecordedAt": "2022-08-24T13:53:05.225455-06:00", + "Duration": 176, + "RecordedAt": "2022-09-07T15:01:18.425749-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,15 +66,15 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/rates/rate_0cef00cbb7ca404db8cb1dca69fbb8d6" + "Uri": "https://api.easypost.com/v2/rates/rate_8a45c85a096f49ac9f3193729188c48c" }, "Response": { - "Body": "{\"id\":\"rate_0cef00cbb7ca404db8cb1dca69fbb8d6\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_fb0352fbaf8c419088e678cd3d26c5e1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}", + "Body": "{\"id\":\"rate_8a45c85a096f49ac9f3193729188c48c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0d31458688854660a1a30798cc528e56\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "535" + "Content-Length": "532" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -84,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33db630681a1f800c219007ed2f6", + "x-ep-request-uuid": "3bde9a2b6319069ee79a60c2002e90c6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"70502e47afd5772d14cd1301019853f5\"", - "x-runtime": "0.174341", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"21fe62fbc51f4984a97a9c2bf14c7f92\"", + "x-runtime": "0.111693", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/refund/all.json b/EasyPost.Tests/cassettes/netstandard/refund/all.json index ff6488879..232380759 100644 --- a/EasyPost.Tests/cassettes/netstandard/refund/all.json +++ b/EasyPost.Tests/cassettes/netstandard/refund/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 550, - "RecordedAt": "2022-08-24T13:53:04.245708-06:00", + "Duration": 671, + "RecordedAt": "2022-09-07T15:01:17.798118-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/refunds?page_size=5" }, "Response": { - "Body": "{\"refunds\":[{\"id\":\"rfnd_ebefa03be48440c283d7a1b078170208\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:08:51Z\",\"updated_at\":\"2022-08-22T22:28:00Z\",\"tracking_code\":\"9400100109361134350239\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_f4534068a4ae4ebc82775ef2beccea97\"},{\"id\":\"rfnd_a5d7bab638ad4421a2cb1ec11db02963\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:08:45Z\",\"updated_at\":\"2022-08-22T22:28:04Z\",\"tracking_code\":\"9400100109361134350178\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_aba96ee48aa04a8f8091dcbee2d11da3\"},{\"id\":\"rfnd_22b4bf0adf734f23be900c0a98f46b9b\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:08:43Z\",\"updated_at\":\"2022-08-22T22:28:00Z\",\"tracking_code\":\"9400100109361134350116\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_40df917af0a441c2bb76cf6e70b1952f\"},{\"id\":\"rfnd_3a7455ab247845b88a2f9c13887cc4b0\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:07:28Z\",\"updated_at\":\"2022-08-22T22:28:04Z\",\"tracking_code\":\"9400100109361134349868\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_b5f299d9ab404b51b670390c99c4f8d7\"},{\"id\":\"rfnd_b588c78ce1154a73b38b754a182d900d\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:07:22Z\",\"updated_at\":\"2022-08-22T22:28:12Z\",\"tracking_code\":\"9400100109361134349813\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_05b89b001abd410c8dbfbb923998ac08\"}],\"has_more\":true}", + "Body": "{\"refunds\":[{\"id\":\"rfnd_9ef2c41bce4942cdb82f8d9b57b84ae0\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:54:06Z\",\"updated_at\":\"2022-09-07T20:54:06Z\",\"tracking_code\":\"9400100109361136477927\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\"},{\"id\":\"rfnd_531a4bef44e3479389899b671be1a39e\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"tracking_code\":\"9400100109361136477842\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\"},{\"id\":\"rfnd_a2c170e4ead045b78ad7c55052b3fa9e\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_code\":\"9400100109361136477804\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\"},{\"id\":\"rfnd_6fa0cb8e1b7444f29006ff89ee3db27b\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:28Z\",\"updated_at\":\"2022-09-07T20:53:28Z\",\"tracking_code\":\"9400100109361136477712\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_b5df82741a4e4de2898cf99692074ca5\"},{\"id\":\"rfnd_ca235093852d480ab8c12fcaad2f6121\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:20Z\",\"updated_at\":\"2022-09-07T20:53:20Z\",\"tracking_code\":\"9400100109361136477651\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_fd24eae116ff43979c91f2ef3bafa2c3\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1504" + "Content-Length": "1509" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,15 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33da630681a0f7cd1497007ed25a", + "x-ep-request-uuid": "3bde9a296319069de79a60bd002e9066", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"ed7f061f871f472f74d7990288890ded\"", - "x-runtime": "0.041396", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"157fb389c5603246d714fe86d77a97ca\"", + "x-runtime": "0.055824", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/refund/create.json b/EasyPost.Tests/cassettes/netstandard/refund/create.json index aede57d82..b6cc6374e 100644 --- a/EasyPost.Tests/cassettes/netstandard/refund/create.json +++ b/EasyPost.Tests/cassettes/netstandard/refund/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 140, - "RecordedAt": "2022-08-24T13:53:05.659991-06:00", + "Duration": 649, + "RecordedAt": "2022-09-07T15:01:19.669859-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:04Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780166\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5e38762e23e611ed832fac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_e90032d979dd427ca69bbb488447135f\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_da2d4bb47f4a442393e58f0ac6f277f3\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:05Z\",\"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/20220824/2f6ccd598acf4b728d801edfbccd6afa.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_d6ec8061ca324df09f39e298ce5039bc\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_05a85e8d3ad94abdb7f0bdf772875e9b\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_66c5c5dc16364e5688208000154bfce4\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c6887e8c03f14473acf6a3f601d62a17\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_c6887e8c03f14473acf6a3f601d62a17\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_a5a22d4671714b1f9855df77e0e630bd\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780166\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2E1YTIyZDQ2NzE3MTRiMWY5ODU1ZGY3N2UwZTYzMGJk\"},\"to_address\":{\"id\":\"adr_5e36a48923e611ed832eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5e38762e23e611ed832fac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5e36a48923e611ed832eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:18Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478658\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_37f6947d2ef011ed9f72ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6fab0723c2e4db985992f1097b92b28\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0fc33b1bcdd14d6090f2a834c4144184\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:19Z\",\"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/20220907/ef2005b631ff49b3b0247bdb3fb69b5b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_aea908f1771f41f78890f649a2498897\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6f2db9e5066449888b9f0b36dfdfbea7\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1f8dfe40c18b465199e6cceff232f318\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_51ee837d330f4858b0f07b76cd98626c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_6f2db9e5066449888b9f0b36dfdfbea7\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_9b624eb5e9ba412c8bb47d204ed56ae2\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478658\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzliNjI0ZWI1ZTliYTQxMmM4YmI0N2QyMDRlZDU2YWUy\"},\"to_address\":{\"id\":\"adr_37f319c12ef011edb127ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_37f6947d2ef011ed9f72ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_37f319c12ef011edb127ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33da630681a0f800b557007ed2c6", + "x-ep-request-uuid": "3bde9a2b6319069ee79a6101002e90c5", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_c2358587b27d4d7bae0fdc93de47786d", - "ETag": "W/\"f48334490ca59e89e39ccf6a65205cee\"", - "x-runtime": "0.951592", + "Location": "/api/v2/shipments/shp_f5bc622ab32047638e04c02ee770d768", + "ETag": "W/\"2fa36ce347358cc914d9aef3027965ad\"", + "x-runtime": "1.353841", "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 144, - "RecordedAt": "2022-08-24T13:53:05.885456-06:00", + "Duration": 213, + "RecordedAt": "2022-09-07T15:01:19.958801-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_c2358587b27d4d7bae0fdc93de47786d" + "Uri": "https://api.easypost.com/v2/shipments/shp_f5bc622ab32047638e04c02ee770d768" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:04Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780166\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5e38762e23e611ed832fac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_e90032d979dd427ca69bbb488447135f\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_da2d4bb47f4a442393e58f0ac6f277f3\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:05Z\",\"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/20220824/2f6ccd598acf4b728d801edfbccd6afa.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_d6ec8061ca324df09f39e298ce5039bc\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_05a85e8d3ad94abdb7f0bdf772875e9b\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_66c5c5dc16364e5688208000154bfce4\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c6887e8c03f14473acf6a3f601d62a17\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_c6887e8c03f14473acf6a3f601d62a17\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_a5a22d4671714b1f9855df77e0e630bd\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780166\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:05Z\",\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2E1YTIyZDQ2NzE3MTRiMWY5ODU1ZGY3N2UwZTYzMGJk\"},\"to_address\":{\"id\":\"adr_5e36a48923e611ed832eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5e38762e23e611ed832fac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5e36a48923e611ed832eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:18Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478658\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_37f6947d2ef011ed9f72ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6fab0723c2e4db985992f1097b92b28\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0fc33b1bcdd14d6090f2a834c4144184\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:19Z\",\"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/20220907/ef2005b631ff49b3b0247bdb3fb69b5b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_aea908f1771f41f78890f649a2498897\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6f2db9e5066449888b9f0b36dfdfbea7\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1f8dfe40c18b465199e6cceff232f318\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_51ee837d330f4858b0f07b76cd98626c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_6f2db9e5066449888b9f0b36dfdfbea7\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_9b624eb5e9ba412c8bb47d204ed56ae2\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478658\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:19Z\",\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:19Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:19Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzliNjI0ZWI1ZTliYTQxMmM4YmI0N2QyMDRlZDU2YWUy\"},\"to_address\":{\"id\":\"adr_37f319c12ef011edb127ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_37f6947d2ef011ed9f72ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_37f319c12ef011edb127ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f5bc622ab32047638e04c02ee770d768\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33da630681a1f800b557007ed33c", + "x-ep-request-uuid": "3bde9a2b6319069fe79a6101002e917b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"b318822e2e2c351fb3b69d99d253e62b\"", - "x-runtime": "0.105364", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"1b09047b6a94dce939e633240f681f6c\"", + "x-runtime": "0.125197", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -102,10 +102,10 @@ } }, { - "Duration": 102, - "RecordedAt": "2022-08-24T13:53:06.073346-06:00", + "Duration": 146, + "RecordedAt": "2022-09-07T15:01:20.158833-06:00", "Request": { - "Body": "{\"refund\":{\"carrier\":\"USPS\",\"tracking_codes\":[\"9400100109361134780166\"]}}", + "Body": "{\"refund\":{\"carrier\":\"USPS\",\"tracking_codes\":[\"9400100109361136478658\"]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -121,7 +121,7 @@ "Uri": "https://api.easypost.com/v2/refunds" }, "Response": { - "Body": "[{\"id\":\"rfnd_b7ce85dcfd104dfbad702874eda008ab\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"tracking_code\":\"9400100109361134780166\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\"}]", + "Body": "[{\"id\":\"rfnd_7849717d0e444c90b3e2f35bc1d72ca6\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"tracking_code\":\"9400100109361136478658\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\"}]", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -136,15 +136,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33da630681a2f800b557007ed34f", + "x-ep-request-uuid": "3bde9a2b631906a0e79a6101002e9194", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"9cea89bc4601b423df4f007a352daf9c\"", - "x-runtime": "0.064662", + "ETag": "W/\"fac5a00c489e516ede213cf4e8bebde3\"", + "x-runtime": "0.069279", "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -152,5 +152,5 @@ "Message": "Created" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/refund/retrieve.json b/EasyPost.Tests/cassettes/netstandard/refund/retrieve.json index 9a0980e90..e12f3c707 100644 --- a/EasyPost.Tests/cassettes/netstandard/refund/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/refund/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 408, - "RecordedAt": "2022-08-24T13:53:06.505324-06:00", + "Duration": 299, + "RecordedAt": "2022-09-07T15:01:20.479942-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/refunds?page_size=5" }, "Response": { - "Body": "{\"refunds\":[{\"id\":\"rfnd_b7ce85dcfd104dfbad702874eda008ab\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"tracking_code\":\"9400100109361134780166\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_c2358587b27d4d7bae0fdc93de47786d\"},{\"id\":\"rfnd_ebefa03be48440c283d7a1b078170208\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:08:51Z\",\"updated_at\":\"2022-08-22T22:28:00Z\",\"tracking_code\":\"9400100109361134350239\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_f4534068a4ae4ebc82775ef2beccea97\"},{\"id\":\"rfnd_a5d7bab638ad4421a2cb1ec11db02963\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:08:45Z\",\"updated_at\":\"2022-08-22T22:28:04Z\",\"tracking_code\":\"9400100109361134350178\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_aba96ee48aa04a8f8091dcbee2d11da3\"},{\"id\":\"rfnd_22b4bf0adf734f23be900c0a98f46b9b\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:08:43Z\",\"updated_at\":\"2022-08-22T22:28:00Z\",\"tracking_code\":\"9400100109361134350116\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_40df917af0a441c2bb76cf6e70b1952f\"},{\"id\":\"rfnd_3a7455ab247845b88a2f9c13887cc4b0\",\"object\":\"Refund\",\"created_at\":\"2022-08-22T22:07:28Z\",\"updated_at\":\"2022-08-22T22:28:04Z\",\"tracking_code\":\"9400100109361134349868\",\"confirmation_number\":null,\"status\":\"rejected\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_b5f299d9ab404b51b670390c99c4f8d7\"}],\"has_more\":true}", + "Body": "{\"refunds\":[{\"id\":\"rfnd_7849717d0e444c90b3e2f35bc1d72ca6\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"tracking_code\":\"9400100109361136478658\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_f5bc622ab32047638e04c02ee770d768\"},{\"id\":\"rfnd_9ef2c41bce4942cdb82f8d9b57b84ae0\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:54:06Z\",\"updated_at\":\"2022-09-07T20:54:06Z\",\"tracking_code\":\"9400100109361136477927\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_ff72aceea2104d728f5cc5e073f0efb4\"},{\"id\":\"rfnd_531a4bef44e3479389899b671be1a39e\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"tracking_code\":\"9400100109361136477842\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_bd4fc4971dbc449984af129aa06aec6d\"},{\"id\":\"rfnd_a2c170e4ead045b78ad7c55052b3fa9e\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_code\":\"9400100109361136477804\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_157a18d69fb647d3b5991065bd220600\"},{\"id\":\"rfnd_6fa0cb8e1b7444f29006ff89ee3db27b\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T20:53:28Z\",\"updated_at\":\"2022-09-07T20:53:28Z\",\"tracking_code\":\"9400100109361136477712\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_b5df82741a4e4de2898cf99692074ca5\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1505" + "Content-Length": "1509" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,15 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b082630681a2e68bc209007698b0", + "x-ep-request-uuid": "3bde9a29631906a0e79a6168002e91b8", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"8b34ed8d07e98bf603d0599e5e092660\"", - "x-runtime": "0.043323", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"457191eb5a54f48fc90acbe750e6da4e\"", + "x-runtime": "0.041986", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -49,8 +49,8 @@ } }, { - "Duration": 156, - "RecordedAt": "2022-08-24T13:53:07.692066-06:00", + "Duration": 158, + "RecordedAt": "2022-09-07T15:01:21.663387-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -68,7 +68,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:06Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780234\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5f666f9323e611ed8421ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a24b59e5767347f2a987445a16015770\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_62f0d9a448d44794a1139d53cc4592e8\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/ef21706f12f84a678fba9860ba4bad50.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_78e216e5e69d4ba4a014995f5b395dc1\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fede7a50abb64d1e9a8b9a52cee6fd18\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ccafa45a77da4ad68b8a9c2435e6119c\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3c08b76fc9394238889066179f2c270d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3c08b76fc9394238889066179f2c270d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_d915120f9ed74f16a7a009cd2ddd68b6\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780234\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2Q5MTUxMjBmOWVkNzRmMTZhN2EwMDljZDJkZGQ2OGI2\"},\"to_address\":{\"id\":\"adr_5f6403ed23e611ed8991ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5f666f9323e611ed8421ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5f6403ed23e611ed8991ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:20Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478702\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_394db0b82ef011eda867ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_8a9e78ee5b19405a970515e591dabfde\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_2f8aee172b4f46d6b4b3311b33628181\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/8552036546954479a77873125a8a21ff.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_783a02cffdcd44fe83f26839a616ee66\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4b7cde3ba26d4165a1ce7de1db82168a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6db359305c324be499792f1f2bee7321\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_61a211ab58774790a9acdaa41c11d15c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_61a211ab58774790a9acdaa41c11d15c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_32debde162104a55a2d47138a3a22eab\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478702\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzMyZGViZGUxNjIxMDRhNTVhMmQ0NzEzOGEzYTIyZWFi\"},\"to_address\":{\"id\":\"adr_394b63ff2ef011edb18cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_394db0b82ef011eda867ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_394b63ff2ef011edb18cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,16 +83,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b082630681a2e68bc209007698e5", + "x-ep-request-uuid": "3bde9a29631906a0e79a6168002e91cb", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_63a3988fcbf34aeb9e6e9ecb35e9fabf", - "ETag": "W/\"8bccfc495ab77e130e1003e9c0082059\"", - "x-runtime": "0.973439", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_e95278087e6447819e11b84e95b7a5da", + "ETag": "W/\"f5eb96b4254b7280f194887e122480ff\"", + "x-runtime": "1.092912", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -102,8 +102,8 @@ } }, { - "Duration": 291, - "RecordedAt": "2022-08-24T13:53:08.052323-06:00", + "Duration": 197, + "RecordedAt": "2022-09-07T15:01:21.917162-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -115,10 +115,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_63a3988fcbf34aeb9e6e9ecb35e9fabf" + "Uri": "https://api.easypost.com/v2/shipments/shp_e95278087e6447819e11b84e95b7a5da" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:06Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780234\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5f666f9323e611ed8421ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a24b59e5767347f2a987445a16015770\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_62f0d9a448d44794a1139d53cc4592e8\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/ef21706f12f84a678fba9860ba4bad50.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_78e216e5e69d4ba4a014995f5b395dc1\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fede7a50abb64d1e9a8b9a52cee6fd18\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ccafa45a77da4ad68b8a9c2435e6119c\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3c08b76fc9394238889066179f2c270d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3c08b76fc9394238889066179f2c270d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_d915120f9ed74f16a7a009cd2ddd68b6\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780234\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:07Z\",\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2Q5MTUxMjBmOWVkNzRmMTZhN2EwMDljZDJkZGQ2OGI2\"},\"to_address\":{\"id\":\"adr_5f6403ed23e611ed8991ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5f666f9323e611ed8421ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5f6403ed23e611ed8991ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:07-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:20Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478702\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_394db0b82ef011eda867ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_8a9e78ee5b19405a970515e591dabfde\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_2f8aee172b4f46d6b4b3311b33628181\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/8552036546954479a77873125a8a21ff.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_783a02cffdcd44fe83f26839a616ee66\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4b7cde3ba26d4165a1ce7de1db82168a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6db359305c324be499792f1f2bee7321\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_61a211ab58774790a9acdaa41c11d15c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_61a211ab58774790a9acdaa41c11d15c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_32debde162104a55a2d47138a3a22eab\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478702\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:21Z\",\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:21Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:21Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzMyZGViZGUxNjIxMDRhNTVhMmQ0NzEzOGEzYTIyZWFi\"},\"to_address\":{\"id\":\"adr_394b63ff2ef011edb18cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_394db0b82ef011eda867ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_394b63ff2ef011edb18cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -133,15 +133,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b082630681a3e68bc20900769983", + "x-ep-request-uuid": "3bde9a29631906a1e79a6168002e9245", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"33a20b17367edecdcdd3df6437a9e659\"", - "x-runtime": "0.108054", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"279ba8c0ead26515cc79cfee645a7bfa\"", + "x-runtime": "0.132750", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -151,10 +151,10 @@ } }, { - "Duration": 246, - "RecordedAt": "2022-08-24T13:53:08.383835-06:00", + "Duration": 138, + "RecordedAt": "2022-09-07T15:01:22.112379-06:00", "Request": { - "Body": "{\"refund\":{\"carrier\":\"USPS\",\"tracking_codes\":[\"9400100109361134780234\"]}}", + "Body": "{\"refund\":{\"carrier\":\"USPS\",\"tracking_codes\":[\"9400100109361136478702\"]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -170,7 +170,7 @@ "Uri": "https://api.easypost.com/v2/refunds" }, "Response": { - "Body": "[{\"id\":\"rfnd_db6c5e7b608e4b06926b55cc421ed350\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"tracking_code\":\"9400100109361134780234\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\"}]", + "Body": "[{\"id\":\"rfnd_ae34d30d509748419616be9e7dbda891\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"tracking_code\":\"9400100109361136478702\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\"}]", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -185,15 +185,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b082630681a4e68bc209007699c2", + "x-ep-request-uuid": "3bde9a29631906a2e79a6168002e9274", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"a2543f0a2d635c4a714c973df9ec77fd\"", - "x-runtime": "0.064819", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"9cb97fb2c99186648d12880ca7d92ff9\"", + "x-runtime": "0.078614", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -203,8 +204,8 @@ } }, { - "Duration": 220, - "RecordedAt": "2022-08-24T13:53:08.625355-06:00", + "Duration": 113, + "RecordedAt": "2022-09-07T15:01:22.254978-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -216,10 +217,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/refunds/rfnd_db6c5e7b608e4b06926b55cc421ed350" + "Uri": "https://api.easypost.com/v2/refunds/rfnd_ae34d30d509748419616be9e7dbda891" }, "Response": { - "Body": "{\"id\":\"rfnd_db6c5e7b608e4b06926b55cc421ed350\",\"object\":\"Refund\",\"created_at\":\"2022-08-24T19:53:08Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"tracking_code\":\"9400100109361134780234\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_63a3988fcbf34aeb9e6e9ecb35e9fabf\"}", + "Body": "{\"id\":\"rfnd_ae34d30d509748419616be9e7dbda891\",\"object\":\"Refund\",\"created_at\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"tracking_code\":\"9400100109361136478702\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -234,15 +235,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b082630681a4e68bc209007699ef", + "x-ep-request-uuid": "3bde9a29631906a2e79a6168002e92a9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"e1cf0e89bff0386725962632a668e82c\"", - "x-runtime": "0.036493", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"abb217cec75cfba2f025a4f4c5e9a7de\"", + "x-runtime": "0.039896", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -250,5 +252,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/report/all.json b/EasyPost.Tests/cassettes/netstandard/report/all.json index 35cb74f32..85e167534 100644 --- a/EasyPost.Tests/cassettes/netstandard/report/all.json +++ b/EasyPost.Tests/cassettes/netstandard/report/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 388, - "RecordedAt": "2022-08-24T13:53:05.113876-06:00", + "Duration": 297, + "RecordedAt": "2022-09-07T15:01:18.684839-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,7 +16,7 @@ "Uri": "https://api.easypost.com/v2/reports/shipment?page_size=5" }, "Response": { - "Body": "{\"reports\":[{\"id\":\"shprep_54dc9e48ecc044daaa54c2e12fd14e72\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_3c2a718b29c84d87994f4c61017398db\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_68f38d81df8f42b785c1d52fa4b1334f\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-22T22:08:42Z\",\"updated_at\":\"2022-08-22T22:08:43Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_24fb777073274e9590c6ab7c2829db0a\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-22T22:08:42Z\",\"updated_at\":\"2022-08-22T22:08:42Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_cf85fc6936d84cf2b50feee0b9c59e1f\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-22T22:08:42Z\",\"updated_at\":\"2022-08-22T22:08:42Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}],\"has_more\":true}", + "Body": "{\"reports\":[{\"id\":\"shprep_70373198228f4e93aa355c7cef57e501\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_3ea7d09a25364d119068351c615e0ffd\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_153005afbb3a44108ab847681047ccb9\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_bb567872df434b938f0d485145032a28\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false},{\"id\":\"shprep_02ba2267976b4daf8ea3cc6385a612d4\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -31,16 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edbf630681a1f80039da0072f517", + "x-ep-request-uuid": "3bde9a266319069ee79a611f002e90f1", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"228ab05e5d0d20a917b961f210db54e0\"", - "x-runtime": "0.034668", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"82c081a5d320a5fdad9909c867d2dac7\"", + "x-runtime": "0.036253", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/report/create_report.json b/EasyPost.Tests/cassettes/netstandard/report/create_report.json index b8cbdb867..5d2f72fd4 100644 --- a/EasyPost.Tests/cassettes/netstandard/report/create_report.json +++ b/EasyPost.Tests/cassettes/netstandard/report/create_report.json @@ -1,7 +1,7 @@ [ { - "Duration": 396, - "RecordedAt": "2022-08-24T13:53:05.548648-06:00", + "Duration": 328, + "RecordedAt": "2022-09-07T15:01:19.05701-06:00", "Request": { "Body": "{\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/reports/shipment" }, "Response": { - "Body": "{\"id\":\"shprep_ad3e576ec5c146d5a4cf0c09a0e602b7\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", + "Body": "{\"id\":\"shprep_502aa28db8834b13bf7e03c0d23c8967\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edbe630681a1f7df4e390072f545", + "x-ep-request-uuid": "3bde9a266319069fe79a6124002e9124", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"56d9d64aff18f479dce7c5a1f2d7b199\"", - "x-runtime": "0.034363", + "ETag": "W/\"80d30a12a0bd05391e056a17e39ec5e8\"", + "x-runtime": "0.045542", "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/report/create_report_with_additional_columns.json b/EasyPost.Tests/cassettes/netstandard/report/create_report_with_additional_columns.json index 310f9c33d..6786ec6b8 100644 --- a/EasyPost.Tests/cassettes/netstandard/report/create_report_with_additional_columns.json +++ b/EasyPost.Tests/cassettes/netstandard/report/create_report_with_additional_columns.json @@ -1,7 +1,7 @@ [ { - "Duration": 484, - "RecordedAt": "2022-08-24T13:53:04.161651-06:00", + "Duration": 643, + "RecordedAt": "2022-09-07T15:01:17.762152-06:00", "Request": { "Body": "{\"additional_columns\":[\"from_name\",\"from_company\"],\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/reports/shipment" }, "Response": { - "Body": "{\"id\":\"shprep_3c2a718b29c84d87994f4c61017398db\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", + "Body": "{\"id\":\"shprep_3ea7d09a25364d119068351c615e0ffd\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d7630681a0f7f149bf007ed271", + "x-ep-request-uuid": "3bde9a296319069de79a60a2002e9068", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"5ed62707df43fbdcf6266e398ec0b719\"", - "x-runtime": "0.040551", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"27123e679e699ab985562c49cb8408b6\"", + "x-runtime": "0.042946", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/report/create_report_with_columns.json b/EasyPost.Tests/cassettes/netstandard/report/create_report_with_columns.json index 524a53768..210bf610c 100644 --- a/EasyPost.Tests/cassettes/netstandard/report/create_report_with_columns.json +++ b/EasyPost.Tests/cassettes/netstandard/report/create_report_with_columns.json @@ -1,7 +1,7 @@ [ { - "Duration": 214, - "RecordedAt": "2022-08-24T13:53:04.652424-06:00", + "Duration": 335, + "RecordedAt": "2022-09-07T15:01:18.337371-06:00", "Request": { "Body": "{\"columns\":[\"usps_zone\"],\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/reports/shipment" }, "Response": { - "Body": "{\"id\":\"shprep_54dc9e48ecc044daaa54c2e12fd14e72\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", + "Body": "{\"id\":\"shprep_70373198228f4e93aa355c7cef57e501\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dc630681a0f7db6ff8007ed2b8", + "x-ep-request-uuid": "3bde9a2c6319069ee79a60ff002e90c1", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"e00517945e327af610a88a949214130f\"", - "x-runtime": "0.035924", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"e9e9a05e7f9a74ed0ca2b48ec1320dea\"", + "x-runtime": "0.047023", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/report/retrieve_report.json b/EasyPost.Tests/cassettes/netstandard/report/retrieve_report.json index a4f5e645b..3318fc6a7 100644 --- a/EasyPost.Tests/cassettes/netstandard/report/retrieve_report.json +++ b/EasyPost.Tests/cassettes/netstandard/report/retrieve_report.json @@ -1,7 +1,7 @@ [ { - "Duration": 400, - "RecordedAt": "2022-08-24T13:53:05.976763-06:00", + "Duration": 284, + "RecordedAt": "2022-09-07T15:01:19.363548-06:00", "Request": { "Body": "{\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/reports/shipment" }, "Response": { - "Body": "{\"id\":\"shprep_8373ee9408954ed49cca161bb44421ac\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", + "Body": "{\"id\":\"shprep_de176ac8c1c34bb997c0dbb187f6208b\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"new\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc4630681a1f7df41d60072f56d", + "x-ep-request-uuid": "3bde9a276319069fe79a6142002e9148", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"f6245d6e854b84057b4b5629f895d55b\"", - "x-runtime": "0.042401", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"51f3724bd83938ef90c3ea17d054e63f\"", + "x-runtime": "0.026787", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 211, - "RecordedAt": "2022-08-24T13:53:06.222738-06:00", + "Duration": 92, + "RecordedAt": "2022-09-07T15:01:19.475107-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/reports/shprep_8373ee9408954ed49cca161bb44421ac" + "Uri": "https://api.easypost.com/v2/reports/shprep_de176ac8c1c34bb997c0dbb187f6208b" }, "Response": { - "Body": "{\"id\":\"shprep_8373ee9408954ed49cca161bb44421ac\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", + "Body": "{\"id\":\"shprep_de176ac8c1c34bb997c0dbb187f6208b\",\"object\":\"ShipmentReport\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"start_date\":\"2022-04-12\",\"end_date\":\"2022-04-12\",\"mode\":\"test\",\"status\":\"empty\",\"url\":null,\"url_expires_at\":null,\"include_children\":false}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc4630681a2f7df41d60072f582", + "x-ep-request-uuid": "3bde9a276319069fe79a6142002e9153", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"993d39cc3e9ef7bbff658108643f86b3\"", - "x-runtime": "0.031578", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"d5e088a87a7f6e5bf1534363b8292d7a\"", + "x-runtime": "0.031194", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -99,5 +99,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/scan_form/all.json b/EasyPost.Tests/cassettes/netstandard/scan_form/all.json index 1f6df78e8..8c1d2e437 100644 --- a/EasyPost.Tests/cassettes/netstandard/scan_form/all.json +++ b/EasyPost.Tests/cassettes/netstandard/scan_form/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 613, - "RecordedAt": "2022-08-24T13:53:06.153029-06:00", + "Duration": 325, + "RecordedAt": "2022-09-07T15:01:19.667021-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,7 +16,7 @@ "Uri": "https://api.easypost.com/v2/scan_forms?page_size=5" }, "Response": { - "Body": "{\"scan_forms\":[{\"id\":\"sf_cff634d8d7884486ba6c5f55916a00a3\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"tracking_codes\":[\"9400100109361134780128\"],\"address\":{\"id\":\"adr_5dd49aca23e611ed8908ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220824/c1c07a919cd3418380d32e203a27ff82.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_a5747d4112f745dcb5bb61615215a554\",\"confirmation\":null},{\"id\":\"sf_f9c852c80a4544f58c9065a42916947f\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-22T22:09:23Z\",\"updated_at\":\"2022-08-22T22:09:24Z\",\"tracking_codes\":[\"9400100109361134350253\"],\"address\":{\"id\":\"adr_fc3b2ea2226611ed927bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:08:43-06:00\",\"updated_at\":\"2022-08-22T16:08:43-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220822/9b993a30ce734e8285d6a69de0e62840.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_b4b08bb4923944de85eadfde51e45416\",\"confirmation\":null},{\"id\":\"sf_22406e8ce6d44f19a0169485672cce67\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-22T22:08:44Z\",\"updated_at\":\"2022-08-22T22:08:44Z\",\"tracking_codes\":[\"9400100109361134350161\"],\"address\":{\"id\":\"adr_fc796749226611ed9b0aac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:08:43-06:00\",\"updated_at\":\"2022-08-22T16:08:43-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220822/29344eabb0454bcd96559478279204b1.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_ac05d79464894143a17c4544dbd518de\",\"confirmation\":null},{\"id\":\"sf_10dac2e6e0774fdfa220bd67f139f673\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-22T22:08:42Z\",\"updated_at\":\"2022-08-22T22:08:42Z\",\"tracking_codes\":[\"9400100109361134350086\"],\"address\":{\"id\":\"adr_fb4bd629226611ed9d3bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:08:41-06:00\",\"updated_at\":\"2022-08-22T16:08:41-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220822/4c16a6f85a2b494a890adbe734da9529.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_b88c0e6cceca49faaf4df6ae7dca497d\",\"confirmation\":null},{\"id\":\"sf_3f3f4d68c4f64dca860266709e480692\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-22T22:08:00Z\",\"updated_at\":\"2022-08-22T22:08:00Z\",\"tracking_codes\":[\"9400100109361134349882\"],\"address\":{\"id\":\"adr_ca98336d226611ed8e17ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-22T16:07:19-06:00\",\"updated_at\":\"2022-08-22T16:07:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220822/bbbed51db27e4b589550c2f0d2353636.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_ae4a61a5afba489ab5e92b99d938c3cd\",\"confirmation\":null}],\"has_more\":true}", + "Body": "{\"scan_forms\":[{\"id\":\"sf_bb476c78992e4a49a80a59c2a61748ac\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"tracking_codes\":[\"9400100109361136478627\"],\"address\":{\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/7b6262eee31646e9ba5ddb7a21dad9a3.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_1b2b60752ffc43a7b1a11a22e2e25d06\",\"confirmation\":null},{\"id\":\"sf_3c69ed79f08a47c89629e2ba869f32d1\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:57:52Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"tracking_codes\":[\"9400100109361136478313\"],\"address\":{\"id\":\"adr_b11c781b2eef11ed8ea1ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:57:32-06:00\",\"updated_at\":\"2022-09-07T14:57:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/a6ae209c0de246c087ff1cc87f408b27.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_edd16069b9134894ba1524fbcbda475b\",\"confirmation\":null},{\"id\":\"sf_7b526727dffa45ccbcab334a712214a0\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"tracking_codes\":[\"9400100109361136477866\"],\"address\":{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/776bd5d92dbb4fc5b9f5bf175f7c295c.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_8b5d36e64e024bdf967e0e6b9ee42234\",\"confirmation\":null},{\"id\":\"sf_7c0f64a979b1489793d687dbd1845f5c\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_codes\":[\"9400100109361136477774\"],\"address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/eb1ac305dc5a41b0be1b643810782fc2.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_e5c80887bdab48d5a4002504c5200122\",\"confirmation\":null},{\"id\":\"sf_6e9d576c6098475b9787ce35bffccaf5\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:29Z\",\"updated_at\":\"2022-09-07T20:53:29Z\",\"tracking_codes\":[\"9400100109361136477637\"],\"address\":{\"id\":\"adr_1a1e64852eef11edaf5fac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:18-06:00\",\"updated_at\":\"2022-09-07T14:53:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/cd8a81920d6f4413b8efcb12494b7c86.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_93ef92a77be249239c94295b64ab7fdd\",\"confirmation\":null}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -31,15 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc4630681a1f7a6cf780072f56e", + "x-ep-request-uuid": "3bde9a276319069fe79a6160002e9163", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"82a1911307080dfdd98e608e8cb9731c\"", - "x-runtime": "0.214619", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"d885b8d082dacb9493ce795438d45951\"", + "x-runtime": "0.044581", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/scan_form/create.json b/EasyPost.Tests/cassettes/netstandard/scan_form/create.json index e02beb498..06b1aed1c 100644 --- a/EasyPost.Tests/cassettes/netstandard/scan_form/create.json +++ b/EasyPost.Tests/cassettes/netstandard/scan_form/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 247, - "RecordedAt": "2022-08-24T13:53:07.440696-06:00", + "Duration": 215, + "RecordedAt": "2022-09-07T15:01:20.915464-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:06Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780227\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5f4c8e9d23e611ed9c39ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b4abc36a88ee4921afcc96fd0f1eb2a6\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_56ea62e6ce3b4f4d80f566de51b2e1b3\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53: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/20220824/b187b1c7e4454e3880ac79580330e0eb.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_30f10180281f4a00b98c028ac147227d\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d10fc1251fed4476b234eb06a88dcb6f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5649c880cd9d4dcc8af42c72f33cd448\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8a3c04872bef4791ad498a77439450e3\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:06Z\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d10fc1251fed4476b234eb06a88dcb6f\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_22bfa16cae1a4946babd180ec954df42\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780227\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzIyYmZhMTZjYWUxYTQ5NDZiYWJkMTgwZWM5NTRkZjQy\"},\"to_address\":{\"id\":\"adr_5f4a63d423e611ed8419ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5f4c8e9d23e611ed9c39ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5f4a63d423e611ed8419ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_4280f685356349d1be4a68806266aad9\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:20Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478696\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6f1bbee31f954648872d09b1643bb1ed\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f2829eb6e9de4569aef8d4a9befdaf11\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:20Z\",\"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/20220907/c6f4e89d683c45e58a23363f3b88872e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_18a484c7d8134f11bc607fe5bb7712ef\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bf153d64c50f4fb092a16df07377845e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c14bf4aa7a4945efb8a8f3df156495be\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9540c0f9934e42d092bbbb2fd756aae6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_18a484c7d8134f11bc607fe5bb7712ef\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_873d9e5891a84feb9de58a5aefd7105c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478696\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzg3M2Q5ZTU4OTFhODRmZWI5ZGU1OGE1YWVmZDcxMDVj\"},\"to_address\":{\"id\":\"adr_38f02d412ef011ed9fc4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38f02d412ef011ed9fc4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b087630681a2f7a53337007698b8", + "x-ep-request-uuid": "3bde9a26631906a0e79a6163002e9186", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_4280f685356349d1be4a68806266aad9", - "ETag": "W/\"52c5d48b597b03ce3c3b1d7597fd36aa\"", - "x-runtime": "0.890094", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/shipments/shp_4db994e36a6d4a61b51c934ecaf720e6", + "ETag": "W/\"87440103adc8aa859ce516a6f098b319\"", + "x-runtime": "0.931206", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 423, - "RecordedAt": "2022-08-24T13:53:07.935466-06:00", + "Duration": 509, + "RecordedAt": "2022-09-07T15:01:21.488003-06:00", "Request": { - "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:06Z\",\"id\":\"adr_5f4a63d423e611ed8419ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:06Z\",\"id\":\"adr_5f4c8e9d23e611ed9c39ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:06Z\",\"id\":\"prcl_b4abc36a88ee4921afcc96fd0f1eb2a6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:07Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/b187b1c7e4454e3880ac79580330e0eb.png\",\"created_at\":\"2022-08-24T19:53:07Z\",\"id\":\"pl_56ea62e6ce3b4f4d80f566de51b2e1b3\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"created_at\":\"2022-08-24T19:53:06Z\",\"id\":\"rate_30f10180281f4a00b98c028ac147227d\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"created_at\":\"2022-08-24T19:53:06Z\",\"id\":\"rate_d10fc1251fed4476b234eb06a88dcb6f\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"created_at\":\"2022-08-24T19:53:06Z\",\"id\":\"rate_5649c880cd9d4dcc8af42c72f33cd448\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"created_at\":\"2022-08-24T19:53:06Z\",\"id\":\"rate_8a3c04872bef4791ad498a77439450e3\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:06Z\",\"id\":\"adr_5f4c8e9d23e611ed9c39ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"created_at\":\"2022-08-24T19:53:07Z\",\"id\":\"rate_d10fc1251fed4476b234eb06a88dcb6f\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:06Z\",\"id\":\"adr_5f4a63d423e611ed8419ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:06Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzIyYmZhMTZjYWUxYTQ5NDZiYWJkMTgwZWM5NTRkZjQy\",\"shipment_id\":\"shp_4280f685356349d1be4a68806266aad9\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780227\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:07Z\",\"id\":\"trk_22bfa16cae1a4946babd180ec954df42\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780227\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:06Z\",\"id\":\"shp_4280f685356349d1be4a68806266aad9\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:07Z\",\"object\":\"Shipment\"}]}}", + "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"adr_38f02d412ef011ed9fc4ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"prcl_6f1bbee31f954648872d09b1643bb1ed\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:20Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/c6f4e89d683c45e58a23363f3b88872e.png\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"pl_f2829eb6e9de4569aef8d4a9befdaf11\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"rate_18a484c7d8134f11bc607fe5bb7712ef\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"rate_bf153d64c50f4fb092a16df07377845e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"rate_c14bf4aa7a4945efb8a8f3df156495be\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"rate_9540c0f9934e42d092bbbb2fd756aae6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"rate_18a484c7d8134f11bc607fe5bb7712ef\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"adr_38f02d412ef011ed9fc4ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzg3M2Q5ZTU4OTFhODRmZWI5ZGU1OGE1YWVmZDcxMDVj\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478696\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"trk_873d9e5891a84feb9de58a5aefd7105c\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478696\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Shipment\"}]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6040" + "Content-Length": "6016" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/scan_forms" }, "Response": { - "Body": "{\"id\":\"sf_1ed1f7ff4ec1464b8eb2be7842b3aac8\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:07Z\",\"updated_at\":\"2022-08-24T19:53:08Z\",\"tracking_codes\":[\"9400100109361134780227\"],\"address\":{\"id\":\"adr_5f4c8e9d23e611ed9c39ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:06-06:00\",\"updated_at\":\"2022-08-24T13:53:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220824/6eea6fc3bb264996b16364940771a567.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_41b486c7afb740188572bfb336b03f45\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_57314bd186fc4eec84608a37d0149cc0\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"tracking_codes\":[\"9400100109361136478696\"],\"address\":{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/d9afb8792a2941ab85a43299cb4cb198.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_c77f988e69e345f58a7e156d2181a3a0\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,16 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b087630681a3f7a5333700769969", + "x-ep-request-uuid": "3bde9a26631906a1e79a6163002e9203", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"62d9affba153b499e4730c6040e357e4\"", - "x-runtime": "0.238045", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"3773a53ff828fe02d61cd7cd176e59c1\"", + "x-runtime": "0.444383", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -104,5 +103,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/scan_form/retrieve.json b/EasyPost.Tests/cassettes/netstandard/scan_form/retrieve.json index be02c2594..907ac8ead 100644 --- a/EasyPost.Tests/cassettes/netstandard/scan_form/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/scan_form/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 392, - "RecordedAt": "2022-08-24T13:53:04.973296-06:00", + "Duration": 521, + "RecordedAt": "2022-09-07T15:01:18.615901-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-24T19:53:04Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780128\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5dd49aca23e611ed8908ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_190341ff6a3941be9d8cb5675fb00952\",\"object\":\"Parcel\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_af765c0eb4624dc28361491170a17a3f\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:04Z\",\"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/20220824/61252edb66024b6c96629747ba50e54b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_b293ab6305b2487bb84ab7b7cc2ca70b\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a65aa2957cae430490decaf46bc65931\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8aa1bec1b8cd4c949dec622a8d6b46a8\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_86ee723c161c4276bf4a9f4ec95fecf0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_86ee723c161c4276bf4a9f4ec95fecf0\",\"object\":\"Rate\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_2e4fcd6605694bf8b7a48a5835f8c736\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780128\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzJlNGZjZDY2MDU2OTRiZjhiN2E0OGE1ODM1ZjhjNzM2\"},\"to_address\":{\"id\":\"adr_5dd2d11a23e611ed83d3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5dd49aca23e611ed8908ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5dd2d11a23e611ed83d3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478627\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_32e5e94ede2a4d12a514016329d29056\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_d47947baf4b9434a891f93749dc2306c\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/ff21ee6bf7b842ef821bcfc2ce3b617e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_fe404a50d61e46fdbd71ee712996723b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d92f6c7e2fce4a6b85bebdf3ade6e20f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_abe8470a64164f2e8cc20158dc9cb98f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d3fe0782e498421ca6532776cdcb666b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d92f6c7e2fce4a6b85bebdf3ade6e20f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_8b7e0fa5458142259707f7a313e8617c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478627\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzhiN2UwZmE1NDU4MTQyMjU5NzA3ZjdhMzEzZTg2MTdj\"},\"to_address\":{\"id\":\"adr_37939abb2ef011ed9f56ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_37939abb2ef011ed9f56ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33de630681a0f7ffad9b007ed24a", + "x-ep-request-uuid": "3bde9a2c6319069de79a60e3002e9073", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_250a1b9bc16242ce9be822f162e24a26", - "ETag": "W/\"ae7f006382ae73d2939c00141897d271\"", - "x-runtime": "0.917154", + "Location": "/api/v2/shipments/shp_8827ad1858884cdda6375f0e8fa4dbab", + "ETag": "W/\"5a9ac054d4343b4b104f70d317d3cebc\"", + "x-runtime": "0.921738", "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 267, - "RecordedAt": "2022-08-24T13:53:05.392983-06:00", + "Duration": 440, + "RecordedAt": "2022-09-07T15:01:19.162168-06:00", "Request": { - "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"adr_5dd2d11a23e611ed83d3ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"adr_5dd49aca23e611ed8908ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"peel_and_return\":false},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"prcl_190341ff6a3941be9d8cb5675fb00952\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-24T19:53:04Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220824/61252edb66024b6c96629747ba50e54b.png\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"pl_af765c0eb4624dc28361491170a17a3f\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"rate_b293ab6305b2487bb84ab7b7cc2ca70b\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"rate_a65aa2957cae430490decaf46bc65931\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"rate_8aa1bec1b8cd4c949dec622a8d6b46a8\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"rate_86ee723c161c4276bf4a9f4ec95fecf0\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"adr_5dd49aca23e611ed8908ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"rate_86ee723c161c4276bf4a9f4ec95fecf0\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"adr_5dd2d11a23e611ed83d3ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzJlNGZjZDY2MDU2OTRiZjhiN2E0OGE1ODM1ZjhjNzM2\",\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361134780128\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-08-24T19:53:05Z\",\"id\":\"trk_2e4fcd6605694bf8b7a48a5835f8c736\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361134780128\",\"usps_zone\":\"1\",\"created_at\":\"2022-08-24T19:53:04Z\",\"id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"mode\":\"test\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"object\":\"Shipment\"}]}}", + "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_37939abb2ef011ed9f56ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"prcl_32e5e94ede2a4d12a514016329d29056\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:18Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/ff21ee6bf7b842ef821bcfc2ce3b617e.png\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"pl_d47947baf4b9434a891f93749dc2306c\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_fe404a50d61e46fdbd71ee712996723b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_d92f6c7e2fce4a6b85bebdf3ade6e20f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_abe8470a64164f2e8cc20158dc9cb98f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_d3fe0782e498421ca6532776cdcb666b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"rate_d92f6c7e2fce4a6b85bebdf3ade6e20f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_37939abb2ef011ed9f56ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzhiN2UwZmE1NDU4MTQyMjU5NzA3ZjdhMzEzZTg2MTdj\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478627\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"trk_8b7e0fa5458142259707f7a313e8617c\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478627\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Shipment\"}]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6040" + "Content-Length": "6016" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/scan_forms" }, "Response": { - "Body": "{\"id\":\"sf_cff634d8d7884486ba6c5f55916a00a3\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"tracking_codes\":[\"9400100109361134780128\"],\"address\":{\"id\":\"adr_5dd49aca23e611ed8908ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220824/c1c07a919cd3418380d32e203a27ff82.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_a5747d4112f745dcb5bb61615215a554\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_bb476c78992e4a49a80a59c2a61748ac\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"tracking_codes\":[\"9400100109361136478627\"],\"address\":{\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/7b6262eee31646e9ba5ddb7a21dad9a3.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_1b2b60752ffc43a7b1a11a22e2e25d06\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33de630681a1f7ffad9b007ed2ff", + "x-ep-request-uuid": "3bde9a2c6319069ee79a60e3002e9107", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6b0a77d901e6cf7d35b10e880aabda36\"", - "x-runtime": "0.217534", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"8936ab1bbf0b4bf7c2b323bf4584d41a\"", + "x-runtime": "0.373213", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -105,8 +105,8 @@ } }, { - "Duration": 74, - "RecordedAt": "2022-08-24T13:53:05.509583-06:00", + "Duration": 97, + "RecordedAt": "2022-09-07T15:01:19.308364-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -118,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/scan_forms/sf_cff634d8d7884486ba6c5f55916a00a3" + "Uri": "https://api.easypost.com/v2/scan_forms/sf_bb476c78992e4a49a80a59c2a61748ac" }, "Response": { - "Body": "{\"id\":\"sf_cff634d8d7884486ba6c5f55916a00a3\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"tracking_codes\":[\"9400100109361134780128\"],\"address\":{\"id\":\"adr_5dd49aca23e611ed8908ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-24T13:53:04-06:00\",\"updated_at\":\"2022-08-24T13:53:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220824/c1c07a919cd3418380d32e203a27ff82.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_a5747d4112f745dcb5bb61615215a554\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_bb476c78992e4a49a80a59c2a61748ac\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"tracking_codes\":[\"9400100109361136478627\"],\"address\":{\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/7b6262eee31646e9ba5ddb7a21dad9a3.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_1b2b60752ffc43a7b1a11a22e2e25d06\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -136,15 +136,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33de630681a1f7ffad9b007ed31d", + "x-ep-request-uuid": "3bde9a2c6319069fe79a60e3002e9140", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6b0a77d901e6cf7d35b10e880aabda36\"", - "x-runtime": "0.031297", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"8936ab1bbf0b4bf7c2b323bf4584d41a\"", + "x-runtime": "0.029008", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -152,5 +152,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/all.json b/EasyPost.Tests/cassettes/netstandard/shipment/all.json index 455f13d38..00080893e 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/all.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 952, - "RecordedAt": "2022-08-30T15:40:10.569983-06:00", + "Duration": 687, + "RecordedAt": "2022-09-07T15:01:23.533408-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/shipments?page_size=5" }, "Response": { - "Body": "{\"shipments\":[{\"created_at\":\"2022-08-30T21:40:06Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658051\",\"updated_at\":\"2022-08-30T21:40:07Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_50448c5828ac11edbc27ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_93f3c2d6f08c440d82df411828e632bf\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_fcc0417cc2fe4104aa464035925750e6\",\"created_at\":\"2022-08-30T21:40:07Z\",\"updated_at\":\"2022-08-30T21:40:09Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:40: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/20220830/fca547381c0f405cafd0021fb2a56ed6.png\",\"label_pdf_url\":null,\"label_zpl_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20220830/0f53044e70b44895a0ac96e58e4f8983.zpl\",\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_4bd430bf3a564ad381f0e78a1c410173\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_07adb2e458b24be3b44d600ea4fffa86\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f921d743c70944dba55eadd5850b044a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ef750a7a54ea456fa76d29e73be61578\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f921d743c70944dba55eadd5850b044a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:07Z\",\"updated_at\":\"2022-08-30T21:40:07Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_db3489d755a84b06bd6b226ec00907a0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658051\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:40:07Z\",\"updated_at\":\"2022-08-30T21:40:07Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:40:07Z\",\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:40:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:17:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2RiMzQ4OWQ3NTVhODRiMDZiZDZiMjI2ZWMwMDkwN2Ew\"},\"to_address\":{\"id\":\"adr_504067bb28ac11edbc24ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_50448c5828ac11edbc27ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_504067bb28ac11edbc24ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"object\":\"Shipment\"},{\"created_at\":\"2022-08-30T21:39:41Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658020\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4173f0ac28ac11ed8685ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:41-06:00\",\"updated_at\":\"2022-08-30T15:39:41-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a2a06ecf3b9c44b2b10f1d288efc3bb4\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:41Z\",\"updated_at\":\"2022-08-30T21:39:41Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_3d48a539c24b4b9f812f6cb39dcb84dc\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39:42Z\",\"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/20220830/4e6abd3179e94a8284a18b2819d8f2d4.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_97d29dbb92bc45d09b782a4147606420\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a3b0608063a34d09b2ad3fba1a4cdf87\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_17ff8ca37073419f923c0c1621522681\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b877d9c0affa405bb07f92deeb2a7435\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3b18c4226dde47e1963b7b118cf90b11\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_b1eb3de1a8e34f779ab27f2b3e1a40cc\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658020\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:39:42Z\",\"updated_at\":\"2022-08-30T21:39:42Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:39:42Z\",\"shipment_id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:39:42Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:16:42Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2IxZWIzZGUxYThlMzRmNzc5YWIyN2YyYjNlMWE0MGNj\"},\"to_address\":{\"id\":\"adr_4172130828ac11ed9582ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:41-06:00\",\"updated_at\":\"2022-08-30T15:39:41-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_4173f0ac28ac11ed8685ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:41-06:00\",\"updated_at\":\"2022-08-30T15:39:41-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_4172130828ac11ed9582ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:41-06:00\",\"updated_at\":\"2022-08-30T15:39:41-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b432e9988b8b44bd89f46dca02116d0e\",\"object\":\"Shipment\"},{\"created_at\":\"2022-08-30T21:39:40Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658013\",\"updated_at\":\"2022-08-30T21:39:41Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4084037428ac11ed9542ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:40-06:00\",\"updated_at\":\"2022-08-30T15:39:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6f985c59c707439092df63eefca0c457\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_4564465238c546c483c834ab408b1a5c\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39:40Z\",\"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/20220830/ec637f1147c540ebac1ded7ca8a9fe3d.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_4d9c72eac1d14b26a00361458c19fb77\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_964621afc3024eb58feb6f776551dcc6\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_24d7debca81544a5aa70968f8a9b13ec\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e0ca6fb6c02640549147fa867b5e49d0\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_4d9c72eac1d14b26a00361458c19fb77\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:40Z\",\"updated_at\":\"2022-08-30T21:39:40Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_1838b61432504bb5800918f9e1c847d6\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658013\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:39:41Z\",\"updated_at\":\"2022-08-30T21:39:41Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:39:41Z\",\"shipment_id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:39:41Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:16:41Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzE4MzhiNjE0MzI1MDRiYjU4MDA5MThmOWUxYzg0N2Q2\"},\"to_address\":{\"id\":\"adr_40825b9528ac11ed8124ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:40-06:00\",\"updated_at\":\"2022-08-30T15:39:40-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_4084037428ac11ed9542ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:40-06:00\",\"updated_at\":\"2022-08-30T15:39:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_40825b9528ac11ed8124ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:40-06:00\",\"updated_at\":\"2022-08-30T15:39:40-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_53cad978ff654727bb3b7888917bdad3\",\"object\":\"Shipment\"},{\"created_at\":\"2022-08-30T21:39:38Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658006\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3f956f8828ac11edb717ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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_7275027744484a0f8d8a3eb04e5d5ec0\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0ec848007b1e47e597789b5fef940639\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39: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/20220830/d31be13a020e445db0b8deebf9b19c90.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_5e6a7a6f9b284c958470570f764694bd\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c88bb469899d48c495ce2905425f586e\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6b97e65525e7485c9172cd2a8bf880db\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f49b74eab23c4e1ba41eb14184384e42\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:38Z\",\"updated_at\":\"2022-08-30T21:39:38Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f49b74eab23c4e1ba41eb14184384e42\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:39Z\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_90e673a44f1048499afec00695fdb048\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658006\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:39:39Z\",\"updated_at\":\"2022-08-30T21:39:39Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:39:39Z\",\"shipment_id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:39:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:16:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzkwZTY3M2E0NGYxMDQ4NDk5YWZlYzAwNjk1ZmRiMDQ4\"},\"to_address\":{\"id\":\"adr_3f93381c28ac11edb715ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3f956f8828ac11edb717ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3f93381c28ac11edb715ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:38-06:00\",\"updated_at\":\"2022-08-30T15:39:38-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_594b42da33c74be587c1755db60e7b25\",\"object\":\"Shipment\"},{\"created_at\":\"2022-08-30T21:39:35Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361135657993\",\"updated_at\":\"2022-08-30T21:39:36Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_08223b4b495746ac9b1e39d4aa1dee2e\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_0e4be116e56049d4b4597f462d3af8d7\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3d8e9d5b28ac11ed9477ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_bc673e1e9f7f47aebd4ff02e371032bd\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_11f6d0cb1a174596a7d4c370b9955983\",\"created_at\":\"2022-08-30T21:39:36Z\",\"updated_at\":\"2022-08-30T21:39:36Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:39: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/20220830/1f17cdd1cf2f4635a8657e9cda68f200.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_a8423f9a278c4d738d4b4dac411647ed\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f13dfede20b2463eb4e4aa20e2e27d74\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_77ab40e58e0b403dbde09eae9d7234b6\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f73577a9f57a43dcad19bc61d6a7d096\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:35Z\",\"updated_at\":\"2022-08-30T21:39:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f73577a9f57a43dcad19bc61d6a7d096\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:39:36Z\",\"updated_at\":\"2022-08-30T21:39:36Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ca34471ac651430bb9a597d976455d68\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135657993\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:39:36Z\",\"updated_at\":\"2022-08-30T21:39:36Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:39:36Z\",\"shipment_id\":\"shp_c03459adb88944f7a64d550cee464789\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:39:36Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:16:36Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2NhMzQ0NzFhYzY1MTQzMGJiOWE1OTdkOTc2NDU1ZDY4\"},\"to_address\":{\"id\":\"adr_3d8cfe7328ac11ed8076ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:36-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_3d8e9d5b28ac11ed9477ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3d8cfe7328ac11ed8076ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:39:35-06:00\",\"updated_at\":\"2022-08-30T15:39:36-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c03459adb88944f7a64d550cee464789\",\"object\":\"Shipment\"}],\"has_more\":true}", + "Body": "{\"shipments\":[{\"created_at\":\"2022-09-07T21:01:21Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478719\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"batch_id\":\"batch_47429f3ed64f4e07bd5237709385443b\",\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_399374ec2ef011eda878ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b7dbc90b85a1454d85316e26a54be5bf\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6c72a9949cf748aa815722a753e51792\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/7d60c4ea2e7241dfa629ba03be1a3fae.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_f5f26e332bef447892ff5e211af34433\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f91c12861ed24c138703bc431148ee5b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_40092d60ac2d4750a221950b1470e4b0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1c37ae9032164cdebd16ffc24434a770\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f5f26e332bef447892ff5e211af34433\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_0fedf07401c2452ebdedbf7cc2f2fcc6\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478719\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:22Z\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:22Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:22Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzBmZWRmMDc0MDFjMjQ1MmViZGVkYmY3Y2MyZjJmY2M2\"},\"to_address\":{\"id\":\"adr_399186bf2ef011eda877ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_399374ec2ef011eda878ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_399186bf2ef011eda877ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"object\":\"Shipment\"},{\"created_at\":\"2022-09-07T21:01:20Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478702\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_394db0b82ef011eda867ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_8a9e78ee5b19405a970515e591dabfde\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_2f8aee172b4f46d6b4b3311b33628181\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/8552036546954479a77873125a8a21ff.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_783a02cffdcd44fe83f26839a616ee66\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4b7cde3ba26d4165a1ce7de1db82168a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6db359305c324be499792f1f2bee7321\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_61a211ab58774790a9acdaa41c11d15c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":\"submitted\",\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_61a211ab58774790a9acdaa41c11d15c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_32debde162104a55a2d47138a3a22eab\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478702\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:21Z\",\"shipment_id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:21Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:21Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzMyZGViZGUxNjIxMDRhNTVhMmQ0NzEzOGEzYTIyZWFi\"},\"to_address\":{\"id\":\"adr_394b63ff2ef011edb18cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_394db0b82ef011eda867ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_394b63ff2ef011edb18cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e95278087e6447819e11b84e95b7a5da\",\"object\":\"Shipment\"},{\"created_at\":\"2022-09-07T21:01:20Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478696\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"batch_id\":\"batch_c77f988e69e345f58a7e156d2181a3a0\",\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6f1bbee31f954648872d09b1643bb1ed\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f2829eb6e9de4569aef8d4a9befdaf11\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:20Z\",\"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/20220907/c6f4e89d683c45e58a23363f3b88872e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_18a484c7d8134f11bc607fe5bb7712ef\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bf153d64c50f4fb092a16df07377845e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c14bf4aa7a4945efb8a8f3df156495be\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9540c0f9934e42d092bbbb2fd756aae6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":{\"id\":\"sf_57314bd186fc4eec84608a37d0149cc0\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"tracking_codes\":[\"9400100109361136478696\"],\"address\":{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/d9afb8792a2941ab85a43299cb4cb198.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_c77f988e69e345f58a7e156d2181a3a0\",\"confirmation\":null},\"selected_rate\":{\"id\":\"rate_18a484c7d8134f11bc607fe5bb7712ef\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_873d9e5891a84feb9de58a5aefd7105c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478696\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:21Z\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:21Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:21Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzg3M2Q5ZTU4OTFhODRmZWI5ZGU1OGE1YWVmZDcxMDVj\"},\"to_address\":{\"id\":\"adr_38f02d412ef011ed9fc4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38f02d412ef011ed9fc4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"object\":\"Shipment\"},{\"created_at\":\"2022-09-07T21:01:19Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478689\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38dd776b2ef011edb16dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_eb782e276d844d31a84787e5daf04de3\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ff0bdedf8f8e44d8a249184483ee6ead\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:20Z\",\"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/20220907/21e4f342dfb1434e94ae3f87df25ea49.png\",\"label_pdf_url\":null,\"label_zpl_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20220907/e5c86c1ccb9049cba0c94a43be4cc13d.zpl\",\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c3ef0912d8a448dbbfdaea7c73ad574d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eec5660948094dc892b2d6fd6fa776bb\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_53cf624a82ec4e94ad7751099a67e8c1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d7bddbf5e0be48cb84a3fee043624cdc\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d7bddbf5e0be48cb84a3fee043624cdc\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_238c9db6180f4ee0a950ed2e04dd5e6e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478689\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:21Z\",\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:21Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:21Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzIzOGM5ZGI2MTgwZjRlZTBhOTUwZWQyZTA0ZGQ1ZTZl\"},\"to_address\":{\"id\":\"adr_38db04142ef011eda5f3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38dd776b2ef011edb16dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38db04142ef011eda5f3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"object\":\"Shipment\"},{\"created_at\":\"2022-09-07T21:01:19Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478672\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38c848012ef011eda835ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a333e59470234cdfb853162e6d26951d\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0d4ffe57f0774ea18dc519335b211d49\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:20Z\",\"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/20220907/1a3333fb73da454689cd7c3fd0c1c1e4.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_fcace2cc77a54fee9720a51984bddf8a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2c8d4ea142f2413f893cf3d69aeb841f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_32936b37efd94b769412949d2c202039\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_294edd1ead4940fd9f492b203b0e831c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_2c8d4ea142f2413f893cf3d69aeb841f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_d0d3d4a41efa4ec8a383ed00a7ae3596\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478672\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:20Z\",\"shipment_id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2QwZDNkNGE0MWVmYTRlYzhhMzgzZWQwMGE3YWUzNTk2\"},\"to_address\":{\"id\":\"adr_38c620f12ef011ed9fb6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38c848012ef011eda835ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38c620f12ef011ed9fb6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e9a965843eb446e989905623ab26b44a\",\"object\":\"Shipment\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "42073" + "Content-Length": "41601" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,15 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b4630e83b9e788d52200135b74", + "x-ep-request-uuid": "3bde9a2b631906a3e79a647f002e92f6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"941b86817b809df28e9f6427f582d02a\"", - "x-runtime": "0.521290", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"b40365be3672ce55c073ef63db5da693\"", + "x-runtime": "0.417642", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/buy.json b/EasyPost.Tests/cassettes/netstandard/shipment/buy.json index 7b759c930..e43831e1a 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/buy.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/buy.json @@ -1,7 +1,7 @@ [ { - "Duration": 67, - "RecordedAt": "2022-08-30T15:40:13.693929-06:00", + "Duration": 794, + "RecordedAt": "2022-09-07T15:01:26.465596-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:13Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:40:13Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_d479e5feaeb5472283b97218c620a549\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_a178de50247f403eab99aeb06dff33a1\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_5439702e28ac11ed89f2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:13-06:00\",\"updated_at\":\"2022-08-30T15:40:13-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_958682be2a6b4dbc8f25daf3c708f93a\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_b2b43863dca34d1b8dd79d3521648f0f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_48423056192842358de2f894bb09a6ce\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b42297aa0cff476f9801efa585730028\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_43c59202bd8144b8aaa8d60ac43d2d59\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5437ea8528ac11edbd84ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:13-06:00\",\"updated_at\":\"2022-08-30T15:40:13-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5439702e28ac11ed89f2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:13-06:00\",\"updated_at\":\"2022-08-30T15:40:13-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5437ea8528ac11edbd84ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:13-06:00\",\"updated_at\":\"2022-08-30T15:40:13-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:26Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T21:01:26Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b495291ba81e446f9570514389faaacb\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_5762ba59190542b2b273d8ec822cf0c6\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3c7e2d7d2ef011eda935ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:26-06:00\",\"updated_at\":\"2022-09-07T15:01:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_9d7e9544e4334cbf96e48790b6b40416\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_f30cfd0b2b6e473bb5b550e2fd05693d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f5d3c51e18e04c0f99a4f98fa94a465a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_83c40f35709e4c188f7c4c423ea76553\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_34f9fd29f768458fae22cf7da24b854f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3c7c75a52ef011edb26eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:26-06:00\",\"updated_at\":\"2022-09-07T15:01:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3c7e2d7d2ef011eda935ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:26-06:00\",\"updated_at\":\"2022-09-07T15:01:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3c7c75a52ef011edb26eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:26-06:00\",\"updated_at\":\"2022-09-07T15:01:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96af630e83bde788d52500135cb3", + "x-ep-request-uuid": "3bde9a2c631906a5e79a64a0002e9453", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_219b4477306c450185271cadb3fd05d9", - "ETag": "W/\"636f07e43612537a131e3faff10a0c9d\"", - "x-runtime": "0.649413", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_8af73277658a4e54847bc9a0536b37d4", + "ETag": "W/\"f4b841e0e113e46f0968a6be3e4a3aee\"", + "x-runtime": "0.527571", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,10 +53,10 @@ } }, { - "Duration": 964, - "RecordedAt": "2022-08-30T15:40:14.704544-06:00", + "Duration": 941, + "RecordedAt": "2022-09-07T15:01:27.461937-06:00", "Request": { - "Body": "{\"rate\":{\"id\":\"rate_48423056192842358de2f894bb09a6ce\"},\"insurance\":\"\",\"carbon_offset\":false}", + "Body": "{\"rate\":{\"id\":\"rate_83c40f35709e4c188f7c4c423ea76553\"},\"insurance\":\"\",\"carbon_offset\":false}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_219b4477306c450185271cadb3fd05d9/buy" + "Uri": "https://api.easypost.com/v2/shipments/shp_8af73277658a4e54847bc9a0536b37d4/buy" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:13Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658068\",\"updated_at\":\"2022-08-30T21:40:14Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_d479e5feaeb5472283b97218c620a549\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_a178de50247f403eab99aeb06dff33a1\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_5439702e28ac11ed89f2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:13-06:00\",\"updated_at\":\"2022-08-30T15:40:13-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_958682be2a6b4dbc8f25daf3c708f93a\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f9a792e56882441eb15f968c1524db9c\",\"created_at\":\"2022-08-30T21:40:14Z\",\"updated_at\":\"2022-08-30T21:40:14Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:40: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/20220830/d69a1d5874434cf98ee48c5679b85763.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_b2b43863dca34d1b8dd79d3521648f0f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_48423056192842358de2f894bb09a6ce\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b42297aa0cff476f9801efa585730028\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_43c59202bd8144b8aaa8d60ac43d2d59\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:13Z\",\"updated_at\":\"2022-08-30T21:40:13Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_48423056192842358de2f894bb09a6ce\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:14Z\",\"updated_at\":\"2022-08-30T21:40:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_4b5ce00a0a6e448a835d51d871209eca\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658068\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:40:14Z\",\"updated_at\":\"2022-08-30T21:40:14Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzRiNWNlMDBhMGE2ZTQ0OGE4MzVkNTFkODcxMjA5ZWNh\"},\"to_address\":{\"id\":\"adr_5437ea8528ac11edbd84ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:13-06:00\",\"updated_at\":\"2022-08-30T15:40:14-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5439702e28ac11ed89f2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:13-06:00\",\"updated_at\":\"2022-08-30T15:40:13-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5437ea8528ac11edbd84ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:13-06:00\",\"updated_at\":\"2022-08-30T15:40:14-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_219b4477306c450185271cadb3fd05d9\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:26Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478740\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b495291ba81e446f9570514389faaacb\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_5762ba59190542b2b273d8ec822cf0c6\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3c7e2d7d2ef011eda935ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:26-06:00\",\"updated_at\":\"2022-09-07T15:01:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_9d7e9544e4334cbf96e48790b6b40416\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6ede0c3ec0ce4a939d92314d05a275bf\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/8898e0460afc4135816506fa7a360be9.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_f30cfd0b2b6e473bb5b550e2fd05693d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f5d3c51e18e04c0f99a4f98fa94a465a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_83c40f35709e4c188f7c4c423ea76553\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_34f9fd29f768458fae22cf7da24b854f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_83c40f35709e4c188f7c4c423ea76553\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_2fae2b36f1f94253a40235e2c1bdf67a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478740\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzJmYWUyYjM2ZjFmOTQyNTNhNDAyMzVlMmMxYmRmNjdh\"},\"to_address\":{\"id\":\"adr_3c7c75a52ef011edb26eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:26-06:00\",\"updated_at\":\"2022-09-07T15:01:26-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3c7e2d7d2ef011eda935ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:26-06:00\",\"updated_at\":\"2022-09-07T15:01:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3c7c75a52ef011edb26eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:26-06:00\",\"updated_at\":\"2022-09-07T15:01:26-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_8af73277658a4e54847bc9a0536b37d4\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,13 +87,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96af630e83bde788d52500135dfb", + "x-ep-request-uuid": "3bde9a2c631906a6e79a64a0002e94a3", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"17e135d8f54ecf64bfb4b4214212d3c3\"", - "x-runtime": "0.894800", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"cee72da197328ce05e21354b6ae13c6f\"", + "x-runtime": "0.876891", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/buy_shipment_with_carbon_offset.json b/EasyPost.Tests/cassettes/netstandard/shipment/buy_shipment_with_carbon_offset.json index fda9a4127..de2938f54 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/buy_shipment_with_carbon_offset.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/buy_shipment_with_carbon_offset.json @@ -1,7 +1,7 @@ [ { - "Duration": 924, - "RecordedAt": "2022-08-30T15:40:23.616597-06:00", + "Duration": 836, + "RecordedAt": "2022-09-07T15:01:35.745221-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Dr. Steve Brule\",\"street1\":\"179 N Harbor Dr\",\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:23Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:40:23Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_cfa23ee5f17f4c9ca132b58458083126\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_5a37db9cf17246a389be894e258b91f1\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_5a38a28a28ac11ed8b0cac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:23-06:00\",\"updated_at\":\"2022-08-30T15:40:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_93eb1fe26c654b64a06d6c57716347ee\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_92921d8066fb4ca3ad6fec7faf7b0b12\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_352625bc168a46fe87d489ccd32eff3a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eb5428c5df3a4404a558753a7b148bce\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_311a98a491ec4e5fb5b8b7eeca0d7f01\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5a368c4c28ac11edbf90ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:23-06:00\",\"updated_at\":\"2022-08-30T15:40:23-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_5a38a28a28ac11ed8b0cac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:23-06:00\",\"updated_at\":\"2022-08-30T15:40:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5a368c4c28ac11edbf90ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:23-06:00\",\"updated_at\":\"2022-08-30T15:40:23-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:35Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T21:01:35Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_a8550dad84574c1483ee3416931fe525\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_eacb35a47e8c43beb352b617aac13158\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_4201bfc02ef011eda2adac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:35-06:00\",\"updated_at\":\"2022-09-07T15:01:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7830d757017d47dc8963c52eb846d645\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_f5f918e3f2bd49d1a4c3c3931eb9cae5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_68925a5f93c84374884fa131c34b190b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0443a02256244e7bbcf3c087a5654056\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7ae8faf674ec4951ade5f4dca8a9a1c1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_41ff819e2ef011edaaffac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:35-06:00\",\"updated_at\":\"2022-09-07T15:01:35-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_4201bfc02ef011eda2adac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:35-06:00\",\"updated_at\":\"2022-09-07T15:01:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_41ff819e2ef011edaaffac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:35-06:00\",\"updated_at\":\"2022-09-07T15:01:35-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83c7e788d54800136248", + "x-ep-request-uuid": "3bde9a29631906afe79a64c0002e9872", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_d61cc8d85bc54d21a0dc1c5ab9da99d2", - "ETag": "W/\"c1ddb52526d8ef70aa1ed06c1a5ffc77\"", - "x-runtime": "0.521356", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_0e315a082ff54e70b337a99fb264c87d", + "ETag": "W/\"90cebfd24a35f538f0f3a0959f86cb4b\"", + "x-runtime": "0.569299", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,10 +53,10 @@ } }, { - "Duration": 246, - "RecordedAt": "2022-08-30T15:40:24.914851-06:00", + "Duration": 391, + "RecordedAt": "2022-09-07T15:01:37.191574-06:00", "Request": { - "Body": "{\"rate\":{\"id\":\"rate_eb5428c5df3a4404a558753a7b148bce\"},\"insurance\":\"\",\"carbon_offset\":true}", + "Body": "{\"rate\":{\"id\":\"rate_f5f918e3f2bd49d1a4c3c3931eb9cae5\"},\"insurance\":\"\",\"carbon_offset\":true}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_d61cc8d85bc54d21a0dc1c5ab9da99d2/buy" + "Uri": "https://api.easypost.com/v2/shipments/shp_0e315a082ff54e70b337a99fb264c87d/buy" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:23Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658082\",\"updated_at\":\"2022-08-30T21:40:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_cfa23ee5f17f4c9ca132b58458083126\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_5a37db9cf17246a389be894e258b91f1\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_5a38a28a28ac11ed8b0cac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:23-06:00\",\"updated_at\":\"2022-08-30T15:40:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_93eb1fe26c654b64a06d6c57716347ee\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f7752c3f5bf74a1da6ae2493b3ecac10\",\"created_at\":\"2022-08-30T21:40:24Z\",\"updated_at\":\"2022-08-30T21:40:24Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:40: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/20220830/188be05acc6143f1b05b8e5e5fbcb4b4.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_92921d8066fb4ca3ad6fec7faf7b0b12\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_352625bc168a46fe87d489ccd32eff3a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_eb5428c5df3a4404a558753a7b148bce\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_311a98a491ec4e5fb5b8b7eeca0d7f01\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:23Z\",\"updated_at\":\"2022-08-30T21:40:23Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_eb5428c5df3a4404a558753a7b148bce\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:24Z\",\"updated_at\":\"2022-08-30T21:40:24Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_1f6a55c691a14493a818493b7cf99c34\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658082\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:40:24Z\",\"updated_at\":\"2022-08-30T21:40:24Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzFmNmE1NWM2OTFhMTQ0OTNhODE4NDkzYjdjZjk5YzM0\"},\"to_address\":{\"id\":\"adr_5a368c4c28ac11edbf90ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:23-06:00\",\"updated_at\":\"2022-08-30T15:40:24-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_5a38a28a28ac11ed8b0cac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:23-06:00\",\"updated_at\":\"2022-08-30T15:40:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5a368c4c28ac11edbf90ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:23-06:00\",\"updated_at\":\"2022-08-30T15:40:24-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_d61cc8d85bc54d21a0dc1c5ab9da99d2\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:35Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478788\",\"updated_at\":\"2022-09-07T21:01:37Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_a8550dad84574c1483ee3416931fe525\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_eacb35a47e8c43beb352b617aac13158\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_4201bfc02ef011eda2adac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:35-06:00\",\"updated_at\":\"2022-09-07T15:01:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7830d757017d47dc8963c52eb846d645\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_d0bf0d9ccad14eb08a127d89bd816048\",\"created_at\":\"2022-09-07T21:01:36Z\",\"updated_at\":\"2022-09-07T21:01:36Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/c34f55ebbba649128bc784cdcf8da74c.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_f5f918e3f2bd49d1a4c3c3931eb9cae5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_68925a5f93c84374884fa131c34b190b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_0443a02256244e7bbcf3c087a5654056\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_7ae8faf674ec4951ade5f4dca8a9a1c1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:35Z\",\"updated_at\":\"2022-09-07T21:01:35Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f5f918e3f2bd49d1a4c3c3931eb9cae5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:36Z\",\"updated_at\":\"2022-09-07T21:01:36Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_0e9897b13678436ba2547080b96d4130\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478788\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:37Z\",\"updated_at\":\"2022-09-07T21:01:37Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzBlOTg5N2IxMzY3ODQzNmJhMjU0NzA4MGI5NmQ0MTMw\"},\"to_address\":{\"id\":\"adr_41ff819e2ef011edaaffac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:35-06:00\",\"updated_at\":\"2022-09-07T15:01:36-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_4201bfc02ef011eda2adac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:35-06:00\",\"updated_at\":\"2022-09-07T15:01:35-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_41ff819e2ef011edaaffac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:35-06:00\",\"updated_at\":\"2022-09-07T15:01:36-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_0e315a082ff54e70b337a99fb264c87d\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83c7e788d54800136282", + "x-ep-request-uuid": "3bde9a29631906afe79a64c0002e98b3", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"3f26681c85635e6e8da479edb88b4088\"", - "x-runtime": "1.176030", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"5c8144752dc37600d5b594ecea7466f8\"", + "x-runtime": "1.250399", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/convert_label.json b/EasyPost.Tests/cassettes/netstandard/shipment/convert_label.json index 98ab2bc7d..4821ba9fc 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/convert_label.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/convert_label.json @@ -1,7 +1,7 @@ [ { - "Duration": 480, - "RecordedAt": "2022-08-30T15:40:07.443692-06:00", + "Duration": 326, + "RecordedAt": "2022-09-07T15:01:20.893272-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:06Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658051\",\"updated_at\":\"2022-08-30T21:40:07Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_50448c5828ac11edbc27ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_93f3c2d6f08c440d82df411828e632bf\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_fcc0417cc2fe4104aa464035925750e6\",\"created_at\":\"2022-08-30T21:40:07Z\",\"updated_at\":\"2022-08-30T21:40:07Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:40: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/20220830/fca547381c0f405cafd0021fb2a56ed6.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_4bd430bf3a564ad381f0e78a1c410173\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_07adb2e458b24be3b44d600ea4fffa86\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f921d743c70944dba55eadd5850b044a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ef750a7a54ea456fa76d29e73be61578\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f921d743c70944dba55eadd5850b044a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:07Z\",\"updated_at\":\"2022-08-30T21:40:07Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_db3489d755a84b06bd6b226ec00907a0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658051\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:40:07Z\",\"updated_at\":\"2022-08-30T21:40:07Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2RiMzQ4OWQ3NTVhODRiMDZiZDZiMjI2ZWMwMDkwN2Ew\"},\"to_address\":{\"id\":\"adr_504067bb28ac11edbc24ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_50448c5828ac11edbc27ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_504067bb28ac11edbc24ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:19Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478689\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38dd776b2ef011edb16dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_eb782e276d844d31a84787e5daf04de3\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ff0bdedf8f8e44d8a249184483ee6ead\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:20Z\",\"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/20220907/21e4f342dfb1434e94ae3f87df25ea49.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c3ef0912d8a448dbbfdaea7c73ad574d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eec5660948094dc892b2d6fd6fa776bb\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_53cf624a82ec4e94ad7751099a67e8c1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d7bddbf5e0be48cb84a3fee043624cdc\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d7bddbf5e0be48cb84a3fee043624cdc\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_238c9db6180f4ee0a950ed2e04dd5e6e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478689\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzIzOGM5ZGI2MTgwZjRlZTBhOTUwZWQyZTA0ZGQ1ZTZl\"},\"to_address\":{\"id\":\"adr_38db04142ef011eda5f3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38dd776b2ef011edb16dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38db04142ef011eda5f3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83b6e788d520001359b0", + "x-ep-request-uuid": "3bde9a296319069fe79a6162002e917c", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_e2e322bb1fab44b4a5dd037f2bbd9088", - "ETag": "W/\"502f44101492ee6ae5256670f20117a4\"", - "x-runtime": "1.145185", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_bc78d457bf70477086bbbdeeef035cd7", + "ETag": "W/\"f7752861a0ad320b6657f36e2fc992c0\"", + "x-runtime": "1.057795", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 845, - "RecordedAt": "2022-08-30T15:40:09.353571-06:00", + "Duration": 675, + "RecordedAt": "2022-09-07T15:01:22.63453-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_e2e322bb1fab44b4a5dd037f2bbd9088/label?file_format=ZPL" + "Uri": "https://api.easypost.com/v2/shipments/shp_bc78d457bf70477086bbbdeeef035cd7/label?file_format=ZPL" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:06Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658051\",\"updated_at\":\"2022-08-30T21:40:07Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_50448c5828ac11edbc27ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_93f3c2d6f08c440d82df411828e632bf\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_fcc0417cc2fe4104aa464035925750e6\",\"created_at\":\"2022-08-30T21:40:07Z\",\"updated_at\":\"2022-08-30T21:40:09Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:40: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/20220830/fca547381c0f405cafd0021fb2a56ed6.png\",\"label_pdf_url\":null,\"label_zpl_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20220830/0f53044e70b44895a0ac96e58e4f8983.zpl\",\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_4bd430bf3a564ad381f0e78a1c410173\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_07adb2e458b24be3b44d600ea4fffa86\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f921d743c70944dba55eadd5850b044a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ef750a7a54ea456fa76d29e73be61578\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:06Z\",\"updated_at\":\"2022-08-30T21:40:06Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f921d743c70944dba55eadd5850b044a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:07Z\",\"updated_at\":\"2022-08-30T21:40:07Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_db3489d755a84b06bd6b226ec00907a0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658051\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:40:07Z\",\"updated_at\":\"2022-08-30T21:40:07Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:40:07Z\",\"shipment_id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:40:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:17:07Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2RiMzQ4OWQ3NTVhODRiMDZiZDZiMjI2ZWMwMDkwN2Ew\"},\"to_address\":{\"id\":\"adr_504067bb28ac11edbc24ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_50448c5828ac11edbc27ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_504067bb28ac11edbc24ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:06-06:00\",\"updated_at\":\"2022-08-30T15:40:06-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e2e322bb1fab44b4a5dd037f2bbd9088\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:19Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478689\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38dd776b2ef011edb16dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_eb782e276d844d31a84787e5daf04de3\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ff0bdedf8f8e44d8a249184483ee6ead\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:20Z\",\"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/20220907/21e4f342dfb1434e94ae3f87df25ea49.png\",\"label_pdf_url\":null,\"label_zpl_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20220907/e5c86c1ccb9049cba0c94a43be4cc13d.zpl\",\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c3ef0912d8a448dbbfdaea7c73ad574d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eec5660948094dc892b2d6fd6fa776bb\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_53cf624a82ec4e94ad7751099a67e8c1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d7bddbf5e0be48cb84a3fee043624cdc\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d7bddbf5e0be48cb84a3fee043624cdc\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_238c9db6180f4ee0a950ed2e04dd5e6e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478689\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:21Z\",\"shipment_id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:21Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:21Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzIzOGM5ZGI2MTgwZjRlZTBhOTUwZWQyZTA0ZGQ1ZTZl\"},\"to_address\":{\"id\":\"adr_38db04142ef011eda5f3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38dd776b2ef011edb16dac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38db04142ef011eda5f3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bc78d457bf70477086bbbdeeef035cd7\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,14 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83b7e788d52000135a4e", + "x-ep-request-uuid": "3bde9a29631906a1e79a6162002e91ff", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"d13cc11725548082823809e4b1590957\"", - "x-runtime": "1.739058", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"151d88dbcf1626dd8f05d91600593f32\"", + "x-runtime": "1.608217", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", + "x-canary": "direct", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/create.json b/EasyPost.Tests/cassettes/netstandard/shipment/create.json index a99c055c9..4225d2ad7 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/create.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 261, - "RecordedAt": "2022-08-30T15:40:04.824329-06:00", + "Duration": 249, + "RecordedAt": "2022-09-07T15:01:18.279749-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:04Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:40:04Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_d5cbf2c5eada41e792506ff78b3c3884\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:40:04Z\",\"updated_at\":\"2022-08-30T21:40:04Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_9d7170657e97461f9f813cf17ecde469\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:40:04Z\",\"updated_at\":\"2022-08-30T21:40:04Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_4f0174eb28ac11ed88ebac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:04-06:00\",\"updated_at\":\"2022-08-30T15:40:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_06412edf7a56421fba154b6c13007029\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:04Z\",\"updated_at\":\"2022-08-30T21:40:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_ea297cb8ad08462998119ae43404eb16\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:04Z\",\"updated_at\":\"2022-08-30T21:40:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_df7b6a91cc484a62973079a4db14e4e1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_335f8906960640fdadef82c21ceb411e\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:04Z\",\"updated_at\":\"2022-08-30T21:40:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_df7b6a91cc484a62973079a4db14e4e1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_47caf9a337584a86a51655df54a68881\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:04Z\",\"updated_at\":\"2022-08-30T21:40:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_df7b6a91cc484a62973079a4db14e4e1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c87145904d52448ea0f26adf3aace683\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:04Z\",\"updated_at\":\"2022-08-30T21:40:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_df7b6a91cc484a62973079a4db14e4e1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_4eff96fb28ac11ed99d7ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:04-06:00\",\"updated_at\":\"2022-08-30T15:40:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_4f0174eb28ac11ed88ebac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:04-06:00\",\"updated_at\":\"2022-08-30T15:40:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_4eff96fb28ac11ed99d7ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:04-06:00\",\"updated_at\":\"2022-08-30T15:40:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_df7b6a91cc484a62973079a4db14e4e1\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:17Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T21:01:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_73c28f30c0d14a0480c065e0b95d21fa\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_e74b47792677463bb79975567037689e\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_378b5c2a2ef011eda7dcac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6ed57d7c069f4ccc9ca10e5d506056ee\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_f42f1ab6631a4f0dacdb51caf7240cdf\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_253a1faa367d4fca9108695ece5fdd09\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_aa908ccc018949b6aaa429bafe7bdeba\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_253a1faa367d4fca9108695ece5fdd09\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6b021fef979e4ed992b2124480e1c6ba\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_253a1faa367d4fca9108695ece5fdd09\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f3a24abc16d94527a5a3eb6da679ec11\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_253a1faa367d4fca9108695ece5fdd09\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_37896ae32ef011ed9f53ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_378b5c2a2ef011eda7dcac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_37896ae32ef011ed9f53ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_253a1faa367d4fca9108695ece5fdd09\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96af630e83b4e788d51e001358bf", + "x-ep-request-uuid": "3bde9a296319069de79a60bb002e9063", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_df7b6a91cc484a62973079a4db14e4e1", - "ETag": "W/\"e72abc46ea1e97ad38b85c989d00d966\"", - "x-runtime": "0.552429", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_253a1faa367d4fca9108695ece5fdd09", + "ETag": "W/\"43b769feb87947446c4173894596aa16\"", + "x-runtime": "0.651500", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/create_empty_objects.json b/EasyPost.Tests/cassettes/netstandard/shipment/create_empty_objects.json index de1495015..09b76689e 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/create_empty_objects.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/create_empty_objects.json @@ -1,7 +1,7 @@ [ { - "Duration": 901, - "RecordedAt": "2022-08-30T15:40:20.972179-06:00", + "Duration": 855, + "RecordedAt": "2022-09-07T15:01:33.345098-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"customs_items\":[]},\"options\":null,\"tax_identifiers\":null,\"reference\":\"\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:20Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:40:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_8cf4f351f4f54de0a316bfb7ab3db0f3\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:40:20Z\",\"updated_at\":\"2022-08-30T21:40:20Z\",\"contents_explanation\":null,\"contents_type\":\"merchandise\",\"customs_certify\":false,\"customs_signer\":null,\"eel_pfc\":null,\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_58aa564628ac11ed88daac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:20-06:00\",\"updated_at\":\"2022-08-30T15:40:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_e8d8c64e4e104622aaff11a722fc218b\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:20Z\",\"updated_at\":\"2022-08-30T21:40:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_edbe1d52e54841e6a9bbd6cdfe5e4594\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:21Z\",\"updated_at\":\"2022-08-30T21:40:21Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4e0782c626094f9d9973bf97aa207b17\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d128506e351244a295c0781f5f5cd6c6\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:21Z\",\"updated_at\":\"2022-08-30T21:40:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4e0782c626094f9d9973bf97aa207b17\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3f614132b2854022bccf78ee9f66c09a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:21Z\",\"updated_at\":\"2022-08-30T21:40:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_4e0782c626094f9d9973bf97aa207b17\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e0ed80b187c7409fba100d616fc6ff35\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:21Z\",\"updated_at\":\"2022-08-30T21:40:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_4e0782c626094f9d9973bf97aa207b17\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_58a7fc6328ac11ed9d12ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:20-06:00\",\"updated_at\":\"2022-08-30T15:40:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_58aa564628ac11ed88daac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:20-06:00\",\"updated_at\":\"2022-08-30T15:40:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_58a7fc6328ac11ed9d12ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:20-06:00\",\"updated_at\":\"2022-08-30T15:40:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_4e0782c626094f9d9973bf97aa207b17\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:32Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:33Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_20bbd5332c9946848a8a4d0849d11876\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:32Z\",\"updated_at\":\"2022-09-07T21:01:32Z\",\"contents_explanation\":null,\"contents_type\":\"merchandise\",\"customs_certify\":false,\"customs_signer\":null,\"eel_pfc\":null,\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_4090e5ba2ef011edb3b7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:32-06:00\",\"updated_at\":\"2022-09-07T15:01:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_67924c8f79534f43bbed5e58d754e982\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:32Z\",\"updated_at\":\"2022-09-07T21:01:32Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_532fa4c11e4d464e98206239daddc2ab\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:33Z\",\"updated_at\":\"2022-09-07T21:01:33Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4fd7abd958174e21855fb840d995191a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e0f7f8abbde44979b0760e9ffc91429c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:33Z\",\"updated_at\":\"2022-09-07T21:01:33Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_4fd7abd958174e21855fb840d995191a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2da9e158fbbd42bdbcba81feb1572507\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:33Z\",\"updated_at\":\"2022-09-07T21:01:33Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4fd7abd958174e21855fb840d995191a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_707a393da23940fa8c96d82644a47b20\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:33Z\",\"updated_at\":\"2022-09-07T21:01:33Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_4fd7abd958174e21855fb840d995191a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_408e419b2ef011edaa9bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:32-06:00\",\"updated_at\":\"2022-09-07T15:01:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_4090e5ba2ef011edb3b7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:32-06:00\",\"updated_at\":\"2022-09-07T15:01:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_408e419b2ef011edaa9bac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:32-06:00\",\"updated_at\":\"2022-09-07T15:01:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_4fd7abd958174e21855fb840d995191a\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b5630e83c4e788d54600136118", + "x-ep-request-uuid": "3bde9a2a631906ace79a64be002e9791", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_4e0782c626094f9d9973bf97aa207b17", - "ETag": "W/\"47e9f2a36429abaf8298819a764e5284\"", - "x-runtime": "0.567849", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_4fd7abd958174e21855fb840d995191a", + "ETag": "W/\"23844364f49f79260a56f9e1b2c8525e\"", + "x-runtime": "0.590157", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/create_shipment_with_carbon_offset.json b/EasyPost.Tests/cassettes/netstandard/shipment/create_shipment_with_carbon_offset.json index 9872682fb..fcc913f7a 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/create_shipment_with_carbon_offset.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/create_shipment_with_carbon_offset.json @@ -1,7 +1,7 @@ [ { - "Duration": 910, - "RecordedAt": "2022-08-30T15:40:11.55413-06:00", + "Duration": 104, + "RecordedAt": "2022-09-07T15:01:24.711535-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Dr. Steve Brule\",\"street1\":\"179 N Harbor Dr\",\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}},\"carbon_offset\":true}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:11Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:40:11Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_530b7b0128ac11edbd2cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:11-06:00\",\"updated_at\":\"2022-08-30T15:40:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_c98e5d9262994df2a166a16119f76959\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:11Z\",\"updated_at\":\"2022-08-30T21:40:11Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_06046f292f834c0d8647fcfeb634391a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:11Z\",\"updated_at\":\"2022-08-30T21:40:11Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e6e59926e90f44d3a73a31f079920eb0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_ad0c33ea1ee84b12b154c8a63a6fc740\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:11Z\",\"updated_at\":\"2022-08-30T21:40:11Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e6e59926e90f44d3a73a31f079920eb0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_c790c52216f84985baf0be3ad0a2f480\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:11Z\",\"updated_at\":\"2022-08-30T21:40:11Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_e6e59926e90f44d3a73a31f079920eb0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_8977ef2c464344d38a19edb7df1eb120\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:11Z\",\"updated_at\":\"2022-08-30T21:40:11Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e6e59926e90f44d3a73a31f079920eb0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"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_5309bcb528ac11ed8719ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:11-06:00\",\"updated_at\":\"2022-08-30T15:40:11-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_530b7b0128ac11edbd2cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:11-06:00\",\"updated_at\":\"2022-08-30T15:40:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5309bcb528ac11ed8719ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:11-06:00\",\"updated_at\":\"2022-08-30T15:40:11-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_e6e59926e90f44d3a73a31f079920eb0\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:23Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3b4510162ef011eda076ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_8c4a16edfaa44bb89100e8b51c8eda55\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_840832759f2e428cb80c56c254991644\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_94c8389ee18c4edbadd64beed2aac580\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_d6bc73782bac4b30907e3f6e616f0483\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_94c8389ee18c4edbadd64beed2aac580\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_67ec1b1634574148806bdf3efb1a9d33\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_94c8389ee18c4edbadd64beed2aac580\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_0c9b378ad54641ddb7dd43a1d613869d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_94c8389ee18c4edbadd64beed2aac580\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"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_3b42a33b2ef011edb219ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_3b4510162ef011eda076ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3b42a33b2ef011edb219ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Dr. Steve Brule\",\"company\":null,\"street1\":\"179 N Harbor Dr\",\"street2\":null,\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_94c8389ee18c4edbadd64beed2aac580\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b5630e83bbe788d52300135bea", + "x-ep-request-uuid": "3bde9a26631906a3e79a649a002e9355", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_e6e59926e90f44d3a73a31f079920eb0", - "ETag": "W/\"85a6767994b409cd9cb31a8c70d4d3c2\"", - "x-runtime": "0.592889", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_94c8389ee18c4edbadd64beed2aac580", + "ETag": "W/\"add9b0a8d7e57a67f3fc9eaf314198f5\"", + "x-runtime": "0.827350", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/create_tax_identifiers.json b/EasyPost.Tests/cassettes/netstandard/shipment/create_tax_identifiers.json index b52b0f06e..ba1e179ac 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/create_tax_identifiers.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/create_tax_identifiers.json @@ -1,7 +1,7 @@ [ { - "Duration": 939, - "RecordedAt": "2022-08-30T15:40:05.900092-06:00", + "Duration": 138, + "RecordedAt": "2022-09-07T15:01:19.486622-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"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}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:05Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:40:05Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4faad62528ac11ed85f8ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:05-06:00\",\"updated_at\":\"2022-08-30T15:40:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_400b65ddc6504c159c185b20e1738ab4\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:05Z\",\"updated_at\":\"2022-08-30T21:40:05Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_c8c9beeeb73c47b881ffed39a585fa6c\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:05Z\",\"updated_at\":\"2022-08-30T21:40:05Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_6bef65bb194c4c47a420448cb5e08788\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0d729c4a93e7463c9470dd625327cb28\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:05Z\",\"updated_at\":\"2022-08-30T21:40:05Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_6bef65bb194c4c47a420448cb5e08788\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4dfc303f2e2b42b0b6fbc2d40af9418b\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:05Z\",\"updated_at\":\"2022-08-30T21:40:05Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_6bef65bb194c4c47a420448cb5e08788\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0f696747afbb49d49e5ea4ddebd08f78\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:05Z\",\"updated_at\":\"2022-08-30T21:40:05Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_6bef65bb194c4c47a420448cb5e08788\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_4fa7475628ac11edbbfeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:05-06:00\",\"updated_at\":\"2022-08-30T15:40:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_4faad62528ac11ed85f8ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:05-06:00\",\"updated_at\":\"2022-08-30T15:40:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_4fa7475628ac11edbbfeac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:05-06:00\",\"updated_at\":\"2022-08-30T15:40:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_6bef65bb194c4c47a420448cb5e08788\",\"object\":\"Shipment\",\"tax_identifiers\":[{\"entity\":\"SENDER\",\"tax_id\":\"HIDDEN\",\"tax_id_type\":\"IOSS\",\"issuing_country\":\"GB\"}]}", + "Body": "{\"created_at\":\"2022-09-07T21:01:18Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:19Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38240f2d2ef011eda5ceac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6df787c9e064fe0a311ef2950c90641\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_df12c778adfe48f9bd850acf47ed5a5b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_2933d29fa848485fbcd7b2ddaadbf551\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ca08abc14f8d4960b753cc3618b6336d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2933d29fa848485fbcd7b2ddaadbf551\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_35738d5845be4d528163c797ab2e9daa\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_2933d29fa848485fbcd7b2ddaadbf551\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_13c8d6d51602488ca417e6971db324d4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2933d29fa848485fbcd7b2ddaadbf551\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_382216c62ef011ed9f80ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38240f2d2ef011eda5ceac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_382216c62ef011ed9f80ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_2933d29fa848485fbcd7b2ddaadbf551\",\"object\":\"Shipment\",\"tax_identifiers\":[{\"entity\":\"SENDER\",\"tax_id\":\"HIDDEN\",\"tax_id_type\":\"IOSS\",\"issuing_country\":\"GB\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b4630e83b5e788d51f0013592b", + "x-ep-request-uuid": "3bde9a256319069ee79a611e002e90ee", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_6bef65bb194c4c47a420448cb5e08788", - "ETag": "W/\"00bd11a6bb2ea4093ffaf992e61a5eaf\"", - "x-runtime": "0.543145", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_2933d29fa848485fbcd7b2ddaadbf551", + "ETag": "W/\"506354dfb2809b8eb47651b0539fd243\"", + "x-runtime": "0.860760", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/insure.json b/EasyPost.Tests/cassettes/netstandard/shipment/insure.json index 54923a048..c7e00fa47 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/insure.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/insure.json @@ -1,7 +1,7 @@ [ { - "Duration": 286, - "RecordedAt": "2022-08-30T15:40:27.402592-06:00", + "Duration": 319, + "RecordedAt": "2022-09-07T15:01:39.685496-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\",\"insurance\":0},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:26Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658099\",\"updated_at\":\"2022-08-30T21:40:27Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5c444ee628ac11ed803dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:26-06:00\",\"updated_at\":\"2022-08-30T15:40:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_58164f3a81474893a160548b98dcd889\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:26Z\",\"updated_at\":\"2022-08-30T21:40:26Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_db4f24306a7e420ea537b2f013e715f9\",\"created_at\":\"2022-08-30T21:40:27Z\",\"updated_at\":\"2022-08-30T21:40:27Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:40: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/20220830/ee1276262dd9408fb8f91bbb0372689f.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_0a89b47524a14b5ba88c66f47190344b\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:26Z\",\"updated_at\":\"2022-08-30T21:40:26Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b530db8cdeb248fb8d833368a77c1a44\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:26Z\",\"updated_at\":\"2022-08-30T21:40:26Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_82034549f48846ef854dd2e2cdb5e333\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:26Z\",\"updated_at\":\"2022-08-30T21:40:26Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fcf2cd99180748b5a6a8c878de82a38f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:26Z\",\"updated_at\":\"2022-08-30T21:40:26Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_fcf2cd99180748b5a6a8c878de82a38f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:27Z\",\"updated_at\":\"2022-08-30T21:40:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_a427d239c4164b7398736b1bfc1a606d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658099\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:40:27Z\",\"updated_at\":\"2022-08-30T21:40:27Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2E0MjdkMjM5YzQxNjRiNzM5ODczNmIxYmZjMWE2MDZk\"},\"to_address\":{\"id\":\"adr_5c424f9228ac11ed9e2aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:26-06:00\",\"updated_at\":\"2022-08-30T15:40:26-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5c444ee628ac11ed803dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:26-06:00\",\"updated_at\":\"2022-08-30T15:40:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5c424f9228ac11ed9e2aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:26-06:00\",\"updated_at\":\"2022-08-30T15:40:26-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:38Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478795\",\"updated_at\":\"2022-09-07T21:01:39Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_44108c432ef011eda7d8ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:38-06:00\",\"updated_at\":\"2022-09-07T15:01:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_e9f92aed78cd4de99d2d7fedea956ee5\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_b78908c8db6c40e7becfde315850ff92\",\"created_at\":\"2022-09-07T21:01:39Z\",\"updated_at\":\"2022-09-07T21:01:39Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/17ce0a5e582b4cccbf77f613c6e82660.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e89ff06f0e3a4d8aa788ad4ba66a1e72\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_52e61e08f1d5485587669e875fd23678\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_de529d1941734dd38755c917414c0a41\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5220ab20bd2c4b3397bd6b49fe9f3ad6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_de529d1941734dd38755c917414c0a41\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:39Z\",\"updated_at\":\"2022-09-07T21:01:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_622d430e06c0496cbd40f6273ec7d14a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478795\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:39Z\",\"updated_at\":\"2022-09-07T21:01:39Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzYyMmQ0MzBlMDZjMDQ5NmNiZDQwZjYyNzNlYzdkMTRh\"},\"to_address\":{\"id\":\"adr_440e47942ef011eda7d6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:38-06:00\",\"updated_at\":\"2022-09-07T15:01:38-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_44108c432ef011eda7d8ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:38-06:00\",\"updated_at\":\"2022-09-07T15:01:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_440e47942ef011eda7d6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:38-06:00\",\"updated_at\":\"2022-09-07T15:01:38-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83cae788d8580013636c", + "x-ep-request-uuid": "3bde9a29631906b2e79a64c2002e99da", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_e7a855d211f7434691973a54a123b17a", - "ETag": "W/\"3fb1d361235ccbaa22ef529edab8b20d\"", - "x-runtime": "0.970178", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_b56fe5d542e44758bd6666109948c80b", + "ETag": "W/\"dd8073e8d2b2ca2ee62bf8382ed8eb40\"", + "x-runtime": "1.055821", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 253, - "RecordedAt": "2022-08-30T15:40:27.72585-06:00", + "Duration": 238, + "RecordedAt": "2022-09-07T15:01:39.978748-06:00", "Request": { "Body": "{\"amount\":100.0}", "BodyContentType": "Json", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_e7a855d211f7434691973a54a123b17a/insure" + "Uri": "https://api.easypost.com/v2/shipments/shp_b56fe5d542e44758bd6666109948c80b/insure" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:26Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658099\",\"updated_at\":\"2022-08-30T21:40:27Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5c444ee628ac11ed803dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:26-06:00\",\"updated_at\":\"2022-08-30T15:40:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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_58164f3a81474893a160548b98dcd889\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:26Z\",\"updated_at\":\"2022-08-30T21:40:26Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_db4f24306a7e420ea537b2f013e715f9\",\"created_at\":\"2022-08-30T21:40:27Z\",\"updated_at\":\"2022-08-30T21:40:27Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:40: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/20220830/ee1276262dd9408fb8f91bbb0372689f.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_0a89b47524a14b5ba88c66f47190344b\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:26Z\",\"updated_at\":\"2022-08-30T21:40:26Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b530db8cdeb248fb8d833368a77c1a44\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:26Z\",\"updated_at\":\"2022-08-30T21:40:26Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_82034549f48846ef854dd2e2cdb5e333\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:26Z\",\"updated_at\":\"2022-08-30T21:40:26Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fcf2cd99180748b5a6a8c878de82a38f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:26Z\",\"updated_at\":\"2022-08-30T21:40:26Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_fcf2cd99180748b5a6a8c878de82a38f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:27Z\",\"updated_at\":\"2022-08-30T21:40:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_a427d239c4164b7398736b1bfc1a606d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658099\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:40:27Z\",\"updated_at\":\"2022-08-30T21:40:27Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:40:27Z\",\"shipment_id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:40:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:17:27Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2E0MjdkMjM5YzQxNjRiNzM5ODczNmIxYmZjMWE2MDZk\"},\"to_address\":{\"id\":\"adr_5c424f9228ac11ed9e2aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:26-06:00\",\"updated_at\":\"2022-08-30T15:40:26-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5c444ee628ac11ed803dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:26-06:00\",\"updated_at\":\"2022-08-30T15:40:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5c424f9228ac11ed9e2aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:26-06:00\",\"updated_at\":\"2022-08-30T15:40:26-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e7a855d211f7434691973a54a123b17a\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:38Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478795\",\"updated_at\":\"2022-09-07T21:01:39Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_44108c432ef011eda7d8ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:38-06:00\",\"updated_at\":\"2022-09-07T15:01:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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_e9f92aed78cd4de99d2d7fedea956ee5\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_b78908c8db6c40e7becfde315850ff92\",\"created_at\":\"2022-09-07T21:01:39Z\",\"updated_at\":\"2022-09-07T21:01:39Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/17ce0a5e582b4cccbf77f613c6e82660.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e89ff06f0e3a4d8aa788ad4ba66a1e72\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_52e61e08f1d5485587669e875fd23678\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_de529d1941734dd38755c917414c0a41\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5220ab20bd2c4b3397bd6b49fe9f3ad6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_de529d1941734dd38755c917414c0a41\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:39Z\",\"updated_at\":\"2022-09-07T21:01:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_622d430e06c0496cbd40f6273ec7d14a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478795\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:39Z\",\"updated_at\":\"2022-09-07T21:01:39Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:39Z\",\"shipment_id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:39Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzYyMmQ0MzBlMDZjMDQ5NmNiZDQwZjYyNzNlYzdkMTRh\"},\"to_address\":{\"id\":\"adr_440e47942ef011eda7d6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:38-06:00\",\"updated_at\":\"2022-09-07T15:01:38-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_44108c432ef011eda7d8ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:38-06:00\",\"updated_at\":\"2022-09-07T15:01:38-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_440e47942ef011eda7d6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:38-06:00\",\"updated_at\":\"2022-09-07T15:01:38-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b56fe5d542e44758bd6666109948c80b\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,13 +87,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83cbe788d858001363b9", + "x-ep-request-uuid": "3bde9a29631906b3e79a64c2002e9a59", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"e7124d7eb7012bc7ac7a978e5d043888\"", - "x-runtime": "0.183644", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"67fd7d227ef5c30920bba76ceb34e3aa\"", + "x-runtime": "0.177359", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/lowest_rate.json b/EasyPost.Tests/cassettes/netstandard/shipment/lowest_rate.json index f69204dd7..09b5e49ef 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/lowest_rate.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/lowest_rate.json @@ -1,7 +1,7 @@ [ { - "Duration": 954, - "RecordedAt": "2022-08-30T15:40:12.570832-06:00", + "Duration": 843, + "RecordedAt": "2022-09-07T15:01:25.612637-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:12Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:40:12Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_a535c06b66a041dab1e940e7da31e8c7\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:40:12Z\",\"updated_at\":\"2022-08-30T21:40:12Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_1299253e1cd342aaaae7fb2b58ecb26e\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:40:12Z\",\"updated_at\":\"2022-08-30T21:40:12Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_539d608a28ac11edbd59ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:12-06:00\",\"updated_at\":\"2022-08-30T15:40:12-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7987070ec12645229f7aa0ff2439cbe0\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:12Z\",\"updated_at\":\"2022-08-30T21:40:12Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_a301251f8aa3493c92c7d0d735ac675a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:12Z\",\"updated_at\":\"2022-08-30T21:40:12Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_0d813b0ae0724172b90b5122c52ca7db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b066507b27b14f3794aad045c6806886\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:12Z\",\"updated_at\":\"2022-08-30T21:40:12Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0d813b0ae0724172b90b5122c52ca7db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_eacc504d4bd04ae9b5b3b4c2826dec43\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:12Z\",\"updated_at\":\"2022-08-30T21:40:12Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_0d813b0ae0724172b90b5122c52ca7db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8f1481bde62642ed93e28b8f0c618019\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:12Z\",\"updated_at\":\"2022-08-30T21:40:12Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_0d813b0ae0724172b90b5122c52ca7db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_539b7a8028ac11ed9b5cac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:12-06:00\",\"updated_at\":\"2022-08-30T15:40:12-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_539d608a28ac11edbd59ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:12-06:00\",\"updated_at\":\"2022-08-30T15:40:12-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_539b7a8028ac11ed9b5cac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:12-06:00\",\"updated_at\":\"2022-08-30T15:40:12-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_0d813b0ae0724172b90b5122c52ca7db\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:25Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T21:01:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_4b72ab89a2e147bd88079a3ad431dba7\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_bb7d0ba23bce40c290a3a2f42d9db356\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_3bf6e9da2ef011eda90fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_decfdb4f36a248f48ce0dacdf9db83a2\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_c9f005f3ab874336bb2930847d4f0576\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_3552be3a8c13416582fac45254213e28\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e91e044d94ac48ab81fd8d1e8190e7da\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3552be3a8c13416582fac45254213e28\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d25dfb6cd58342648b640deb1222c502\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_3552be3a8c13416582fac45254213e28\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3ec58a5efb904066b44f30116ccae2fa\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3552be3a8c13416582fac45254213e28\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3bf4476d2ef011edb249ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3bf6e9da2ef011eda90fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3bf4476d2ef011edb249ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_3552be3a8c13416582fac45254213e28\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83bce788d52400135c38", + "x-ep-request-uuid": "3bde9a2b631906a5e79a649c002e93d5", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_0d813b0ae0724172b90b5122c52ca7db", - "ETag": "W/\"787ff1deebba906b84dbf506ae808606\"", - "x-runtime": "0.651962", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_3552be3a8c13416582fac45254213e28", + "ETag": "W/\"8bf198938b7397fbfba5dde760642eb4\"", + "x-runtime": "0.571467", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/lowest_smartrate_instance.json b/EasyPost.Tests/cassettes/netstandard/shipment/lowest_smartrate_instance.json index b5337d38d..d7d0c48a5 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/lowest_smartrate_instance.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/lowest_smartrate_instance.json @@ -1,7 +1,7 @@ [ { - "Duration": 874, - "RecordedAt": "2022-08-30T15:40:17.296193-06:00", + "Duration": 884, + "RecordedAt": "2022-09-07T15:01:30.210585-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:16Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:40:17Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_567c4b7e28ac11ed9c49ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:16-06:00\",\"updated_at\":\"2022-08-30T15:40:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_3a551a0539234b449e301f92ac4decde\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:16Z\",\"updated_at\":\"2022-08-30T21:40:16Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_16445d747f83462da8a25c2a5230a908\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:17Z\",\"updated_at\":\"2022-08-30T21:40:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_ef34c66111bc4502aaec8ea190725422\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7df360b3bb2c4c06935ccb24b32b849e\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:17Z\",\"updated_at\":\"2022-08-30T21:40:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ef34c66111bc4502aaec8ea190725422\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0df0b2dd5a9d4958b167c62f85310249\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:17Z\",\"updated_at\":\"2022-08-30T21:40:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ef34c66111bc4502aaec8ea190725422\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f49e6c27a54543fe93e66b57cda421bb\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:17Z\",\"updated_at\":\"2022-08-30T21:40:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_ef34c66111bc4502aaec8ea190725422\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_567a70a028ac11ed9c47ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:16-06:00\",\"updated_at\":\"2022-08-30T15:40:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_567c4b7e28ac11ed9c49ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:16-06:00\",\"updated_at\":\"2022-08-30T15:40:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_567a70a028ac11ed9c47ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:16-06:00\",\"updated_at\":\"2022-08-30T15:40:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_ef34c66111bc4502aaec8ea190725422\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:29Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:30Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3eac5cb92ef011eda180ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:29-06:00\",\"updated_at\":\"2022-09-07T15:01:29-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_1f72972d2cf44e91aa2f7d5f41c6fef5\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:29Z\",\"updated_at\":\"2022-09-07T21:01:29Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_ac8664734a254babad24107ccb5d5d9c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:30Z\",\"updated_at\":\"2022-09-07T21:01:30Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_85a3be9a91d24c53a129706acc1880f8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_74ba4cfb47fd45c3b414fcf90b02c33b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:30Z\",\"updated_at\":\"2022-09-07T21:01:30Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_85a3be9a91d24c53a129706acc1880f8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_01910727d0d84eeda05288de8ab5e279\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:30Z\",\"updated_at\":\"2022-09-07T21:01:30Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_85a3be9a91d24c53a129706acc1880f8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ea0da041453746698de0c19d0e67546c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:30Z\",\"updated_at\":\"2022-09-07T21:01:30Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_85a3be9a91d24c53a129706acc1880f8\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3eaa4a1b2ef011eda17eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:29-06:00\",\"updated_at\":\"2022-09-07T15:01:29-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3eac5cb92ef011eda180ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:29-06:00\",\"updated_at\":\"2022-09-07T15:01:29-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3eaa4a1b2ef011eda17eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:29-06:00\",\"updated_at\":\"2022-09-07T15:01:29-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_85a3be9a91d24c53a129706acc1880f8\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b0630e83c0e788d54200135f53", + "x-ep-request-uuid": "3bde9a2c631906a9e79a64ba002e962d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_ef34c66111bc4502aaec8ea190725422", - "ETag": "W/\"64c1016063d603a403de8249b140ffe2\"", - "x-runtime": "0.564191", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_85a3be9a91d24c53a129706acc1880f8", + "ETag": "W/\"a696f542e23ff073eb865f36c5353021\"", + "x-runtime": "0.624406", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", + "x-canary": "direct", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, @@ -53,8 +54,8 @@ } }, { - "Duration": 162, - "RecordedAt": "2022-08-30T15:40:17.702779-06:00", + "Duration": 163, + "RecordedAt": "2022-09-07T15:01:30.609938-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +67,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_ef34c66111bc4502aaec8ea190725422/smartrate" + "Uri": "https://api.easypost.com/v2/shipments/shp_85a3be9a91d24c53a129706acc1880f8/smartrate" }, "Response": { - "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:17Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_16445d747f83462da8a25c2a5230a908\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_ef34c66111bc4502aaec8ea190725422\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:40:17Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:17Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_7df360b3bb2c4c06935ccb24b32b849e\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_ef34c66111bc4502aaec8ea190725422\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-08-30T21:40:17Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:17Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_0df0b2dd5a9d4958b167c62f85310249\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_ef34c66111bc4502aaec8ea190725422\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:40:17Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:17Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_f49e6c27a54543fe93e66b57cda421bb\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_ef34c66111bc4502aaec8ea190725422\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-08-30T21:40:17Z\"}]}", + "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:30Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_ac8664734a254babad24107ccb5d5d9c\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_85a3be9a91d24c53a129706acc1880f8\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":1,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-09-07T21:01:30Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:30Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_74ba4cfb47fd45c3b414fcf90b02c33b\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_85a3be9a91d24c53a129706acc1880f8\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-09-07T21:01:30Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:30Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_01910727d0d84eeda05288de8ab5e279\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_85a3be9a91d24c53a129706acc1880f8\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2022-09-07T21:01:30Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:30Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_ea0da041453746698de0c19d0e67546c\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_85a3be9a91d24c53a129706acc1880f8\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":4,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-09-07T21:01:30Z\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,13 +85,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b0630e83c1e788d54200135fc6", + "x-ep-request-uuid": "3bde9a2c631906aae79a64ba002e96aa", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"f62f42fa1a4597eb7d203abd50f3f197\"", - "x-runtime": "0.092051", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"430f931f73a30fb475c483279d87a2fc\"", + "x-runtime": "0.089757", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/lowest_smartrate_static.json b/EasyPost.Tests/cassettes/netstandard/shipment/lowest_smartrate_static.json index 836dea799..5d2b88492 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/lowest_smartrate_static.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/lowest_smartrate_static.json @@ -1,7 +1,7 @@ [ { - "Duration": 912, - "RecordedAt": "2022-08-30T15:40:18.643923-06:00", + "Duration": 682, + "RecordedAt": "2022-09-07T15:01:31.31899-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:18Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:40:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_57468fe528ac11ed8879ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:18-06:00\",\"updated_at\":\"2022-08-30T15:40:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_1884ab9e6c654b3baa163d6d07843a9a\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:18Z\",\"updated_at\":\"2022-08-30T21:40:18Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_04a1b7243e3e444ebfd08de23fb1c72a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:18Z\",\"updated_at\":\"2022-08-30T21:40:18Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e8cb966297b047dabe98a41c34fc6402\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bb40087388e6430faed4701974df2ef9\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:18Z\",\"updated_at\":\"2022-08-30T21:40:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e8cb966297b047dabe98a41c34fc6402\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c1d38fea7e2b4c81a071babb0cad3998\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:18Z\",\"updated_at\":\"2022-08-30T21:40:18Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e8cb966297b047dabe98a41c34fc6402\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6edecdb07fff498887e2d574970b6f48\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:18Z\",\"updated_at\":\"2022-08-30T21:40:18Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e8cb966297b047dabe98a41c34fc6402\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_57450ce428ac11ed9c9fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:18-06:00\",\"updated_at\":\"2022-08-30T15:40:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_57468fe528ac11ed8879ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:18-06:00\",\"updated_at\":\"2022-08-30T15:40:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_57450ce428ac11ed9c9fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:18-06:00\",\"updated_at\":\"2022-08-30T15:40:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_e8cb966297b047dabe98a41c34fc6402\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:31Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:31Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3f74d6382ef011edb360ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:31-06:00\",\"updated_at\":\"2022-09-07T15:01:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_36144fbeedcb48e298af59b724814e88\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:31Z\",\"updated_at\":\"2022-09-07T21:01:31Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_3c22e2649cb54a76a4c78936bf2f5ca4\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:31Z\",\"updated_at\":\"2022-09-07T21:01:31Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_637596c30f3d4f09975d505e0ec2a673\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_71ab07eb25584083b7f349d75520076b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:31Z\",\"updated_at\":\"2022-09-07T21:01:31Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_637596c30f3d4f09975d505e0ec2a673\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5bb97417cf13437d860ae6d9cda7412d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:31Z\",\"updated_at\":\"2022-09-07T21:01:31Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_637596c30f3d4f09975d505e0ec2a673\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9f01a43e695142e7a625898f01ba3a96\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:31Z\",\"updated_at\":\"2022-09-07T21:01:31Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_637596c30f3d4f09975d505e0ec2a673\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3f72bf7d2ef011edaa3aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:30-06:00\",\"updated_at\":\"2022-09-07T15:01:30-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3f74d6382ef011edb360ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:31-06:00\",\"updated_at\":\"2022-09-07T15:01:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3f72bf7d2ef011edaa3aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:30-06:00\",\"updated_at\":\"2022-09-07T15:01:30-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_637596c30f3d4f09975d505e0ec2a673\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96ae630e83c2e788d54300135ffd", + "x-ep-request-uuid": "3bde9a26631906aae79a64bc002e96ce", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_e8cb966297b047dabe98a41c34fc6402", - "ETag": "W/\"c2d6fa43cfbe447bc381fc679c837962\"", - "x-runtime": "0.453403", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_637596c30f3d4f09975d505e0ec2a673", + "ETag": "W/\"2729fb29b50293504bd1b60939924375\"", + "x-runtime": "0.420115", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 242, - "RecordedAt": "2022-08-30T15:40:18.939103-06:00", + "Duration": 164, + "RecordedAt": "2022-09-07T15:01:31.532962-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_e8cb966297b047dabe98a41c34fc6402/smartrate" + "Uri": "https://api.easypost.com/v2/shipments/shp_637596c30f3d4f09975d505e0ec2a673/smartrate" }, "Response": { - "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:18Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_04a1b7243e3e444ebfd08de23fb1c72a\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_e8cb966297b047dabe98a41c34fc6402\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:40:18Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:18Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_bb40087388e6430faed4701974df2ef9\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_e8cb966297b047dabe98a41c34fc6402\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:40:18Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:18Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_c1d38fea7e2b4c81a071babb0cad3998\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_e8cb966297b047dabe98a41c34fc6402\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-08-30T21:40:18Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:18Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_6edecdb07fff498887e2d574970b6f48\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_e8cb966297b047dabe98a41c34fc6402\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-08-30T21:40:18Z\"}]}", + "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_3c22e2649cb54a76a4c78936bf2f5ca4\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_637596c30f3d4f09975d505e0ec2a673\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-09-07T21:01:31Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_71ab07eb25584083b7f349d75520076b\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_637596c30f3d4f09975d505e0ec2a673\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2022-09-07T21:01:31Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_5bb97417cf13437d860ae6d9cda7412d\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_637596c30f3d4f09975d505e0ec2a673\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":4,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-09-07T21:01:31Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_9f01a43e695142e7a625898f01ba3a96\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_637596c30f3d4f09975d505e0ec2a673\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":1,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-09-07T21:01:31Z\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,13 +84,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96ae630e83c2e788d5430013604f", + "x-ep-request-uuid": "3bde9a26631906abe79a64bc002e9706", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6c565b848e4d6ad4fcb36c60fbf7245e\"", - "x-runtime": "0.157512", + "ETag": "W/\"c97567855d8f1f9bc1c4e3cbf4aa4909\"", + "x-runtime": "0.102883", "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/one_call_buy_shipment_with_carbon_offset.json b/EasyPost.Tests/cassettes/netstandard/shipment/one_call_buy_shipment_with_carbon_offset.json index 6c491829a..a07862ef6 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/one_call_buy_shipment_with_carbon_offset.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/one_call_buy_shipment_with_carbon_offset.json @@ -1,7 +1,7 @@ [ { - "Duration": 743, - "RecordedAt": "2022-08-30T15:40:29.545693-06:00", + "Duration": 531, + "RecordedAt": "2022-09-07T15:01:41.588218-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Dr. Steve Brule\",\"street1\":\"179 N Harbor Dr\",\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":true}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:28Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658105\",\"updated_at\":\"2022-08-30T21:40:29Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5d41d55e28ac11ed8a4eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:28-06:00\",\"updated_at\":\"2022-08-30T15:40:28-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_794ed218d04840979ac74b5193085e47\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:28Z\",\"updated_at\":\"2022-08-30T21:40:28Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_4545790fefff4f65b33dbf52e072eb2e\",\"created_at\":\"2022-08-30T21:40:29Z\",\"updated_at\":\"2022-08-30T21:40:29Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:40: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/20220830/b9a018bf95aa4271bc6e1196dd96fe2e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_fb03d4c7463845aa9860768701e1853f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:28Z\",\"updated_at\":\"2022-08-30T21:40:28Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_1be9d75b80594f9282bb988a465cd05e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_0061c7f20a81413180ee176857c70a4a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:28Z\",\"updated_at\":\"2022-08-30T21:40:28Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_1be9d75b80594f9282bb988a465cd05e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_bc1e2ec8cda4447db3306d51aa369603\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:28Z\",\"updated_at\":\"2022-08-30T21:40:28Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_1be9d75b80594f9282bb988a465cd05e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_7d1953294a154b0a94036995e189a343\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:28Z\",\"updated_at\":\"2022-08-30T21:40:28Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1be9d75b80594f9282bb988a465cd05e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_fb03d4c7463845aa9860768701e1853f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:29Z\",\"updated_at\":\"2022-08-30T21:40:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_1be9d75b80594f9282bb988a465cd05e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_2cf5ec605b6c4ff4a97999153bf22a06\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658105\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:40:29Z\",\"updated_at\":\"2022-08-30T21:40:29Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_1be9d75b80594f9282bb988a465cd05e\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzJjZjVlYzYwNWI2YzRmZjRhOTc5OTkxNTNiZjIyYTA2\"},\"to_address\":{\"id\":\"adr_5d3fd0ba28ac11ed9e71ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:28-06:00\",\"updated_at\":\"2022-08-30T15:40:28-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_5d41d55e28ac11ed8a4eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:28-06:00\",\"updated_at\":\"2022-08-30T15:40:28-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5d3fd0ba28ac11ed9e71ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:28-06:00\",\"updated_at\":\"2022-08-30T15:40:28-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_1be9d75b80594f9282bb988a465cd05e\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:40Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478801\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_451505e82ef011edabc2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:40-06:00\",\"updated_at\":\"2022-09-07T15:01:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_24a9a4eff774415283e4aed09b1722ab\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:40Z\",\"updated_at\":\"2022-09-07T21:01:40Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_7cdf1ca7a6154f3db15918ec7788f1b2\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/5079b3e1284b497f82aad4b518081d02.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_11cd7390126040fd99aee873ee0ef82b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:40Z\",\"updated_at\":\"2022-09-07T21:01:40Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_5121d58568be4d2f8b8b263c0dd07476\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_f19a9b72d5424a558297ec1f07cfc4d0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:40Z\",\"updated_at\":\"2022-09-07T21:01:40Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_5121d58568be4d2f8b8b263c0dd07476\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_d09f066d6b0b4e659c1738bd457dbfc9\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:40Z\",\"updated_at\":\"2022-09-07T21:01:40Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_5121d58568be4d2f8b8b263c0dd07476\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_523c53e2251f4119b391f220d164dda5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:40Z\",\"updated_at\":\"2022-09-07T21:01:40Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_5121d58568be4d2f8b8b263c0dd07476\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d09f066d6b0b4e659c1738bd457dbfc9\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_5121d58568be4d2f8b8b263c0dd07476\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_73f305f290f04a1fae36d02431614630\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478801\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_5121d58568be4d2f8b8b263c0dd07476\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzczZjMwNWYyOTBmMDRhMWZhZTM2ZDAyNDMxNjE0NjMw\"},\"to_address\":{\"id\":\"adr_451283f22ef011edabc1ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:40-06:00\",\"updated_at\":\"2022-09-07T15:01:40-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_451505e82ef011edabc2ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:40-06:00\",\"updated_at\":\"2022-09-07T15:01:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_451283f22ef011edabc1ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:40-06:00\",\"updated_at\":\"2022-09-07T15:01:40-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_5121d58568be4d2f8b8b263c0dd07476\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96ae630e83cce788d85a001363e5", + "x-ep-request-uuid": "3bde9a29631906b4e79a64db002e9a9b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_1be9d75b80594f9282bb988a465cd05e", - "ETag": "W/\"e00b1a898d55bc621e7e034ca37ce207\"", - "x-runtime": "1.431565", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_5121d58568be4d2f8b8b263c0dd07476", + "ETag": "W/\"9c8ed90807c4c89a94b388978a44f94b\"", + "x-runtime": "1.258069", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/refund.json b/EasyPost.Tests/cassettes/netstandard/shipment/refund.json index f7dc5bd8d..bc6b747ee 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/refund.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/refund.json @@ -1,7 +1,7 @@ [ { - "Duration": 285, - "RecordedAt": "2022-08-30T15:40:16.042842-06:00", + "Duration": 386, + "RecordedAt": "2022-09-07T15:01:28.912241-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:15Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658075\",\"updated_at\":\"2022-08-30T21:40:16Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_557dc11428ac11ed9becac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:15-06:00\",\"updated_at\":\"2022-08-30T15:40:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_bf801ea129604dbb970b2895727c43d0\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_61ecbd0daaef4a88bc16b1b29455c47c\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:40:15Z\",\"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/20220830/1eb270744842486ba923945bdff840fa.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_ff687d25bd66484f8f5d23f254c62a16\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fdd39429338c42b094a32745df246070\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b0bc7f933678495c881e872cb6666a10\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_81c71ad761e94825980d0f116b095c0c\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_81c71ad761e94825980d0f116b095c0c\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ed62be67dd00489fb4ac774238fb0c98\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658075\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:40:16Z\",\"updated_at\":\"2022-08-30T21:40:16Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2VkNjJiZTY3ZGQwMDQ4OWZiNGFjNzc0MjM4ZmIwYzk4\"},\"to_address\":{\"id\":\"adr_557c109628ac11ed87d2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:15-06:00\",\"updated_at\":\"2022-08-30T15:40:15-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_557dc11428ac11ed9becac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:15-06:00\",\"updated_at\":\"2022-08-30T15:40:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_557c109628ac11ed87d2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:15-06:00\",\"updated_at\":\"2022-08-30T15:40:15-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:27Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478764\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3d9bf15b2ef011eda9a0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6a20d434a9d6483b9899ec92f1996103\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_7f6076f11ab54e9c88439870b839becf\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/8d4144dc49a94cf4ae1e2801efbca16c.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_8b42b92593a54b53be218ba63d4d9dc7\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f756b5edd2ac4255a9cae37b143e1cdc\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e67bade987c343ca8d884dfdf69eb7d0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a1d8c359507b4d1d9b52bac2d5c82a19\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a1d8c359507b4d1d9b52bac2d5c82a19\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_27d65b052e214690813885f6d137c0cd\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478764\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzI3ZDY1YjA1MmUyMTQ2OTA4MTM4ODVmNmQxMzdjMGNk\"},\"to_address\":{\"id\":\"adr_3d9971132ef011edb2c3ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:28-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3d9bf15b2ef011eda9a0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3d9971132ef011edb2c3ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:28-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_8428691821914c71b1d96719a87671de\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b4630e83bfe788d54100135e8d", + "x-ep-request-uuid": "3bde9a25631906a7e79a64b9002e9541", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_9887c42d223c48dfa6a8786f584194d1", - "ETag": "W/\"6baa2e0fe308f22652f850bc5ac72fd8\"", - "x-runtime": "0.964703", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_8428691821914c71b1d96719a87671de", + "ETag": "W/\"e8ce645be439527d11bd03f5452b43ed\"", + "x-runtime": "1.112036", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", + "x-canary": "direct", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, @@ -53,8 +54,8 @@ } }, { - "Duration": 244, - "RecordedAt": "2022-08-30T15:40:16.349883-06:00", + "Duration": 301, + "RecordedAt": "2022-09-07T15:01:29.269616-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +67,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_9887c42d223c48dfa6a8786f584194d1/refund" + "Uri": "https://api.easypost.com/v2/shipments/shp_8428691821914c71b1d96719a87671de/refund" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:15Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658075\",\"updated_at\":\"2022-08-30T21:40:16Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_557dc11428ac11ed9becac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:15-06:00\",\"updated_at\":\"2022-08-30T15:40:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_bf801ea129604dbb970b2895727c43d0\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_61ecbd0daaef4a88bc16b1b29455c47c\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:40:15Z\",\"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/20220830/1eb270744842486ba923945bdff840fa.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_ff687d25bd66484f8f5d23f254c62a16\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fdd39429338c42b094a32745df246070\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b0bc7f933678495c881e872cb6666a10\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_81c71ad761e94825980d0f116b095c0c\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":\"submitted\",\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_81c71ad761e94825980d0f116b095c0c\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:15Z\",\"updated_at\":\"2022-08-30T21:40:15Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ed62be67dd00489fb4ac774238fb0c98\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658075\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-30T21:40:16Z\",\"updated_at\":\"2022-08-30T21:40:16Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-30T21:40:16Z\",\"shipment_id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-30T21:40:16Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-31T10:17:16Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrX2VkNjJiZTY3ZGQwMDQ4OWZiNGFjNzc0MjM4ZmIwYzk4\"},\"to_address\":{\"id\":\"adr_557c109628ac11ed87d2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:15-06:00\",\"updated_at\":\"2022-08-30T15:40:15-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_557dc11428ac11ed9becac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:15-06:00\",\"updated_at\":\"2022-08-30T15:40:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_557c109628ac11ed87d2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:15-06:00\",\"updated_at\":\"2022-08-30T15:40:15-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9887c42d223c48dfa6a8786f584194d1\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:27Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478764\",\"updated_at\":\"2022-09-07T21:01:29Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3d9bf15b2ef011eda9a0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6a20d434a9d6483b9899ec92f1996103\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_7f6076f11ab54e9c88439870b839becf\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/8d4144dc49a94cf4ae1e2801efbca16c.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_8b42b92593a54b53be218ba63d4d9dc7\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f756b5edd2ac4255a9cae37b143e1cdc\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e67bade987c343ca8d884dfdf69eb7d0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a1d8c359507b4d1d9b52bac2d5c82a19\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":\"submitted\",\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a1d8c359507b4d1d9b52bac2d5c82a19\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_27d65b052e214690813885f6d137c0cd\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478764\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:29Z\",\"updated_at\":\"2022-09-07T21:01:29Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:29Z\",\"shipment_id\":\"shp_8428691821914c71b1d96719a87671de\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:29Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:29Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzI3ZDY1YjA1MmUyMTQ2OTA4MTM4ODVmNmQxMzdjMGNk\"},\"to_address\":{\"id\":\"adr_3d9971132ef011edb2c3ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:28-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3d9bf15b2ef011eda9a0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3d9971132ef011edb2c3ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:28-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_8428691821914c71b1d96719a87671de\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,13 +85,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b4630e83c0e788d54100135f15", + "x-ep-request-uuid": "3bde9a25631906a9e79a64b9002e95ed", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"b2efef3561598d29325a02583fd546aa\"", - "x-runtime": "0.174148", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"00349bcf85d5781f12459a683f38e250\"", + "x-runtime": "0.241690", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/regenerate_rates.json b/EasyPost.Tests/cassettes/netstandard/shipment/regenerate_rates.json index c5e5f4a98..a174180df 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/regenerate_rates.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/regenerate_rates.json @@ -1,7 +1,7 @@ [ { - "Duration": 72, - "RecordedAt": "2022-08-30T15:40:22.094315-06:00", + "Duration": 814, + "RecordedAt": "2022-09-07T15:01:34.215861-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:21Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:40:22Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_8754972c9139439da0ad12e1c9b570ab\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:40:21Z\",\"updated_at\":\"2022-08-30T21:40:21Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_fc1043594ec04999a2ed7dc9ddefb656\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:40:21Z\",\"updated_at\":\"2022-08-30T21:40:21Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_593c1ec728ac11edbf2fac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:21-06:00\",\"updated_at\":\"2022-08-30T15:40:21-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_3345a8b6add14677a9aacb9b9c5af300\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:21Z\",\"updated_at\":\"2022-08-30T21:40:21Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_d533871124b24e4fbe344932b01f9c50\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:22Z\",\"updated_at\":\"2022-08-30T21:40:22Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_3d2b9b53bf64435b9aa750ebb4d72785\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9421820253dc4252b0cd70883ccf7b45\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:22Z\",\"updated_at\":\"2022-08-30T21:40:22Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_3d2b9b53bf64435b9aa750ebb4d72785\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c7a5f5d59d674d96b0f0729820a50130\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:22Z\",\"updated_at\":\"2022-08-30T21:40:22Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3d2b9b53bf64435b9aa750ebb4d72785\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1c155798456742f582e8a8a1e0218df3\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:22Z\",\"updated_at\":\"2022-08-30T21:40:22Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3d2b9b53bf64435b9aa750ebb4d72785\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_593900ed28ac11edbf2eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:21-06:00\",\"updated_at\":\"2022-08-30T15:40:21-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_593c1ec728ac11edbf2fac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:21-06:00\",\"updated_at\":\"2022-08-30T15:40:21-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_593900ed28ac11edbf2eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:21-06:00\",\"updated_at\":\"2022-08-30T15:40:21-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_3d2b9b53bf64435b9aa750ebb4d72785\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:33Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T21:01:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_3f61fedc97cc4281b21cd7dc95100b1f\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:33Z\",\"updated_at\":\"2022-09-07T21:01:33Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_7674bc50b67f4eea8fe934f7a22447b8\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:33Z\",\"updated_at\":\"2022-09-07T21:01:33Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_411da0e92ef011edb3fcac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:33-06:00\",\"updated_at\":\"2022-09-07T15:01:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_429b59cddb1b4cdfb569bb6c5a282bc9\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:33Z\",\"updated_at\":\"2022-09-07T21:01:33Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_6c65b63a7c6f417d97129780ca33ddff\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:34Z\",\"updated_at\":\"2022-09-07T21:01:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_5b8e0ad6cbc84aac8ca9ffe783ea517e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_95d0cfe88e7e42668b68bb8d037c259d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:34Z\",\"updated_at\":\"2022-09-07T21:01:34Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_5b8e0ad6cbc84aac8ca9ffe783ea517e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_cde2bb005e3d411fb11741ef7fb84ae8\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:34Z\",\"updated_at\":\"2022-09-07T21:01:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_5b8e0ad6cbc84aac8ca9ffe783ea517e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_63b56a0eb1d6450c8db897c241a02a64\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:34Z\",\"updated_at\":\"2022-09-07T21:01:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_5b8e0ad6cbc84aac8ca9ffe783ea517e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_411aefe02ef011eda278ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:33-06:00\",\"updated_at\":\"2022-09-07T15:01:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_411da0e92ef011edb3fcac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:33-06:00\",\"updated_at\":\"2022-09-07T15:01:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_411aefe02ef011eda278ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:33-06:00\",\"updated_at\":\"2022-09-07T15:01:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_5b8e0ad6cbc84aac8ca9ffe783ea517e\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b2630e83c5e788d54700136183", + "x-ep-request-uuid": "3bde9a27631906ade79a64bf002e97ee", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_3d2b9b53bf64435b9aa750ebb4d72785", - "ETag": "W/\"f446670a7186fa1b590c377cbb68857d\"", - "x-runtime": "0.717777", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_5b8e0ad6cbc84aac8ca9ffe783ea517e", + "ETag": "W/\"3af24751223f0135cd14f59425903176\"", + "x-runtime": "0.519371", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 511, - "RecordedAt": "2022-08-30T15:40:22.655814-06:00", + "Duration": 608, + "RecordedAt": "2022-09-07T15:01:34.873505-06:00", "Request": { "Body": "{\"carbon_offset\":false}", "BodyContentType": "Json", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_3d2b9b53bf64435b9aa750ebb4d72785/rerate" + "Uri": "https://api.easypost.com/v2/shipments/shp_5b8e0ad6cbc84aac8ca9ffe783ea517e/rerate" }, "Response": { - "Body": "{\"rates\":[{\"id\":\"rate_466796c01cd04f0b8788ed074c091a18\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:22Z\",\"updated_at\":\"2022-08-30T21:40:22Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_3d2b9b53bf64435b9aa750ebb4d72785\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ed5ce8308e914b8c8d77e4041c443f2a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:22Z\",\"updated_at\":\"2022-08-30T21:40:22Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3d2b9b53bf64435b9aa750ebb4d72785\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d1e369d6e7ae42398a9a99ab965b9638\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:22Z\",\"updated_at\":\"2022-08-30T21:40:22Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_3d2b9b53bf64435b9aa750ebb4d72785\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b8fa78dd88e443719d0c3f496922078e\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:22Z\",\"updated_at\":\"2022-08-30T21:40:22Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3d2b9b53bf64435b9aa750ebb4d72785\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}]}", + "Body": "{\"rates\":[{\"id\":\"rate_1ae6aa0a9d90412481a514939dcf68f1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:34Z\",\"updated_at\":\"2022-09-07T21:01:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_5b8e0ad6cbc84aac8ca9ffe783ea517e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c3bb2c69d0c247f18c14e69fbf938824\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:34Z\",\"updated_at\":\"2022-09-07T21:01:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_5b8e0ad6cbc84aac8ca9ffe783ea517e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_07a9822b6ba54d708dee27cc1c8329fd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:34Z\",\"updated_at\":\"2022-09-07T21:01:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_5b8e0ad6cbc84aac8ca9ffe783ea517e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_54961a7e37894489b32ecf5dc5567fae\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:34Z\",\"updated_at\":\"2022-09-07T21:01:34Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_5b8e0ad6cbc84aac8ca9ffe783ea517e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b2630e83c6e788d547001361e9", + "x-ep-request-uuid": "3bde9a27631906aee79a64bf002e9826", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"8e7e54e15b9e72877881c599d65e22e8\"", - "x-runtime": "0.442779", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"27f823acf5cfec84b15f8eda941e6976\"", + "x-runtime": "0.552190", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/regenerate_rates_with_carbon_offset.json b/EasyPost.Tests/cassettes/netstandard/shipment/regenerate_rates_with_carbon_offset.json index ce9bf59d7..1a225222c 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/regenerate_rates_with_carbon_offset.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/regenerate_rates_with_carbon_offset.json @@ -1,7 +1,7 @@ [ { - "Duration": 424, - "RecordedAt": "2022-08-30T15:40:31.044843-06:00", + "Duration": 237, + "RecordedAt": "2022-09-07T15:01:42.885557-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Dr. Steve Brule\",\"street1\":\"179 N Harbor Dr\",\"city\":\"Redondo Beach\",\"state\":\"CA\",\"zip\":\"90277\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:30Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361135658112\",\"updated_at\":\"2022-08-30T21:40:31Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5e5ae70b28ac11ed8aaaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:30-06:00\",\"updated_at\":\"2022-08-30T15:40:30-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_61a11bcd145744859e483041ecfc387e\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:30Z\",\"updated_at\":\"2022-08-30T21:40:30Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_3f22614439c9412ead87b3e4c6092955\",\"created_at\":\"2022-08-30T21:40:30Z\",\"updated_at\":\"2022-08-30T21:40:30Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-08-30T21:40: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/20220830/116b7bff6cc846bf96cce527596fee1e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_8e648e04de494a91b2110387efdeeaf7\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:30Z\",\"updated_at\":\"2022-08-30T21:40:30Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_fc284e07206046ed947d7992ffbc5b9f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3da075ba7b474fefa7adf7e0596abe43\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:30Z\",\"updated_at\":\"2022-08-30T21:40:30Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_fc284e07206046ed947d7992ffbc5b9f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a853e7258b194f6994ad162b38170dc3\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:30Z\",\"updated_at\":\"2022-08-30T21:40:30Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_fc284e07206046ed947d7992ffbc5b9f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_57788ed9eeb048359e424e08bcedb9d8\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:30Z\",\"updated_at\":\"2022-08-30T21:40:30Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_fc284e07206046ed947d7992ffbc5b9f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3da075ba7b474fefa7adf7e0596abe43\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:30Z\",\"updated_at\":\"2022-08-30T21:40:30Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_fc284e07206046ed947d7992ffbc5b9f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_f5b0ddb2a35845d5bff0c35764931cbf\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361135658112\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-30T21:40:31Z\",\"updated_at\":\"2022-08-30T21:40:31Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_fc284e07206046ed947d7992ffbc5b9f\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2Y1YjBkZGIyYTM1ODQ1ZDViZmYwYzM1NzY0OTMxY2Jm\"},\"to_address\":{\"id\":\"adr_5e59165e28ac11ed80e2ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:30-06:00\",\"updated_at\":\"2022-08-30T15:40:30-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_5e5ae70b28ac11ed8aaaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:30-06:00\",\"updated_at\":\"2022-08-30T15:40:30-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5e59165e28ac11ed80e2ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:30-06:00\",\"updated_at\":\"2022-08-30T15:40:30-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_fc284e07206046ed947d7992ffbc5b9f\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:42Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478825\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4607b27a2ef011edabf7ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:42-06:00\",\"updated_at\":\"2022-09-07T15:01:42-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_ccd9d999ab7940eebbb08d54222d7c66\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_d000fd42ad4e40ef9589062dec63e34e\",\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:42Z\",\"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/20220907/8bfe9a31e09949d389938727e7e4637b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_bf260d780198470e93f731337782cfd0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e225ca0297204bfe8b9395e3935dcd6e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_67fc883df3e24288bd0ae23ab89b5389\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_e225ca0297204bfe8b9395e3935dcd6e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ec5914897e2542c5a0e25714623cb1d3\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e225ca0297204bfe8b9395e3935dcd6e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_22dd5f7d397a4c50800274dff08e0b74\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e225ca0297204bfe8b9395e3935dcd6e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_22dd5f7d397a4c50800274dff08e0b74\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e225ca0297204bfe8b9395e3935dcd6e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_d22a32aafc264b099b4dab619e4c6289\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478825\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_e225ca0297204bfe8b9395e3935dcd6e\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2QyMmEzMmFhZmMyNjRiMDk5YjRkYWI2MTllNGM2Mjg5\"},\"to_address\":{\"id\":\"adr_46051ec22ef011eda3b0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:42-06:00\",\"updated_at\":\"2022-09-07T15:01:42-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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_4607b27a2ef011edabf7ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:42-06:00\",\"updated_at\":\"2022-09-07T15:01:42-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_46051ec22ef011eda3b0ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:42-06:00\",\"updated_at\":\"2022-09-07T15:01:42-06:00\",\"name\":\"DR. STEVE BRULE\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"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.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.57000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e225ca0297204bfe8b9395e3935dcd6e\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83cee788d85b0013645d", + "x-ep-request-uuid": "3bde9a28631906b5e79a64df002e9b2e", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_fc284e07206046ed947d7992ffbc5b9f", - "ETag": "W/\"d6ade60e165a3617d367f8281f1ae6a9\"", - "x-runtime": "1.091650", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_e225ca0297204bfe8b9395e3935dcd6e", + "ETag": "W/\"0a1b50b8ad23e32e0ded37302ef7d016\"", + "x-runtime": "0.958093", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 493, - "RecordedAt": "2022-08-30T15:40:31.606283-06:00", + "Duration": 473, + "RecordedAt": "2022-09-07T15:01:43.412887-06:00", "Request": { "Body": "{\"carbon_offset\":true}", "BodyContentType": "Json", @@ -69,10 +69,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_fc284e07206046ed947d7992ffbc5b9f/rerate" + "Uri": "https://api.easypost.com/v2/shipments/shp_e225ca0297204bfe8b9395e3935dcd6e/rerate" }, "Response": { - "Body": "{\"rates\":[{\"id\":\"rate_429741362a65433f8c3e9619a293e9f1\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:31Z\",\"updated_at\":\"2022-08-30T21:40:31Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_fc284e07206046ed947d7992ffbc5b9f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_bdacdf3ffc8e4ff08b1810d0af45a99c\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:31Z\",\"updated_at\":\"2022-08-30T21:40:31Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_fc284e07206046ed947d7992ffbc5b9f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_91bb5b43e507462a83c890c02103790f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:31Z\",\"updated_at\":\"2022-08-30T21:40:31Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_fc284e07206046ed947d7992ffbc5b9f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_1de5dc1a060c460a98a67c925678632a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:31Z\",\"updated_at\":\"2022-08-30T21:40:31Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_fc284e07206046ed947d7992ffbc5b9f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}]}", + "Body": "{\"rates\":[{\"id\":\"rate_d40e482da8f84025ab679cbe4baa4206\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:43Z\",\"updated_at\":\"2022-09-07T21:01:43Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.75\",\"currency\":\"USD\",\"retail_rate\":\"7.75\",\"retail_currency\":\"USD\",\"list_rate\":\"7.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":5,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":5,\"shipment_id\":\"shp_e225ca0297204bfe8b9395e3935dcd6e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_01203ba1413945db94e0547551605ffe\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:43Z\",\"updated_at\":\"2022-09-07T21:01:43Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.90\",\"currency\":\"USD\",\"retail_rate\":\"9.45\",\"retail_currency\":\"USD\",\"list_rate\":\"7.90\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e225ca0297204bfe8b9395e3935dcd6e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_92e120da8dcb4e3882d50c0bdf0a6954\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:43Z\",\"updated_at\":\"2022-09-07T21:01:43Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.57\",\"currency\":\"USD\",\"retail_rate\":\"5.57\",\"retail_currency\":\"USD\",\"list_rate\":\"5.57\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e225ca0297204bfe8b9395e3935dcd6e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_c68fdc2d1be24e0a825470dfd285adee\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:43Z\",\"updated_at\":\"2022-09-07T21:01:43Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"29.50\",\"currency\":\"USD\",\"retail_rate\":\"33.55\",\"retail_currency\":\"USD\",\"list_rate\":\"29.50\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e225ca0297204bfe8b9395e3935dcd6e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,13 +87,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83cfe788d85b001364b5", + "x-ep-request-uuid": "3bde9a28631906b7e79a64df002e9b8f", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"0782174c1c2ca7ae2a9e156cef591983\"", - "x-runtime": "0.346562", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"5da3b9503108868704a8feabc382c7a8\"", + "x-runtime": "0.365727", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/retrieve.json b/EasyPost.Tests/cassettes/netstandard/shipment/retrieve.json index 2adba0233..83e66cd11 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 904, - "RecordedAt": "2022-08-30T15:40:25.870094-06:00", + "Duration": 844, + "RecordedAt": "2022-09-07T15:01:38.099051-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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.0,\"hs_tariff_number\":654321,\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:25Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:40:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_e3a02e984cc74702a88068ddd2471cd0\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_2e75e2b2d4294302a26a486396142875\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_5b98045428ac11ed8b4eac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:25-06:00\",\"updated_at\":\"2022-08-30T15:40:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_220816c120bb4566a2aa81c4a6e4db1d\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8147425459c14529b692b55aece9d48a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_dab573be857649d0bf6b6a7a0b12c955\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_245dbb0e7bd940a88e34b26710f07361\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_dab573be857649d0bf6b6a7a0b12c955\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_117a223cb3c04a15a82354e415696d49\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_dab573be857649d0bf6b6a7a0b12c955\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f106d0578c4f49e493e553204831a85a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_dab573be857649d0bf6b6a7a0b12c955\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5b93a44428ac11ed89d2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:25-06:00\",\"updated_at\":\"2022-08-30T15:40:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5b98045428ac11ed8b4eac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:25-06:00\",\"updated_at\":\"2022-08-30T15:40:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5b93a44428ac11ed89d2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:25-06:00\",\"updated_at\":\"2022-08-30T15:40:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_dab573be857649d0bf6b6a7a0b12c955\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:37Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T21:01:38Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_c533ba83220647b7944e66bce70c3784\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:37Z\",\"updated_at\":\"2022-09-07T21:01:37Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_8ca90d811cb243e78aadef092c817941\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:37Z\",\"updated_at\":\"2022-09-07T21:01:37Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_4367c2552ef011eda7c3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:37-06:00\",\"updated_at\":\"2022-09-07T15:01:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_4e2878b1560b4d4bafc1bbe445b67060\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:37Z\",\"updated_at\":\"2022-09-07T21:01:37Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_940bb17ebb72437b92d5845f74aee4e0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_53751327c864427686cefbbc8f186106\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b807a17525194ec9b3ae8091b5ce9f95\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_53751327c864427686cefbbc8f186106\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b17a743896c0480c83589b3b9ec36334\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_53751327c864427686cefbbc8f186106\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a850db0f33f04c51a73f9d3facb752bb\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_53751327c864427686cefbbc8f186106\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_4365e9922ef011eda7c2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:37-06:00\",\"updated_at\":\"2022-09-07T15:01:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_4367c2552ef011eda7c3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:37-06:00\",\"updated_at\":\"2022-09-07T15:01:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_4365e9922ef011eda7c2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:37-06:00\",\"updated_at\":\"2022-09-07T15:01:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_53751327c864427686cefbbc8f186106\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,14 +34,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83c9e788d85700136310", + "x-ep-request-uuid": "3bde9a29631906b1e79a64c1002e994d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_dab573be857649d0bf6b6a7a0b12c955", - "ETag": "W/\"4d2eb69333136370e8f700751dd63f30\"", - "x-runtime": "0.573460", + "Location": "/api/v2/shipments/shp_53751327c864427686cefbbc8f186106", + "ETag": "W/\"f4c3fa404605cee0668cd1f0160b23f8\"", + "x-runtime": "0.570925", "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -53,8 +53,8 @@ } }, { - "Duration": 147, - "RecordedAt": "2022-08-30T15:40:26.065196-06:00", + "Duration": 160, + "RecordedAt": "2022-09-07T15:01:38.308484-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_dab573be857649d0bf6b6a7a0b12c955" + "Uri": "https://api.easypost.com/v2/shipments/shp_53751327c864427686cefbbc8f186106" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:25Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-08-30T21:40:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_e3a02e984cc74702a88068ddd2471cd0\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_2e75e2b2d4294302a26a486396142875\",\"object\":\"CustomsItem\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_5b98045428ac11ed8b4eac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:25-06:00\",\"updated_at\":\"2022-08-30T15:40:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_220816c120bb4566a2aa81c4a6e4db1d\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8147425459c14529b692b55aece9d48a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_dab573be857649d0bf6b6a7a0b12c955\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_245dbb0e7bd940a88e34b26710f07361\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_dab573be857649d0bf6b6a7a0b12c955\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_117a223cb3c04a15a82354e415696d49\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_dab573be857649d0bf6b6a7a0b12c955\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f106d0578c4f49e493e553204831a85a\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:25Z\",\"updated_at\":\"2022-08-30T21:40:25Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_dab573be857649d0bf6b6a7a0b12c955\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5b93a44428ac11ed89d2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:25-06:00\",\"updated_at\":\"2022-08-30T15:40:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5b98045428ac11ed8b4eac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:25-06:00\",\"updated_at\":\"2022-08-30T15:40:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_5b93a44428ac11ed89d2ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:25-06:00\",\"updated_at\":\"2022-08-30T15:40:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_dab573be857649d0bf6b6a7a0b12c955\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:37Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"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\":\"2022-09-07T21:01:38Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_c533ba83220647b7944e66bce70c3784\",\"object\":\"CustomsInfo\",\"created_at\":\"2022-09-07T21:01:37Z\",\"updated_at\":\"2022-09-07T21:01:37Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Dr. 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_8ca90d811cb243e78aadef092c817941\",\"object\":\"CustomsItem\",\"created_at\":\"2022-09-07T21:01:37Z\",\"updated_at\":\"2022-09-07T21:01:37Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.0\",\"weight\":11.0,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_4367c2552ef011eda7c3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:37-06:00\",\"updated_at\":\"2022-09-07T15:01:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_4e2878b1560b4d4bafc1bbe445b67060\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:37Z\",\"updated_at\":\"2022-09-07T21:01:37Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_940bb17ebb72437b92d5845f74aee4e0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_53751327c864427686cefbbc8f186106\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b807a17525194ec9b3ae8091b5ce9f95\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_53751327c864427686cefbbc8f186106\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b17a743896c0480c83589b3b9ec36334\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_53751327c864427686cefbbc8f186106\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a850db0f33f04c51a73f9d3facb752bb\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:38Z\",\"updated_at\":\"2022-09-07T21:01:38Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_53751327c864427686cefbbc8f186106\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_4365e9922ef011eda7c2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:37-06:00\",\"updated_at\":\"2022-09-07T15:01:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_4367c2552ef011eda7c3ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:37-06:00\",\"updated_at\":\"2022-09-07T15:01:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_4365e9922ef011eda7c2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:37-06:00\",\"updated_at\":\"2022-09-07T15:01:37-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_53751327c864427686cefbbc8f186106\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,16 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83cae788d8570013634a", + "x-ep-request-uuid": "3bde9a29631906b2e79a64c1002e99ab", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"4d2eb69333136370e8f700751dd63f30\"", - "x-runtime": "0.072982", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"f4c3fa404605cee0668cd1f0160b23f8\"", + "x-runtime": "0.074874", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/shipment/smartrate.json b/EasyPost.Tests/cassettes/netstandard/shipment/smartrate.json index d41d1a0ff..853828143 100644 --- a/EasyPost.Tests/cassettes/netstandard/shipment/smartrate.json +++ b/EasyPost.Tests/cassettes/netstandard/shipment/smartrate.json @@ -1,7 +1,7 @@ [ { - "Duration": 875, - "RecordedAt": "2022-08-30T15:40:19.841956-06:00", + "Duration": 719, + "RecordedAt": "2022-09-07T15:01:32.27855-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"}},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-08-30T21:40:19Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-08-30T21:40:19Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5805cf4e28ac11edbed4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:19-06:00\",\"updated_at\":\"2022-08-30T15:40:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_3889b6a7a6254efdab1fdbe470c351d7\",\"object\":\"Parcel\",\"created_at\":\"2022-08-30T21:40:19Z\",\"updated_at\":\"2022-08-30T21:40:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_62987b575c8748ccb5c18d859b6dcb2d\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:19Z\",\"updated_at\":\"2022-08-30T21:40:19Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_14fff98d31724f20b02679f689206d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_711a130ea8d34423afe9d3d6e5ed2dab\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:19Z\",\"updated_at\":\"2022-08-30T21:40:19Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_14fff98d31724f20b02679f689206d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d7eddee983db4bdfac43f832e9a40c5f\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:19Z\",\"updated_at\":\"2022-08-30T21:40:19Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_14fff98d31724f20b02679f689206d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f3f1f8af8f2444f1905e8f7ef03ba3c5\",\"object\":\"Rate\",\"created_at\":\"2022-08-30T21:40:19Z\",\"updated_at\":\"2022-08-30T21:40:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_14fff98d31724f20b02679f689206d7e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_580275a128ac11ed8aa2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:19-06:00\",\"updated_at\":\"2022-08-30T15:40:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_5805cf4e28ac11edbed4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:19-06:00\",\"updated_at\":\"2022-08-30T15:40:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_580275a128ac11ed8aa2ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-30T15:40:19-06:00\",\"updated_at\":\"2022-08-30T15:40:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_14fff98d31724f20b02679f689206d7e\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-07T21:01:31Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_0b351eb47cac405dadaf54c659c0a0eb\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"}],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2022-09-07T21:01:32Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4002472e2ef011eda722ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:31-06:00\",\"updated_at\":\"2022-09-07T15:01:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_d852ff1c8e2c4eceb9a8503bfd896428\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:31Z\",\"updated_at\":\"2022-09-07T21:01:31Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_116e13c1d9894f919e41ddca68448ed1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:32Z\",\"updated_at\":\"2022-09-07T21:01:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_c0e3d277d6a042f0992a3d9c1054ec75\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2267526172ab4ecba150ba01bed9dbfa\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:32Z\",\"updated_at\":\"2022-09-07T21:01:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c0e3d277d6a042f0992a3d9c1054ec75\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8563715d00b54ecf933903294ee9df44\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:32Z\",\"updated_at\":\"2022-09-07T21:01:32Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_c0e3d277d6a042f0992a3d9c1054ec75\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_76046760ff5a4437be637edfb954213e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:32Z\",\"updated_at\":\"2022-09-07T21:01:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c0e3d277d6a042f0992a3d9c1054ec75\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_3fffe3932ef011edaa58ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:31-06:00\",\"updated_at\":\"2022-09-07T15:01:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_4002472e2ef011eda722ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:31-06:00\",\"updated_at\":\"2022-09-07T15:01:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3fffe3932ef011edaa58ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:31-06:00\",\"updated_at\":\"2022-09-07T15:01:31-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_c0e3d277d6a042f0992a3d9c1054ec75\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83c3e788d54400136083", + "x-ep-request-uuid": "3bde9a25631906abe79a64bd002e9732", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_14fff98d31724f20b02679f689206d7e", - "ETag": "W/\"df6e4d27877bc43507d734265cea6a63\"", - "x-runtime": "0.442245", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "Location": "/api/v2/shipments/shp_c0e3d277d6a042f0992a3d9c1054ec75", + "ETag": "W/\"a4ba4bcf8db5a1a3c9e19c13b0a9f82f\"", + "x-runtime": "0.453809", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, @@ -54,8 +53,8 @@ } }, { - "Duration": 148, - "RecordedAt": "2022-08-30T15:40:20.039338-06:00", + "Duration": 131, + "RecordedAt": "2022-09-07T15:01:32.461175-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -67,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_14fff98d31724f20b02679f689206d7e/smartrate" + "Uri": "https://api.easypost.com/v2/shipments/shp_c0e3d277d6a042f0992a3d9c1054ec75/smartrate" }, "Response": { - "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:19Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_62987b575c8748ccb5c18d859b6dcb2d\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_14fff98d31724f20b02679f689206d7e\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-08-30T21:40:19Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:19Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_711a130ea8d34423afe9d3d6e5ed2dab\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_14fff98d31724f20b02679f689206d7e\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:40:19Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:19Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_d7eddee983db4bdfac43f832e9a40c5f\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_14fff98d31724f20b02679f689206d7e\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-08-30T21:40:19Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-08-30T21:40:19Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_f3f1f8af8f2444f1905e8f7ef03ba3c5\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_14fff98d31724f20b02679f689206d7e\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-08-30T21:40:19Z\"}]}", + "Body": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:32Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"id\":\"rate_116e13c1d9894f919e41ddca68448ed1\",\"list_currency\":\"USD\",\"list_rate\":7.37,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.37,\"retail_currency\":\"USD\",\"retail_rate\":8.7,\"service\":\"Priority\",\"shipment_id\":\"shp_c0e3d277d6a042f0992a3d9c1054ec75\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2022-09-07T21:01:32Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:32Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_2267526172ab4ecba150ba01bed9dbfa\",\"list_currency\":\"USD\",\"list_rate\":5.49,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.49,\"retail_currency\":\"USD\",\"retail_rate\":5.49,\"service\":\"First\",\"shipment_id\":\"shp_c0e3d277d6a042f0992a3d9c1054ec75\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":1,\"percentile_97\":2,\"percentile_99\":3},\"updated_at\":\"2022-09-07T21:01:32Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:32Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_8563715d00b54ecf933903294ee9df44\",\"list_currency\":\"USD\",\"list_rate\":23.75,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":23.75,\"retail_currency\":\"USD\",\"retail_rate\":27.4,\"service\":\"Express\",\"shipment_id\":\"shp_c0e3d277d6a042f0992a3d9c1054ec75\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":1,\"percentile_85\":1,\"percentile_90\":1,\"percentile_95\":2,\"percentile_97\":2,\"percentile_99\":4},\"updated_at\":\"2022-09-07T21:01:32Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"created_at\":\"2022-09-07T21:01:32Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_76046760ff5a4437be637edfb954213e\",\"list_currency\":\"USD\",\"list_rate\":7.22,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":7.22,\"retail_currency\":\"USD\",\"retail_rate\":7.22,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_c0e3d277d6a042f0992a3d9c1054ec75\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":4,\"percentile_95\":4,\"percentile_97\":5,\"percentile_99\":8},\"updated_at\":\"2022-09-07T21:01:32Z\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -85,13 +84,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "ab0e96b3630e83c4e788d544001360db", + "x-ep-request-uuid": "3bde9a25631906ace79a64bd002e9770", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"4f4fed4c95f9576dc1a2da3d44f98c25\"", - "x-runtime": "0.078666", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208301947-c6f44f5043-master", + "ETag": "W/\"232b5f0e291111693dfbdee1395af06e\"", + "x-runtime": "0.070568", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/tracker/all.json b/EasyPost.Tests/cassettes/netstandard/tracker/all.json index 9f4934cb5..e546e7b46 100644 --- a/EasyPost.Tests/cassettes/netstandard/tracker/all.json +++ b/EasyPost.Tests/cassettes/netstandard/tracker/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 584, - "RecordedAt": "2022-08-24T13:53:05.210617-06:00", + "Duration": 407, + "RecordedAt": "2022-09-07T15:01:18.712818-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,12 +16,12 @@ "Uri": "https://api.easypost.com/v2/trackers?page_size=5" }, "Response": { - "Body": "{\"trackers\":[{\"id\":\"trk_2e4fcd6605694bf8b7a48a5835f8c736\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780128\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_250a1b9bc16242ce9be822f162e24a26\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzJlNGZjZDY2MDU2OTRiZjhiN2E0OGE1ODM1ZjhjNzM2\"},{\"id\":\"trk_75946a1b1cb246379fc140ed2dcf5664\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361134780142\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:05Z\",\"shipment_id\":\"shp_1979c48868a440709bd03c51dbf07aa2\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzc1OTQ2YTFiMWNiMjQ2Mzc5ZmMxNDBlZDJkY2Y1NjY0\"},{\"id\":\"trk_5f283814979140b4b1cf7344793a771d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:04Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}],\"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/djE6dHJrXzVmMjgzODE0OTc5MTQwYjRiMWNmNzM0NDc5M2E3NzFk\"},{\"id\":\"trk_5b5ddb47d70f42819164799e5fdce30e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-22T22:21:33Z\",\"updated_at\":\"2022-08-22T22:21:33Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-22T22:21:33Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-22T22:21:33Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-23T10:58:33Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}],\"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/djE6dHJrXzViNWRkYjQ3ZDcwZjQyODE5MTY0Nzk5ZTVmZGNlMzBl\"},{\"id\":\"trk_6781baa555534e1d887edfca168c414d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-22T22:18:20Z\",\"updated_at\":\"2022-08-22T22:18:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-22T22:18:20Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-22T22:18:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-23T10:55:20Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}],\"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/djE6dHJrXzY3ODFiYWE1NTU1MzRlMWQ4ODdlZGZjYTE2OGM0MTRk\"}],\"has_more\":true}", + "Body": "{\"trackers\":[{\"id\":\"trk_21f5c83032b44048b8a4dd215bb412ac\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:17Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:17Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:17Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}],\"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/djE6dHJrXzIxZjVjODMwMzJiNDQwNDhiOGE0ZGQyMTViYjQxMmFj\"},{\"id\":\"trk_75d4e6eb10544ae99485cf94b4f0c343\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:00:29Z\",\"updated_at\":\"2022-09-07T21:00:29Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:00:29Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:00:29Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:37:29Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}],\"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/djE6dHJrXzc1ZDRlNmViMTA1NDRhZTk5NDg1Y2Y5NGI0ZjBjMzQz\"},{\"id\":\"trk_6299a7c1c3da4a6c8640905cdeb11958\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478450\",\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"created_at\":\"2022-09-07T20:59:05Z\",\"updated_at\":\"2022-09-07T21:01:06Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:05Z\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-08T19:43:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-09T21:19:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-10T00:10:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-10T05:50:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-10T06:00:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"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/djE6dHJrXzYyOTlhN2MxYzNkYTRhNmM4NjQwOTA1Y2RlYjExOTU4\"},{\"id\":\"trk_8a8902e091054d0eb459d80453a92abd\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478443\",\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"created_at\":\"2022-09-07T20:59:03Z\",\"updated_at\":\"2022-09-07T21:01:04Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:04Z\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-08T19:43:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-09T21:19:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-10T00:10:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-10T05:50:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-10T06:00:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"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/djE6dHJrXzhhODkwMmUwOTEwNTRkMGViNDU5ZDgwNDUzYTkyYWJk\"},{\"id\":\"trk_19d6a0e389344a6a85ea63340c3c01b2\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478436\",\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"created_at\":\"2022-09-07T20:59:01Z\",\"updated_at\":\"2022-09-07T21:01:01Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:01Z\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Origin Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-08T19:43:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at USPS Facility\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-09T21:19:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"COLUMBIA\",\"state\":\"SC\",\"country\":null,\"zip\":\"29201\"}},{\"object\":\"TrackingDetail\",\"message\":\"Arrived at Post Office\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"arrived_at_facility\",\"datetime\":\"2022-08-10T00:10:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Sorting Complete\",\"description\":null,\"status\":\"in_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-10T05:50:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}},{\"object\":\"TrackingDetail\",\"message\":\"Out for Delivery\",\"description\":null,\"status\":\"out_for_delivery\",\"status_detail\":\"out_for_delivery\",\"datetime\":\"2022-08-10T06:00:01Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"CHARLESTON\",\"state\":\"SC\",\"country\":null,\"zip\":\"29407\"}}],\"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\":\"NORTH HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77315\"},\"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/djE6dHJrXzE5ZDZhMGUzODkzNDRhNmE4NWVhNjMzNDBjM2MwMWIy\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "7889" + "Content-Length": "13241" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -31,15 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edbf630681a0f800397d0072f50f", + "x-ep-request-uuid": "3bde9a286319069ee79a611d002e90dd", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"c73c1492a6f129976406a93f7952f6a1\"", - "x-runtime": "0.217616", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"b995bc555d9fa8278d442ead1cff0893\"", + "x-runtime": "0.150311", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/tracker/create.json b/EasyPost.Tests/cassettes/netstandard/tracker/create.json index 4dfec33cf..e7a30cf1f 100644 --- a/EasyPost.Tests/cassettes/netstandard/tracker/create.json +++ b/EasyPost.Tests/cassettes/netstandard/tracker/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 608, - "RecordedAt": "2022-08-24T13:53:05.884496-06:00", + "Duration": 396, + "RecordedAt": "2022-09-07T15:01:19.158434-06:00", "Request": { "Body": "{\"carrier\":\"USPS\",\"tracking_code\":\"EZ1000000001\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/trackers" }, "Response": { - "Body": "{\"id\":\"trk_40e08fcd0dfa4907940fcf791fb6aa4a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:05Z\",\"updated_at\":\"2022-08-24T19:53:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:05Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:05Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzQwZTA4ZmNkMGRmYTQ5MDc5NDBmY2Y3OTFmYjZhYTRh\",\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}]}", + "Body": "{\"id\":\"trk_6ad2252c3696413d88a6bff250c01097\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:19Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:19Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:19Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzZhZDIyNTJjMzY5NjQxM2Q4OGE2YmZmMjUwYzAxMDk3\",\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc5630681a1f7c9deb20072f553", + "x-ep-request-uuid": "3bde9a256319069fe79a6126002e9128", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/trackers/trk_40e08fcd0dfa4907940fcf791fb6aa4a", - "ETag": "W/\"f0ae968e7577ccfb7286ff82bf7b2412\"", - "x-runtime": "0.237409", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/trackers/trk_6ad2252c3696413d88a6bff250c01097", + "ETag": "W/\"f97872cddd0cbf415d4a5478570b8d2a\"", + "x-runtime": "0.129932", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/tracker/create_list.json b/EasyPost.Tests/cassettes/netstandard/tracker/create_list.json index 99cba956f..4585a0090 100644 --- a/EasyPost.Tests/cassettes/netstandard/tracker/create_list.json +++ b/EasyPost.Tests/cassettes/netstandard/tracker/create_list.json @@ -1,7 +1,7 @@ [ { - "Duration": 391, - "RecordedAt": "2022-08-24T13:53:06.308482-06:00", + "Duration": 315, + "RecordedAt": "2022-09-07T15:01:19.511021-06:00", "Request": { "Body": "{\"trackers\":{\"0\":{\"tracking_code\":\"EZ1000000001\"},\"1\":{\"tracking_code\":\"EZ1000000002\"},\"2\":{\"tracking_code\":\"EZ1000000003\"}}}", "BodyContentType": "Json", @@ -22,29 +22,29 @@ "Body": "{}", "BodyContentType": "Json", "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b080630681a2f7db77f40076989c", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.034000", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "2" + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c6319069fe79a6144002e9156", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.038158", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/tracker/retrieve.json b/EasyPost.Tests/cassettes/netstandard/tracker/retrieve.json index 73ae391a4..4461a8bc1 100644 --- a/EasyPost.Tests/cassettes/netstandard/tracker/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/tracker/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 609, - "RecordedAt": "2022-08-24T13:53:04.189836-06:00", + "Duration": 765, + "RecordedAt": "2022-09-07T15:01:17.859568-06:00", "Request": { "Body": "{\"carrier\":\"USPS\",\"tracking_code\":\"EZ1000000001\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/trackers" }, "Response": { - "Body": "{\"id\":\"trk_5f283814979140b4b1cf7344793a771d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:04Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzVmMjgzODE0OTc5MTQwYjRiMWNmNzM0NDc5M2E3NzFk\",\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}]}", + "Body": "{\"id\":\"trk_21f5c83032b44048b8a4dd215bb412ac\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:17Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:17Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:17Z\",\"source\":\"USPS\",\"carrier_code\":null,\"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/djE6dHJrXzIxZjVjODMwMzJiNDQwNDhiOGE0ZGQyMTViYjQxMmFj\",\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d9630681a0f7b7356f007ed251", + "x-ep-request-uuid": "3bde9a286319069de79a60e2002e907a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/trackers/trk_5f283814979140b4b1cf7344793a771d", - "ETag": "W/\"533e1ab2e86c54dd56c81df39bd9589f\"", - "x-runtime": "0.127690", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "Location": "/api/v2/trackers/trk_21f5c83032b44048b8a4dd215bb412ac", + "ETag": "W/\"0db3ecc3e9414049d0cdbd23c8a764df\"", + "x-runtime": "0.129333", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 87, - "RecordedAt": "2022-08-24T13:53:04.582774-06:00", + "Duration": 135, + "RecordedAt": "2022-09-07T15:01:18.183415-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -66,10 +66,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/trackers/trk_5f283814979140b4b1cf7344793a771d" + "Uri": "https://api.easypost.com/v2/trackers/trk_21f5c83032b44048b8a4dd215bb412ac" }, "Response": { - "Body": "{\"id\":\"trk_5f283814979140b4b1cf7344793a771d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-08-24T19:53:04Z\",\"updated_at\":\"2022-08-24T19:53:04Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-08-24T19:53:04Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-24T19:53:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-07-25T08:30:04Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}],\"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/djE6dHJrXzVmMjgzODE0OTc5MTQwYjRiMWNmNzM0NDc5M2E3NzFk\"}", + "Body": "{\"id\":\"trk_21f5c83032b44048b8a4dd215bb412ac\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"EZ1000000001\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2022-09-07T21:01:17Z\",\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-07T21:01:17Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":null,\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2022-08-08T09:38:17Z\",\"source\":\"USPS\",\"carrier_code\":null,\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[{\"object\":\"Fee\",\"type\":\"TrackerFee\",\"amount\":\"0.00000\",\"charged\":false,\"refunded\":false}],\"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/djE6dHJrXzIxZjVjODMwMzJiNDQwNDhiOGE0ZGQyMTViYjQxMmFj\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,15 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d9630681a0f7b7356f007ed2a6", + "x-ep-request-uuid": "3bde9a286319069ee79a60e2002e90ac", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"bae91b11204004d18bbd6877807dd96b\"", - "x-runtime": "0.046600", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"1a5b3627fa061ebb36dfe8f0f9be7399\"", + "x-runtime": "0.067973", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -100,5 +100,5 @@ "Message": "OK" } } - } + } ] diff --git a/EasyPost.Tests/cassettes/netstandard/user/create.json b/EasyPost.Tests/cassettes/netstandard/user/create.json index 6c860ca08..e6cd997eb 100644 --- a/EasyPost.Tests/cassettes/netstandard/user/create.json +++ b/EasyPost.Tests/cassettes/netstandard/user/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 891, - "RecordedAt": "2022-08-24T13:53:09.567442-06:00", + "Duration": 38, + "RecordedAt": "2022-09-07T15:01:22.682594-06:00", "Request": { "Body": "{\"name\":\"Test User\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/users" }, "Response": { - "Body": "{\"id\":\"user_44a5008d9f3f4f8899b3733167b93fff\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:09Z\",\"children\":[],\"api_keys\":[]}", + "Body": "{\"id\":\"user_7156a59626ec473dae3b957c741b0971\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T21:01:22Z\",\"children\":[],\"api_keys\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681a4e68972dd007940e0", + "x-ep-request-uuid": "3bde9a27631906a1e79a647d002e9254", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"a5f07e459720af2c08c59cf03db76d83\"", - "x-runtime": "0.704374", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"10f5340d67eff6ee7e4bcebdd00c9993\"", + "x-runtime": "0.761672", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 87, - "RecordedAt": "2022-08-24T13:53:09.676591-06:00", + "Duration": 109, + "RecordedAt": "2022-09-07T15:01:22.814887-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_44a5008d9f3f4f8899b3733167b93fff" + "Uri": "https://api.easypost.com/v2/users/user_7156a59626ec473dae3b957c741b0971" }, "Response": { - "Body": "{\"id\":\"user_44a5008d9f3f4f8899b3733167b93fff\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:09Z\",\"children\":[]}", + "Body": "{\"id\":\"user_7156a59626ec473dae3b957c741b0971\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T21:01:22Z\",\"children\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,13 +83,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681a5e68972dd0079412d", + "x-ep-request-uuid": "3bde9a27631906a2e79a647d002e92de", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"b1a21aa64861ca0db05c00d25465ac74\"", - "x-runtime": "0.043089", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"4d1c23ec28bc6c5abe6c5c762a938659\"", + "x-runtime": "0.050542", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -101,8 +101,8 @@ } }, { - "Duration": 173, - "RecordedAt": "2022-08-24T13:53:09.86622-06:00", + "Duration": 210, + "RecordedAt": "2022-09-07T15:01:23.054359-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,7 +114,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_44a5008d9f3f4f8899b3733167b93fff" + "Uri": "https://api.easypost.com/v2/users/user_7156a59626ec473dae3b957c741b0971" }, "Response": { "Body": "", @@ -123,23 +123,23 @@ "Expires": "0" }, "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681a5e68972dd00794133", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.134153", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a27631906a2e79a647d002e92f2", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.141977", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 204, "Message": "No Content" diff --git a/EasyPost.Tests/cassettes/netstandard/user/delete.json b/EasyPost.Tests/cassettes/netstandard/user/delete.json index 4b56e66b0..37d56cd43 100644 --- a/EasyPost.Tests/cassettes/netstandard/user/delete.json +++ b/EasyPost.Tests/cassettes/netstandard/user/delete.json @@ -1,7 +1,7 @@ [ { - "Duration": 996, - "RecordedAt": "2022-08-24T13:53:10.884018-06:00", + "Duration": 989, + "RecordedAt": "2022-09-07T15:01:24.067167-06:00", "Request": { "Body": "{\"name\":\"Test User\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/users" }, "Response": { - "Body": "{\"id\":\"user_f8b36f6d93524e7d8b580acaecdff8bf\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:10Z\",\"children\":[],\"api_keys\":[]}", + "Body": "{\"id\":\"user_8ea6e411daac49ecaf775f76fd29b33a\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T21:01:23Z\",\"children\":[],\"api_keys\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681a6f7dbfb6f00794156", + "x-ep-request-uuid": "3bde9a2c631906a3e79a6498002e9323", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"0d367ff6c4562d9141d0ba97fe19b799\"", - "x-runtime": "0.821254", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"be90bedda7057159fc787e664889d520\"", + "x-runtime": "0.722517", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 331, - "RecordedAt": "2022-08-24T13:53:11.23239-06:00", + "Duration": 180, + "RecordedAt": "2022-09-07T15:01:24.263774-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,7 +65,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_f8b36f6d93524e7d8b580acaecdff8bf" + "Uri": "https://api.easypost.com/v2/users/user_8ea6e411daac49ecaf775f76fd29b33a" }, "Response": { "Body": "", @@ -74,23 +74,23 @@ "Expires": "0" }, "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681a7f7dbfb6f007941b7", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.117591", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2c631906a4e79a6498002e936b", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.119457", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 204, "Message": "No Content" diff --git a/EasyPost.Tests/cassettes/netstandard/user/retrieve.json b/EasyPost.Tests/cassettes/netstandard/user/retrieve.json index 0c14b86c5..eb5265122 100644 --- a/EasyPost.Tests/cassettes/netstandard/user/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/user/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 345, - "RecordedAt": "2022-08-24T13:53:07.789067-06:00", + "Duration": 462, + "RecordedAt": "2022-09-07T15:01:21.356259-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -22,26 +22,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "3964" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681a3f7b8df9a0079404c", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", - "x-runtime": "0.162789", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a25631906a1e79a647a002e920f", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", + "x-runtime": "0.185417", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" @@ -49,8 +49,8 @@ } }, { - "Duration": 288, - "RecordedAt": "2022-08-24T13:53:08.10005-06:00", + "Duration": 245, + "RecordedAt": "2022-09-07T15:01:21.621271-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -71,26 +71,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "3964" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b4630681a3f7b8df9a00794069", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", - "x-runtime": "0.247507", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a25631906a1e79a647a002e922c", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", + "x-runtime": "0.186400", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/user/retrieve_me.json b/EasyPost.Tests/cassettes/netstandard/user/retrieve_me.json index 2369bc635..cf865a21c 100644 --- a/EasyPost.Tests/cassettes/netstandard/user/retrieve_me.json +++ b/EasyPost.Tests/cassettes/netstandard/user/retrieve_me.json @@ -1,7 +1,7 @@ [ { - "Duration": 347, - "RecordedAt": "2022-08-24T13:53:11.598791-06:00", + "Duration": 595, + "RecordedAt": "2022-09-07T15:01:24.876677-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -22,26 +22,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "3964" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b1630681a7f7b8e37900794200", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", - "x-runtime": "0.174513", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a26631906a4e79a649b002e9390", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"c2ab39970a271ca6c19101af8d02b729\"", + "x-runtime": "0.333280", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/user/update.json b/EasyPost.Tests/cassettes/netstandard/user/update.json index d4dfd7ebb..796646c06 100644 --- a/EasyPost.Tests/cassettes/netstandard/user/update.json +++ b/EasyPost.Tests/cassettes/netstandard/user/update.json @@ -1,7 +1,7 @@ [ { - "Duration": 59, - "RecordedAt": "2022-08-24T13:53:06.379776-06:00", + "Duration": 79, + "RecordedAt": "2022-09-07T15:01:20.170134-06:00", "Request": { "Body": "{\"name\":\"Test User\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/users" }, "Response": { - "Body": "{\"id\":\"user_0864f78e62d34de4bdd2b9f16c4031f4\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:06Z\",\"children\":[],\"api_keys\":[]}", + "Body": "{\"id\":\"user_efb34a1b1f89481c8841f58428ea55ae\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T21:01:19Z\",\"children\":[],\"api_keys\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc2630681a1f7c94e940072f554", + "x-ep-request-uuid": "3bde9a2b6319069fe79a6143002e914e", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"1891d831e1135a33ffef12548a2036fc\"", - "x-runtime": "0.695024", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"4ba375da1fe3fc3d8cad3d839ce9d4ef\"", + "x-runtime": "0.793914", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 317, - "RecordedAt": "2022-08-24T13:53:06.721736-06:00", + "Duration": 270, + "RecordedAt": "2022-09-07T15:01:20.467261-06:00", "Request": { "Body": "{\"name\":\"New Name\"}", "BodyContentType": "Json", @@ -68,10 +68,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_0864f78e62d34de4bdd2b9f16c4031f4" + "Uri": "https://api.easypost.com/v2/users/user_efb34a1b1f89481c8841f58428ea55ae" }, "Response": { - "Body": "{\"id\":\"user_0864f78e62d34de4bdd2b9f16c4031f4\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"New Name\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:06Z\",\"children\":[]}", + "Body": "{\"id\":\"user_efb34a1b1f89481c8841f58428ea55ae\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"New Name\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T21:01:19Z\",\"children\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -86,15 +86,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc2630681a2f7c94e940072f59b", + "x-ep-request-uuid": "3bde9a2b631906a0e79a6143002e91a8", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6d6ec7ccfaab95d7fcb204c66e122989\"", - "x-runtime": "0.134349", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"35d6240d443d480283f856f48254e720\"", + "x-runtime": "0.200632", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -104,8 +104,8 @@ } }, { - "Duration": 290, - "RecordedAt": "2022-08-24T13:53:07.030965-06:00", + "Duration": 120, + "RecordedAt": "2022-09-07T15:01:20.610149-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -117,10 +117,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_0864f78e62d34de4bdd2b9f16c4031f4" + "Uri": "https://api.easypost.com/v2/users/user_efb34a1b1f89481c8841f58428ea55ae" }, "Response": { - "Body": "{\"id\":\"user_0864f78e62d34de4bdd2b9f16c4031f4\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"New Name\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:06Z\",\"children\":[]}", + "Body": "{\"id\":\"user_efb34a1b1f89481c8841f58428ea55ae\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"New Name\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T21:01:19Z\",\"children\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -135,15 +135,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc2630681a2f7c94e940072f5b1", + "x-ep-request-uuid": "3bde9a2b631906a0e79a6143002e91cc", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"6d6ec7ccfaab95d7fcb204c66e122989\"", - "x-runtime": "0.104310", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"35d6240d443d480283f856f48254e720\"", + "x-runtime": "0.043294", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -153,8 +153,8 @@ } }, { - "Duration": 373, - "RecordedAt": "2022-08-24T13:53:07.423119-06:00", + "Duration": 242, + "RecordedAt": "2022-09-07T15:01:20.867405-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -166,7 +166,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_0864f78e62d34de4bdd2b9f16c4031f4" + "Uri": "https://api.easypost.com/v2/users/user_efb34a1b1f89481c8841f58428ea55ae" }, "Response": { "Body": "", @@ -175,23 +175,24 @@ "Expires": "0" }, "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc2630681a3f7c94e940072f5c7", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.190486", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb4wdc 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2b631906a0e79a6143002e91d9", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.181621", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 204, "Message": "No Content" diff --git a/EasyPost.Tests/cassettes/netstandard/user/update_brand.json b/EasyPost.Tests/cassettes/netstandard/user/update_brand.json index 9d299b275..f3166801f 100644 --- a/EasyPost.Tests/cassettes/netstandard/user/update_brand.json +++ b/EasyPost.Tests/cassettes/netstandard/user/update_brand.json @@ -1,7 +1,7 @@ [ { - "Duration": 267, - "RecordedAt": "2022-08-24T13:53:04.846528-06:00", + "Duration": 314, + "RecordedAt": "2022-09-07T15:01:18.340773-06:00", "Request": { "Body": "{\"name\":\"Test User\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/users" }, "Response": { - "Body": "{\"id\":\"user_bcd7e00a12f44ef99447bba997afbae2\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:04Z\",\"children\":[],\"api_keys\":[]}", + "Body": "{\"id\":\"user_348f30d284a144d9b18dd2629aa6ba05\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T21:01:17Z\",\"children\":[],\"api_keys\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dd630681a0e68b1717007ed247", + "x-ep-request-uuid": "3bde9a2a6319069de79a60be002e9065", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"bc0edb7a593b7a7326c9d11569edd654\"", - "x-runtime": "0.795151", + "ETag": "W/\"7f516a7687a6010a4c54a52b850c816a\"", + "x-runtime": "0.715843", "x-node": "bigweb8nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 82, - "RecordedAt": "2022-08-24T13:53:04.963976-06:00", + "Duration": 257, + "RecordedAt": "2022-09-07T15:01:18.662546-06:00", "Request": { "Body": "{\"color\":\"#123456\"}", "BodyContentType": "Json", @@ -68,10 +68,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_bcd7e00a12f44ef99447bba997afbae2/brand" + "Uri": "https://api.easypost.com/v2/users/user_348f30d284a144d9b18dd2629aa6ba05/brand" }, "Response": { - "Body": "{\"id\":\"brd_34191f29a180449c8d69875f2a9cbe23\",\"color\":\"#123456\",\"logo\":\"https://assets.easypost.com/assets/images/branding/easypost-primary-logo-7a2cf535f2.svg\",\"logo_href\":\"https://www.easypost.com\",\"name\":\"EasyPost\",\"ad\":null,\"ad_href\":null,\"object\":\"Brand\",\"user_id\":\"user_bcd7e00a12f44ef99447bba997afbae2\",\"background_color\":null,\"theme\":\"theme1\"}", + "Body": "{\"id\":\"brd_b956ea4f685a4f7c8ab61bb1d02c84cc\",\"color\":\"#123456\",\"logo\":\"https://assets.easypost.com/assets/images/branding/easypost-primary-logo-7a2cf535f2.svg\",\"logo_href\":\"https://www.easypost.com\",\"name\":\"EasyPost\",\"ad\":null,\"ad_href\":null,\"object\":\"Brand\",\"user_id\":\"user_348f30d284a144d9b18dd2629aa6ba05\",\"background_color\":null,\"theme\":\"theme1\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -86,15 +86,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dd630681a1e68b1717007ed2e5", + "x-ep-request-uuid": "3bde9a2a6319069ee79a60be002e90da", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"757397aa4cd535663c0916f496b2a516\"", - "x-runtime": "0.043996", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"cb3ee0c1d65eb22fbdc9e37ae2b51e45\"", + "x-runtime": "0.194371", + "x-node": "bigweb5nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -104,8 +104,8 @@ } }, { - "Duration": 87, - "RecordedAt": "2022-08-24T13:53:05.09445-06:00", + "Duration": 147, + "RecordedAt": "2022-09-07T15:01:18.857035-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -117,10 +117,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_bcd7e00a12f44ef99447bba997afbae2" + "Uri": "https://api.easypost.com/v2/users/user_348f30d284a144d9b18dd2629aa6ba05" }, "Response": { - "Body": "{\"id\":\"user_bcd7e00a12f44ef99447bba997afbae2\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-08-24T19:53:04Z\",\"children\":[]}", + "Body": "{\"id\":\"user_348f30d284a144d9b18dd2629aa6ba05\",\"object\":\"User\",\"parent_id\":\"user_4d78588f2f744bf6886aa67ddb870865\",\"name\":\"Test User\",\"phone_number\":\"\",\"verified\":true,\"created_at\":\"2022-09-07T21:01:17Z\",\"children\":[]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -135,15 +135,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dd630681a1e68b1717007ed2f4", + "x-ep-request-uuid": "3bde9a2a6319069ee79a60be002e9104", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"1b592e900ae3bd6ac3a9e98b5444c122\"", - "x-runtime": "0.044133", + "ETag": "W/\"022d0cbc5c3c8cd19e99476b5ad837f0\"", + "x-runtime": "0.073398", "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -153,8 +153,8 @@ } }, { - "Duration": 168, - "RecordedAt": "2022-08-24T13:53:05.292101-06:00", + "Duration": 187, + "RecordedAt": "2022-09-07T15:01:19.065379-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -166,7 +166,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/users/user_bcd7e00a12f44ef99447bba997afbae2" + "Uri": "https://api.easypost.com/v2/users/user_348f30d284a144d9b18dd2629aa6ba05" }, "Response": { "Body": "", @@ -175,23 +175,23 @@ "Expires": "0" }, "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33dd630681a1e68b1717007ed300", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.126204", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2a6319069fe79a60be002e9119", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.124120", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 204, "Message": "No Content" diff --git a/EasyPost.Tests/cassettes/netstandard/webhook/all.json b/EasyPost.Tests/cassettes/netstandard/webhook/all.json index 1047bdf3a..e182b91a4 100644 --- a/EasyPost.Tests/cassettes/netstandard/webhook/all.json +++ b/EasyPost.Tests/cassettes/netstandard/webhook/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 198, - "RecordedAt": "2022-08-24T13:53:08.269059-06:00", + "Duration": 290, + "RecordedAt": "2022-09-07T15:01:21.055269-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -22,26 +22,27 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "15" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b5630681a4e688faf90079408f", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"d03ff1e2df7ad33907b2086ec5f9e0a9\"", - "x-runtime": "0.021737", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2b631906a1e79a6479002e91fe", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"d03ff1e2df7ad33907b2086ec5f9e0a9\"", + "x-runtime": "0.023225", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-canary": "direct", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/webhook/create.json b/EasyPost.Tests/cassettes/netstandard/webhook/create.json index 1ae8488ac..307d2bc9a 100644 --- a/EasyPost.Tests/cassettes/netstandard/webhook/create.json +++ b/EasyPost.Tests/cassettes/netstandard/webhook/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 601, - "RecordedAt": "2022-08-24T13:53:05.83789-06:00", + "Duration": 420, + "RecordedAt": "2022-09-07T15:01:19.15692-06:00", "Request": { "Body": "{\"url\":\"https://example.com/create\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/webhooks" }, "Response": { - "Body": "{\"id\":\"hook_5ec5f1be23e611edaad0653a7e56f428\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/create\",\"created_at\":\"2022-08-24T19:53:06Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_385eda262ef011ed8a871109aeec3c5e\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/create\",\"created_at\":\"2022-09-07T21:01:19Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc2630681a1e68cd6050072f54d", + "x-ep-request-uuid": "3bde9a266319069fe79a6125002e9126", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"75bd1288e4f3c4e9c68ffda364c9259d\"", - "x-runtime": "0.249315", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"482bc21224a2020c1240d4b474335caa\"", + "x-runtime": "0.144380", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 212, - "RecordedAt": "2022-08-24T13:53:06.076587-06:00", + "Duration": 88, + "RecordedAt": "2022-09-07T15:01:19.263686-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_5ec5f1be23e611edaad0653a7e56f428" + "Uri": "https://api.easypost.com/v2/webhooks/hook_385eda262ef011ed8a871109aeec3c5e" }, "Response": { - "Body": "{\"id\":\"hook_5ec5f1be23e611edaad0653a7e56f428\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/create\",\"created_at\":\"2022-08-24T19:53:06Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_385eda262ef011ed8a871109aeec3c5e\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/create\",\"created_at\":\"2022-09-07T21:01:19Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,16 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc2630681a2e68cd6050072f574", + "x-ep-request-uuid": "3bde9a266319069fe79a6125002e913c", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"75bd1288e4f3c4e9c68ffda364c9259d\"", - "x-runtime": "0.026943", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"482bc21224a2020c1240d4b474335caa\"", + "x-runtime": "0.028292", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb4wdc 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -102,8 +101,8 @@ } }, { - "Duration": 533, - "RecordedAt": "2022-08-24T13:53:06.638824-06:00", + "Duration": 416, + "RecordedAt": "2022-09-07T15:01:19.70647-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -115,7 +114,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_5ec5f1be23e611edaad0653a7e56f428" + "Uri": "https://api.easypost.com/v2/webhooks/hook_385eda262ef011ed8a871109aeec3c5e" }, "Response": { "Body": "{}", @@ -124,26 +123,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "7605edc2630681a2e68cd6050072f589", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.348999", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb4wdc 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a266319069fe79a6125002e914c", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.338459", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/webhook/delete.json b/EasyPost.Tests/cassettes/netstandard/webhook/delete.json index 694bf74e9..395a8308e 100644 --- a/EasyPost.Tests/cassettes/netstandard/webhook/delete.json +++ b/EasyPost.Tests/cassettes/netstandard/webhook/delete.json @@ -1,7 +1,7 @@ [ { - "Duration": 559, - "RecordedAt": "2022-08-24T13:53:07.220079-06:00", + "Duration": 453, + "RecordedAt": "2022-09-07T15:01:20.188113-06:00", "Request": { "Body": "{\"url\":\"https://example.com/delete\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/webhooks" }, "Response": { - "Body": "{\"id\":\"hook_5f9494d823e611eda2c61dcbf868a1e2\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/delete\",\"created_at\":\"2022-08-24T19:53:07Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_38f97d102ef011ed885265bf6555f953\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/delete\",\"created_at\":\"2022-09-07T21:01:20Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b083630681a3f7cc03b300769900", + "x-ep-request-uuid": "3bde9a28631906a0e79a6164002e9188", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"208fa67042e00696d81e34ca1fad2971\"", - "x-runtime": "0.190724", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"f70801b463237b2ae6a9b41c0bc9f508\"", + "x-runtime": "0.194066", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 208, - "RecordedAt": "2022-08-24T13:53:07.444331-06:00", + "Duration": 101, + "RecordedAt": "2022-09-07T15:01:20.304865-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_5f9494d823e611eda2c61dcbf868a1e2" + "Uri": "https://api.easypost.com/v2/webhooks/hook_38f97d102ef011ed885265bf6555f953" }, "Response": { - "Body": "{\"id\":\"hook_5f9494d823e611eda2c61dcbf868a1e2\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/delete\",\"created_at\":\"2022-08-24T19:53:07Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_38f97d102ef011ed885265bf6555f953\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/delete\",\"created_at\":\"2022-09-07T21:01:20Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b083630681a3f7cc03b30076993c", + "x-ep-request-uuid": "3bde9a28631906a0e79a6164002e91a7", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"208fa67042e00696d81e34ca1fad2971\"", - "x-runtime": "0.024835", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"f70801b463237b2ae6a9b41c0bc9f508\"", + "x-runtime": "0.028612", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb2wdc 6aa9972c1e,extlb3wdc 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,8 +101,8 @@ } }, { - "Duration": 578, - "RecordedAt": "2022-08-24T13:53:08.046346-06:00", + "Duration": 415, + "RecordedAt": "2022-09-07T15:01:20.736572-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,7 +114,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_5f9494d823e611eda2c61dcbf868a1e2" + "Uri": "https://api.easypost.com/v2/webhooks/hook_38f97d102ef011ed885265bf6555f953" }, "Response": { "Body": "{}", @@ -123,26 +123,27 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "0d77b083630681a3f7cc03b300769965", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.392852", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,intlb1wdc 6aa9972c1e,extlb3wdc 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a28631906a0e79a6164002e91b3", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.355130", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/webhook/retrieve.json b/EasyPost.Tests/cassettes/netstandard/webhook/retrieve.json index ff0fb7104..f13ba1c8e 100644 --- a/EasyPost.Tests/cassettes/netstandard/webhook/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/webhook/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 525, - "RecordedAt": "2022-08-24T13:53:04.191284-06:00", + "Duration": 737, + "RecordedAt": "2022-09-07T15:01:17.767679-06:00", "Request": { "Body": "{\"url\":\"https://example.com/retrieve\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/webhooks" }, "Response": { - "Body": "{\"id\":\"hook_5dd3a1d423e611edbd6a4f94e810592a\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/retrieve\",\"created_at\":\"2022-08-24T19:53:04Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_3789a1d02ef011eda8cc21cebe21e5e9\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/retrieve\",\"created_at\":\"2022-09-07T21:01:18Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,15 +34,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d7630681a0f7ee13d1007ed24f", + "x-ep-request-uuid": "3bde9a2b6319069de79a60c1002e905f", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"521ee55646ad3cbeca08b0294cfbcbc0\"", - "x-runtime": "0.141344", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"e5763cdce72be2575c9243cbb9f49679\"", + "x-runtime": "0.141464", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -52,8 +52,8 @@ } }, { - "Duration": 82, - "RecordedAt": "2022-08-24T13:53:04.662589-06:00", + "Duration": 101, + "RecordedAt": "2022-09-07T15:01:18.211569-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_5dd3a1d423e611edbd6a4f94e810592a" + "Uri": "https://api.easypost.com/v2/webhooks/hook_3789a1d02ef011eda8cc21cebe21e5e9" }, "Response": { - "Body": "{\"id\":\"hook_5dd3a1d423e611edbd6a4f94e810592a\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/retrieve\",\"created_at\":\"2022-08-24T19:53:04Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_3789a1d02ef011eda8cc21cebe21e5e9\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/retrieve\",\"created_at\":\"2022-09-07T21:01:18Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d7630681a0f7ee13d1007ed2b9", + "x-ep-request-uuid": "3bde9a2b6319069ee79a60c1002e90b3", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"521ee55646ad3cbeca08b0294cfbcbc0\"", - "x-runtime": "0.030502", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"e5763cdce72be2575c9243cbb9f49679\"", + "x-runtime": "0.034368", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,8 +101,8 @@ } }, { - "Duration": 467, - "RecordedAt": "2022-08-24T13:53:05.205586-06:00", + "Duration": 451, + "RecordedAt": "2022-09-07T15:01:18.691643-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,7 +114,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_5dd3a1d423e611edbd6a4f94e810592a" + "Uri": "https://api.easypost.com/v2/webhooks/hook_3789a1d02ef011eda8cc21cebe21e5e9" }, "Response": { "Body": "{}", @@ -123,26 +123,27 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "70da33d7630681a0f7ee13d1007ed2d5", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.424649", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a2b6319069ee79a60c1002e90c4", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.386567", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" diff --git a/EasyPost.Tests/cassettes/netstandard/webhook/update.json b/EasyPost.Tests/cassettes/netstandard/webhook/update.json index 732d3d26a..fd5bbb62f 100644 --- a/EasyPost.Tests/cassettes/netstandard/webhook/update.json +++ b/EasyPost.Tests/cassettes/netstandard/webhook/update.json @@ -1,7 +1,7 @@ [ { - "Duration": 307, - "RecordedAt": "2022-08-24T13:53:08.611996-06:00", + "Duration": 428, + "RecordedAt": "2022-09-07T15:01:21.522856-06:00", "Request": { "Body": "{\"url\":\"https://example.com/update\"}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/webhooks" }, "Response": { - "Body": "{\"id\":\"hook_607742b023e611ed983657fa3dc7f07e\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-08-24T19:53:09Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_39c571182ef011edaffd138a641421c9\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-09-07T21:01:21Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,13 +34,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681a4f7caf32e007940b3", + "x-ep-request-uuid": "3bde9a25631906a1e79a647b002e9223", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"5337a834864b42f55e7b91a6a6bbabdc\"", - "x-runtime": "0.134942", + "ETag": "W/\"d9c27a0018c17b72a915585c804e4056\"", + "x-runtime": "0.156357", "x-node": "bigweb1nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -52,8 +52,8 @@ } }, { - "Duration": 515, - "RecordedAt": "2022-08-24T13:53:09.144092-06:00", + "Duration": 563, + "RecordedAt": "2022-09-07T15:01:22.108218-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -65,10 +65,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_607742b023e611ed983657fa3dc7f07e" + "Uri": "https://api.easypost.com/v2/webhooks/hook_39c571182ef011edaffd138a641421c9" }, "Response": { - "Body": "{\"id\":\"hook_607742b023e611ed983657fa3dc7f07e\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-08-24T19:53:09Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_39c571182ef011edaffd138a641421c9\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-09-07T21:01:21Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -83,15 +83,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681a4f7caf32e007940c4", + "x-ep-request-uuid": "3bde9a25631906a1e79a647b002e923a", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"5337a834864b42f55e7b91a6a6bbabdc\"", - "x-runtime": "0.475919", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"d9c27a0018c17b72a915585c804e4056\"", + "x-runtime": "0.483246", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -101,8 +101,8 @@ } }, { - "Duration": 68, - "RecordedAt": "2022-08-24T13:53:09.23283-06:00", + "Duration": 93, + "RecordedAt": "2022-09-07T15:01:22.2193-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -114,10 +114,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_607742b023e611ed983657fa3dc7f07e" + "Uri": "https://api.easypost.com/v2/webhooks/hook_39c571182ef011edaffd138a641421c9" }, "Response": { - "Body": "{\"id\":\"hook_607742b023e611ed983657fa3dc7f07e\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-08-24T19:53:09Z\",\"disabled_at\":null}", + "Body": "{\"id\":\"hook_39c571182ef011edaffd138a641421c9\",\"object\":\"Webhook\",\"mode\":\"test\",\"url\":\"https://example.com/update\",\"created_at\":\"2022-09-07T21:01:21Z\",\"disabled_at\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -132,15 +132,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681a5f7caf32e007940f8", + "x-ep-request-uuid": "3bde9a25631906a2e79a647b002e92a7", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"5337a834864b42f55e7b91a6a6bbabdc\"", - "x-runtime": "0.025593", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", + "ETag": "W/\"d9c27a0018c17b72a915585c804e4056\"", + "x-runtime": "0.026060", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -150,8 +150,8 @@ } }, { - "Duration": 452, - "RecordedAt": "2022-08-24T13:53:09.701283-06:00", + "Duration": 377, + "RecordedAt": "2022-09-07T15:01:22.612602-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -163,7 +163,7 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/webhooks/hook_607742b023e611ed983657fa3dc7f07e" + "Uri": "https://api.easypost.com/v2/webhooks/hook_39c571182ef011edaffd138a641421c9" }, "Response": { "Body": "{}", @@ -172,26 +172,26 @@ "Expires": "0", "Content-Type": "application/json; charset=utf-8", "Content-Length": "2" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "bffd75b7630681a5f7caf32e00794106", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", - "x-runtime": "0.415525", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202208241853-b300c23ebd-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, + }, + "HttpVersion": "1.1", + "ResponseHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "x-xss-protection": "1; mode=block", + "X-Content-Type-Options": "nosniff", + "x-download-options": "noopen", + "x-permitted-cross-domain-policies": "none", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "3bde9a25631906a2e79a647b002e92b3", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "ETag": "W/\"44136fa355b3678a1146ad16f7e8649e\"", + "x-runtime": "0.315351", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-backend": "easypost", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, "Status": { "Code": 200, "Message": "OK" From 218087051fee7554a6e217a6d845575d234cfc41 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 9 Sep 2022 12:18:25 -0600 Subject: [PATCH 4/9] - Skip pickup test for now --- EasyPost.Tests/EasyPost.Tests.csproj | 24 +-- EasyPost.Tests/PickupTest.cs | 4 +- EasyPost.Tests/cassettes/net/pickup/buy.json | 158 ------------------ .../cassettes/net/pickup/cancel.json | 158 ------------------ .../cassettes/netstandard/pickup/buy.json | 158 ------------------ .../cassettes/netstandard/pickup/cancel.json | 158 ------------------ 6 files changed, 14 insertions(+), 646 deletions(-) delete mode 100644 EasyPost.Tests/cassettes/net/pickup/buy.json delete mode 100644 EasyPost.Tests/cassettes/net/pickup/cancel.json delete mode 100644 EasyPost.Tests/cassettes/netstandard/pickup/buy.json delete mode 100644 EasyPost.Tests/cassettes/netstandard/pickup/cancel.json diff --git a/EasyPost.Tests/EasyPost.Tests.csproj b/EasyPost.Tests/EasyPost.Tests.csproj index 55d887d4d..80898f6de 100644 --- a/EasyPost.Tests/EasyPost.Tests.csproj +++ b/EasyPost.Tests/EasyPost.Tests.csproj @@ -15,21 +15,21 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -37,13 +37,13 @@ - + - - - - + + + + diff --git a/EasyPost.Tests/PickupTest.cs b/EasyPost.Tests/PickupTest.cs index 424330f3e..5f51aab97 100644 --- a/EasyPost.Tests/PickupTest.cs +++ b/EasyPost.Tests/PickupTest.cs @@ -65,7 +65,7 @@ public async Task TestRetrieve() Assert.Equal(pickup.Id, retrievedPickup.Id); } - [Fact] + [Fact(Skip = "USPS test server issues. Re-enable ASAP.")] [CrudOperations.Update] public async Task TestBuy() { @@ -81,7 +81,7 @@ public async Task TestBuy() Assert.Equal("scheduled", pickup.Status); } - [Fact] + [Fact(Skip = "USPS test server issues. Re-enable ASAP.")] [CrudOperations.Update] public async Task TestCancel() { diff --git a/EasyPost.Tests/cassettes/net/pickup/buy.json b/EasyPost.Tests/cassettes/net/pickup/buy.json deleted file mode 100644 index e93a9d766..000000000 --- a/EasyPost.Tests/cassettes/net/pickup/buy.json +++ /dev/null @@ -1,158 +0,0 @@ -[ - { - "Duration": 506, - "RecordedAt": "2022-09-07T14:58:55.23494-06:00", - "Request": { - "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "580" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/shipments" - }, - "Response": { - "Body": "{\"created_at\":\"2022-09-07T20:58:54Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478412\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_e1f058f42eef11ed98f6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:54-06:00\",\"updated_at\":\"2022-09-07T14:58:54-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_1f2c95e7ee9543d6aca02df438d900e5\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6820506b635946209c8f53560051a654\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:58:54Z\",\"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/20220907/024cd620cbc844979c3bc832431af19b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_28bc0a34146b46b4ae80c0b79a9ef3f7\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_468a03e8fa9d47a0a3be9e8169647056\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5fddde1c2746415b96ada68cc7ec1273\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5e1ffdf4571d4c7c97bfb159dd2e4a6e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_468a03e8fa9d47a0a3be9e8169647056\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:54Z\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_c5ce3d43b8b04a9b967818986d8ec4aa\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478412\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:58:55Z\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2M1Y2UzZDQzYjhiMDRhOWI5Njc4MTg5ODZkOGVjNGFh\"},\"to_address\":{\"id\":\"adr_e1ec21ee2eef11ed98f5ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:54-06:00\",\"updated_at\":\"2022-09-07T14:58:54-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_e1f058f42eef11ed98f6ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:54-06:00\",\"updated_at\":\"2022-09-07T14:58:54-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e1ec21ee2eef11ed98f5ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:54-06:00\",\"updated_at\":\"2022-09-07T14:58:54-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"object\":\"Shipment\"}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6956" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2a6319060ee79a605e002e5e74", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_d3d6e88693704f28a4f5deb48b8219cf", - "ETag": "W/\"d95308e6fc6a8f80e830bac44942dbe5\"", - "x-runtime": "1.152278", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 201, - "Message": "Created" - } - } - }, - { - "Duration": 894, - "RecordedAt": "2022-09-07T14:58:56.430194-06:00", - "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"adr_e1ec21ee2eef11ed98f5ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"adr_e1f058f42eef11ed98f6ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"prcl_1f2c95e7ee9543d6aca02df438d900e5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:58:54Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/024cd620cbc844979c3bc832431af19b.png\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"pl_6820506b635946209c8f53560051a654\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"rate_28bc0a34146b46b4ae80c0b79a9ef3f7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"rate_468a03e8fa9d47a0a3be9e8169647056\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"rate_5fddde1c2746415b96ada68cc7ec1273\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"rate_5e1ffdf4571d4c7c97bfb159dd2e4a6e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"adr_e1f058f42eef11ed98f6ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"rate_468a03e8fa9d47a0a3be9e8169647056\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"adr_e1ec21ee2eef11ed98f5ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:54Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2M1Y2UzZDQzYjhiMDRhOWI5Njc4MTg5ODZkOGVjNGFh\",\"shipment_id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478412\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:58:55Z\",\"id\":\"trk_c5ce3d43b8b04a9b967818986d8ec4aa\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478412\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:58:54Z\",\"id\":\"shp_d3d6e88693704f28a4f5deb48b8219cf\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"object\":\"Shipment\"}}}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6290" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/pickups" - }, - "Response": { - "Body": "{\"id\":\"pickup_fc662eaf2a124f19bd8f8c289dee934c\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:58:55Z\",\"updated_at\":\"2022-09-07T20:58:55Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e2e2e1252eef11ed87abac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:55-06:00\",\"updated_at\":\"2022-09-07T14:58:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:58:56Z\",\"updated_at\":\"2022-09-07T20:58:56Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_fc662eaf2a124f19bd8f8c289dee934c\",\"id\":\"pickuprate_5488440778e948eabad2941b2b98b4c7\",\"object\":\"PickupRate\"}]}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1149" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2a6319060fe79a605e002e5ec1", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"d88d2ddcb380ccc69aa6d939e6eaad70\"", - "x-runtime": "0.832108", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 200, - "Message": "OK" - } - } - }, - { - "Duration": 975, - "RecordedAt": "2022-09-07T14:58:57.449922-06:00", - "Request": { - "Body": "{\"carrier\":\"USPS\",\"service\":\"NextDay\"}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "38" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_fc662eaf2a124f19bd8f8c289dee934c/buy" - }, - "Response": { - "Body": "{\"error\":{\"code\":\"PICKUP.BUY.FAILED\",\"message\":\"Service availability unknown.ServerCode=500 serverMessage = Internal server error\",\"errors\":[]}}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "146" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2a63190610e79a605e002e5eea", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.913555", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 400, - "Message": "Bad Request" - } - } - } -] diff --git a/EasyPost.Tests/cassettes/net/pickup/cancel.json b/EasyPost.Tests/cassettes/net/pickup/cancel.json deleted file mode 100644 index b402f46a4..000000000 --- a/EasyPost.Tests/cassettes/net/pickup/cancel.json +++ /dev/null @@ -1,158 +0,0 @@ -[ - { - "Duration": 216, - "RecordedAt": "2022-09-07T14:59:05.665418-06:00", - "Request": { - "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "580" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/shipments" - }, - "Response": { - "Body": "{\"created_at\":\"2022-09-07T20:59:04Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478450\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_e854cb002eef11ed919aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:04-06:00\",\"updated_at\":\"2022-09-07T14:59:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_160538d64ff4454280400c75382e9ba7\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_debb6b0456434814b204f566455fdded\",\"created_at\":\"2022-09-07T20:59:05Z\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:05Z\",\"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/20220907/0996703cabd44383a5bb5aa65b0948b8.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_24b7384f7ed44338836f25d344e1c724\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_fc9a678f932c497bb8bbec6be326cbac\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4461bbcec3044a74831501816ccf4a68\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_849b7058e4de485aa235b294536ed45b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_849b7058e4de485aa235b294536ed45b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:05Z\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_6299a7c1c3da4a6c8640905cdeb11958\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478450\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:59:05Z\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzYyOTlhN2MxYzNkYTRhNmM4NjQwOTA1Y2RlYjExOTU4\"},\"to_address\":{\"id\":\"adr_e85233fa2eef11ed894eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:04-06:00\",\"updated_at\":\"2022-09-07T14:59:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_e854cb002eef11ed919aac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:04-06:00\",\"updated_at\":\"2022-09-07T14:59:04-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e85233fa2eef11ed894eac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:04-06:00\",\"updated_at\":\"2022-09-07T14:59:05-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"object\":\"Shipment\"}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6956" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2763190618e79a6079002e60b8", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_98e15d18af11426a946f2317d9c92b4d", - "ETag": "W/\"c9c8abb31618c1ac8f46fdba95c0f6b4\"", - "x-runtime": "0.947380", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 201, - "Message": "Created" - } - } - }, - { - "Duration": 799, - "RecordedAt": "2022-09-07T14:59:06.507601-06:00", - "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"adr_e85233fa2eef11ed894eac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"adr_e854cb002eef11ed919aac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"prcl_160538d64ff4454280400c75382e9ba7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:05Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/0996703cabd44383a5bb5aa65b0948b8.png\",\"created_at\":\"2022-09-07T20:59:05Z\",\"id\":\"pl_debb6b0456434814b204f566455fdded\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"rate_24b7384f7ed44338836f25d344e1c724\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"rate_fc9a678f932c497bb8bbec6be326cbac\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"rate_4461bbcec3044a74831501816ccf4a68\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"rate_849b7058e4de485aa235b294536ed45b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"adr_e854cb002eef11ed919aac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"created_at\":\"2022-09-07T20:59:05Z\",\"id\":\"rate_849b7058e4de485aa235b294536ed45b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"adr_e85233fa2eef11ed894eac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzYyOTlhN2MxYzNkYTRhNmM4NjQwOTA1Y2RlYjExOTU4\",\"shipment_id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478450\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:59:05Z\",\"id\":\"trk_6299a7c1c3da4a6c8640905cdeb11958\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478450\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:59:04Z\",\"id\":\"shp_98e15d18af11426a946f2317d9c92b4d\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"object\":\"Shipment\"}}}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6290" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/pickups" - }, - "Response": { - "Body": "{\"id\":\"pickup_c67f059e5df8403ea671549460977200\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:59:05Z\",\"updated_at\":\"2022-09-07T20:59:05Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e8f3c25c2eef11ed91ceac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:05-06:00\",\"updated_at\":\"2022-09-07T14:59:05-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:59:06Z\",\"updated_at\":\"2022-09-07T20:59:06Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_c67f059e5df8403ea671549460977200\",\"id\":\"pickuprate_d55dfe8da1994864bce03055a97436d4\",\"object\":\"PickupRate\"}]}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1149" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2763190619e79a6079002e60f8", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"2f3538347b4c109c5ae432140d9697ba\"", - "x-runtime": "0.735430", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 200, - "Message": "OK" - } - } - }, - { - "Duration": 26, - "RecordedAt": "2022-09-07T14:59:07.549726-06:00", - "Request": { - "Body": "{\"carrier\":\"USPS\",\"service\":\"NextDay\"}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "38" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_c67f059e5df8403ea671549460977200/buy" - }, - "Response": { - "Body": "{\"error\":{\"code\":\"PICKUP.BUY.FAILED\",\"message\":\"Service availability unknown.ServerCode=500 serverMessage = Internal server error\",\"errors\":[]}}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "146" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a276319061ae79a6079002e6126", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.957560", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 400, - "Message": "Bad Request" - } - } - } -] diff --git a/EasyPost.Tests/cassettes/netstandard/pickup/buy.json b/EasyPost.Tests/cassettes/netstandard/pickup/buy.json deleted file mode 100644 index cdaf5d084..000000000 --- a/EasyPost.Tests/cassettes/netstandard/pickup/buy.json +++ /dev/null @@ -1,158 +0,0 @@ -[ - { - "Duration": 582, - "RecordedAt": "2022-09-07T15:01:18.612911-06:00", - "Request": { - "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "580" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/shipments" - }, - "Response": { - "Body": "{\"created_at\":\"2022-09-07T21:01:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478610\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_378b65952ef011eda7ddac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5a25cce8884e4d7395c6d1f055751017\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_409325e48b594215bfeed4831eeef42f\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/3a18c4aa517e4f1b9596898a3d565370.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_35c7056ed33f457898673688698fd7c1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3a0862c2adff450c9d5c0a8592f4b6bd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4ead5bc12a2e4f61b85c8864a88f0854\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c5af986571d34843bb0d1da8a2398488\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3a0862c2adff450c9d5c0a8592f4b6bd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_70171a77de3c4ff8b58880d54f4316d4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478610\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzcwMTcxYTc3ZGUzYzRmZjhiNTg4ODBkNTRmNDMxNmQ0\"},\"to_address\":{\"id\":\"adr_37898d552ef011eda7dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_378b65952ef011eda7ddac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_37898d552ef011eda7dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"object\":\"Shipment\"}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6956" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a276319069de79a60bf002e9062", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_13357f2ceaa5490d95b1d0d98d672327", - "ETag": "W/\"4bb1eaf4fa1150b99200b9d1fa4bf499\"", - "x-runtime": "0.971011", - "x-node": "bigweb8nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 201, - "Message": "Created" - } - } - }, - { - "Duration": 944, - "RecordedAt": "2022-09-07T15:01:19.671218-06:00", - "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_37898d552ef011eda7dbac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_378b65952ef011eda7ddac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"prcl_5a25cce8884e4d7395c6d1f055751017\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:18Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/3a18c4aa517e4f1b9596898a3d565370.png\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"pl_409325e48b594215bfeed4831eeef42f\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_35c7056ed33f457898673688698fd7c1\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_3a0862c2adff450c9d5c0a8592f4b6bd\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_4ead5bc12a2e4f61b85c8864a88f0854\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_c5af986571d34843bb0d1da8a2398488\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_378b65952ef011eda7ddac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"rate_3a0862c2adff450c9d5c0a8592f4b6bd\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_37898d552ef011eda7dbac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzcwMTcxYTc3ZGUzYzRmZjhiNTg4ODBkNTRmNDMxNmQ0\",\"shipment_id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478610\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"trk_70171a77de3c4ff8b58880d54f4316d4\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478610\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"shp_13357f2ceaa5490d95b1d0d98d672327\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Shipment\"}}}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6292" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/pickups" - }, - "Response": { - "Body": "{\"id\":\"pickup_badb33914e1d478497b29810f6e424a9\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_383fca282ef011ed9f8aac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:18-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:19Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_badb33914e1d478497b29810f6e424a9\",\"id\":\"pickuprate_d33383fdd4f0412f84722b60952d7100\",\"object\":\"PickupRate\"}]}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1149" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a276319069ee79a60bf002e9105", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"7a49b85bc89e9837671e03b8004a4339\"", - "x-runtime": "0.874174", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 200, - "Message": "OK" - } - } - }, - { - "Duration": 991, - "RecordedAt": "2022-09-07T15:01:20.732067-06:00", - "Request": { - "Body": "{\"carrier\":\"USPS\",\"service\":\"NextDay\"}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "38" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_badb33914e1d478497b29810f6e424a9/buy" - }, - "Response": { - "Body": "{\"error\":{\"code\":\"PICKUP.BUY.FAILED\",\"message\":\"Service availability unknown.ServerCode=500 serverMessage = Internal server error\",\"errors\":[]}}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "146" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a276319069fe79a60bf002e917a", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.915840", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 400, - "Message": "Bad Request" - } - } - } -] diff --git a/EasyPost.Tests/cassettes/netstandard/pickup/cancel.json b/EasyPost.Tests/cassettes/netstandard/pickup/cancel.json deleted file mode 100644 index f3ae1a641..000000000 --- a/EasyPost.Tests/cassettes/netstandard/pickup/cancel.json +++ /dev/null @@ -1,158 +0,0 @@ -[ - { - "Duration": 226, - "RecordedAt": "2022-09-07T15:01:28.574492-06:00", - "Request": { - "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "580" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/shipments" - }, - "Response": { - "Body": "{\"created_at\":\"2022-09-07T21:01:27Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478757\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3d8316342ef011eda999ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_48790f482c4d4afdb8063a318008b1f7\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_4e41ec0f02a44cc291b4bb29ffe3f068\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/4321e548ae0b4a2eb31616b8ff6c5309.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_293f7a2b8848482ba383863eee597dc1\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_54eb3cef112b4c2a9ea7ffb592d0d9e0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_90f2b09ef6f9457c874fdcc4695aa964\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c82d2537e4824930a0984f0215c71ba5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_90f2b09ef6f9457c874fdcc4695aa964\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_bd1183a84e8a4a46a0543c076d9806bd\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478757\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2JkMTE4M2E4NGU4YTRhNDZhMDU0M2MwNzZkOTgwNmJk\"},\"to_address\":{\"id\":\"adr_3d7ec2952ef011eda116ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3d8316342ef011eda999ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3d7ec2952ef011eda116ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:27-06:00\",\"updated_at\":\"2022-09-07T15:01:27-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"object\":\"Shipment\"}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6956" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a29631906a7e79a64a1002e952a", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_b173b7cde32d4cb4977cf9f6b6f9e5a3", - "ETag": "W/\"9c8f0fd50c9e7660bd1caaf41dd154f8\"", - "x-runtime": "0.947518", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 201, - "Message": "Created" - } - } - }, - { - "Duration": 732, - "RecordedAt": "2022-09-07T15:01:29.362777-06:00", - "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"adr_3d7ec2952ef011eda116ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"adr_3d8316342ef011eda999ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"prcl_48790f482c4d4afdb8063a318008b1f7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:28Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/4321e548ae0b4a2eb31616b8ff6c5309.png\",\"created_at\":\"2022-09-07T21:01:28Z\",\"id\":\"pl_4e41ec0f02a44cc291b4bb29ffe3f068\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"rate_293f7a2b8848482ba383863eee597dc1\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"rate_54eb3cef112b4c2a9ea7ffb592d0d9e0\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"rate_90f2b09ef6f9457c874fdcc4695aa964\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"rate_c82d2537e4824930a0984f0215c71ba5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"adr_3d8316342ef011eda999ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"created_at\":\"2022-09-07T21:01:28Z\",\"id\":\"rate_90f2b09ef6f9457c874fdcc4695aa964\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"adr_3d7ec2952ef011eda116ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2JkMTE4M2E4NGU4YTRhNDZhMDU0M2MwNzZkOTgwNmJk\",\"shipment_id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478757\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:28Z\",\"id\":\"trk_bd1183a84e8a4a46a0543c076d9806bd\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478757\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:27Z\",\"id\":\"shp_b173b7cde32d4cb4977cf9f6b6f9e5a3\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"object\":\"Shipment\"}}}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6292" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/pickups" - }, - "Response": { - "Body": "{\"id\":\"pickup_460e602470924d7e84d11ca6a4e5cea0\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:28Z\",\"updated_at\":\"2022-09-07T21:01:28Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_3e22f1aa2ef011eda155ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:28-06:00\",\"updated_at\":\"2022-09-07T15:01:28-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:29Z\",\"updated_at\":\"2022-09-07T21:01:29Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_460e602470924d7e84d11ca6a4e5cea0\",\"id\":\"pickuprate_e6ffc6f43ffe421d907384afecc0cfe0\",\"object\":\"PickupRate\"}]}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1149" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a29631906a8e79a64a1002e95c5", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "ETag": "W/\"5f9282ef8330675576bfc0f61cc7b05e\"", - "x-runtime": "0.654052", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 200, - "Message": "OK" - } - } - }, - { - "Duration": 64, - "RecordedAt": "2022-09-07T15:01:30.457472-06:00", - "Request": { - "Body": "{\"carrier\":\"USPS\",\"service\":\"NextDay\"}", - "BodyContentType": "Json", - "ContentHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "38" - }, - "Method": "POST", - "RequestHeaders": { - "Authorization": "", - "content_type": "application/json", - "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", - "User-Agent": "" - }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_460e602470924d7e84d11ca6a4e5cea0/buy" - }, - "Response": { - "Body": "{\"error\":{\"code\":\"PICKUP.BUY.FAILED\",\"message\":\"Service availability unknown.ServerCode=500 serverMessage = Internal server error\",\"errors\":[]}}", - "BodyContentType": "Json", - "ContentHeaders": { - "Expires": "0", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "146" - }, - "HttpVersion": "1.1", - "ResponseHeaders": { - "X-Frame-Options": "SAMEORIGIN", - "x-xss-protection": "1; mode=block", - "X-Content-Type-Options": "nosniff", - "x-download-options": "noopen", - "x-permitted-cross-domain-policies": "none", - "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a29631906a9e79a64a1002e9621", - "Cache-Control": "no-store, no-cache, private", - "Pragma": "no-cache", - "x-runtime": "0.975217", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", - "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" - }, - "Status": { - "Code": 400, - "Message": "Bad Request" - } - } - } -] From befdc7aa0675a429037b36300b809f9e1e5e94c5 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 9 Sep 2022 13:50:04 -0600 Subject: [PATCH 5/9] - Address feedback - Remove old nullability warning suppressions from main namespace (add to EasyPost.Tests) - New nullability helper functions to check for nullable elements (see ShipmentService.CreateReturn) --- CHANGELOG.md | 6 +++--- EasyPost.Tests/EasyPost.Tests.csproj | 13 ++++++++++++ EasyPost/EasyPost.csproj | 7 +++---- EasyPost/Models/API/Insurance.cs | 4 ++-- EasyPost/Models/API/PaymentMethodsSummary.cs | 4 ++-- EasyPost/Models/API/Pickup.cs | 4 ++-- EasyPost/Models/API/PickupRate.cs | 1 + EasyPost/Models/API/PostageLabel.cs | 2 +- EasyPost/Models/API/Rate.cs | 2 +- EasyPost/Models/API/ScanForm.cs | 2 +- EasyPost/Models/API/Shipment.cs | 7 ++++++- EasyPost/Models/API/Smartrate.cs | 2 +- EasyPost/Models/API/Tracker.cs | 4 ++-- EasyPost/Models/API/TrackingDetail.cs | 2 +- EasyPost/Models/API/Verification.cs | 4 ++-- EasyPost/Models/API/Verifications.cs | 4 ++-- EasyPost/Services/ShipmentService.cs | 21 ++++++++++++++++---- EasyPost/Utilities/Nullability.cs | 17 ++++++++++++++++ 18 files changed, 77 insertions(+), 29 deletions(-) create mode 100644 EasyPost/Utilities/Nullability.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f49db37..4fc5017a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,18 +8,18 @@ - Library better supports different API versions (i.e. `v2`, `beta`). - Beta features accessed via, e.g. `myClient.Beta.EndShipper.Create()`. - All properties are now title-cased rather than snake-cased to match standard .NET naming conventions. - - e.g. `myShipment.shipment_id` is now `myShipment.ShipmentId`.` + - e.g. `myShipment.id` is now `myShipment.Id`, `myAddress.federal_tax_id` is now `myAddress.FederalTaxId`, `myTrackerCollection.has_more` is now `myTrackerCollection.HasMore`. - Some properties have been renamed to avoid naming conflicts: - `Rate.rate` is now `Rate.Price` - `Message.message` is now `Message.Text` -- All objects now share a common base set of properties, including `id`, `created_at`, `updated_at`, and `mode`. +- All objects now share a common base set of properties, including `Id`, `CreatedAt`, `UpdatedAt`, and `Mode`. - Under the hood improvements: - Underlying `Request`-`Client`-`ClientConfiguration` relationship has been re-architected to allow for thread safety. - Process of generating an API request has been standardized and simplified. - Improved accessibility levels of internal functions, to prevent accidental use by end users. - Files have been organized into a more logical structure. - Methods and properties have been organized (e.g. methods ordered by CRUD, properties ordered alphabetically). -- Dependencies updated to latest versions, including `RestSharp` v108 +- Dependencies updated to latest versions, including `RestSharp` v108. ## v3.4.0 (2022-08-02) diff --git a/EasyPost.Tests/EasyPost.Tests.csproj b/EasyPost.Tests/EasyPost.Tests.csproj index 80898f6de..95c4452cb 100644 --- a/EasyPost.Tests/EasyPost.Tests.csproj +++ b/EasyPost.Tests/EasyPost.Tests.csproj @@ -13,6 +13,19 @@ enable 8.0 + + + + + + + + + + + + CS8600;CS8602;CS8603;CS8604;CS8765;CS8767;CS0659;CS0618 + diff --git a/EasyPost/EasyPost.csproj b/EasyPost/EasyPost.csproj index 2f6ff3276..3120ad318 100644 --- a/EasyPost/EasyPost.csproj +++ b/EasyPost/EasyPost.csproj @@ -23,14 +23,13 @@ 4 false - - CS8618;CS8603;CS8602;CS8765;CS8767;CS0659;CS0618 + CS8603;CS8602;CS8765;CS8767;CS0659;CS0618 pdbonly @@ -55,8 +54,8 @@ false - - + + diff --git a/EasyPost/Models/API/Insurance.cs b/EasyPost/Models/API/Insurance.cs index 7bf43ad1b..ea900a8d1 100644 --- a/EasyPost/Models/API/Insurance.cs +++ b/EasyPost/Models/API/Insurance.cs @@ -28,9 +28,9 @@ public class Insurance : EasyPostObject [JsonProperty("status")] public string? Status { get; set; } [JsonProperty("to_address")] - public Address ToAddress { get; set; } + public Address? ToAddress { get; set; } [JsonProperty("tracker")] - public Tracker Tracker { get; set; } + public Tracker? Tracker { get; set; } [JsonProperty("tracking_code")] public string? TrackingCode { get; set; } diff --git a/EasyPost/Models/API/PaymentMethodsSummary.cs b/EasyPost/Models/API/PaymentMethodsSummary.cs index 6618cca1c..cb309c122 100644 --- a/EasyPost/Models/API/PaymentMethodsSummary.cs +++ b/EasyPost/Models/API/PaymentMethodsSummary.cs @@ -11,9 +11,9 @@ public class PaymentMethodsSummary : EasyPostObject #region JSON Properties [JsonProperty("primary_payment_method")] - public PaymentMethod PrimaryPaymentMethod { get; set; } + public PaymentMethod? PrimaryPaymentMethod { get; set; } [JsonProperty("secondary_payment_method")] - public PaymentMethod SecondaryPaymentMethod { get; set; } + public PaymentMethod? SecondaryPaymentMethod { get; set; } #endregion } diff --git a/EasyPost/Models/API/Pickup.cs b/EasyPost/Models/API/Pickup.cs index d8cff5209..fb6275c59 100644 --- a/EasyPost/Models/API/Pickup.cs +++ b/EasyPost/Models/API/Pickup.cs @@ -24,11 +24,11 @@ public class Pickup : EasyPostObject [JsonProperty("is_account_address")] public bool? IsAccountAddress { get; set; } [JsonProperty("max_datetime")] - public DateTime MaxDatetime { get; set; } + public DateTime? MaxDatetime { get; set; } [JsonProperty("messages")] public List? Messages { get; set; } [JsonProperty("min_datetime")] - public DateTime MinDatetime { get; set; } + public DateTime? MinDatetime { get; set; } [JsonProperty("name")] public string? Name { get; set; } [JsonProperty("pickup_rates")] diff --git a/EasyPost/Models/API/PickupRate.cs b/EasyPost/Models/API/PickupRate.cs index cbf64f72f..01cf88ce9 100644 --- a/EasyPost/Models/API/PickupRate.cs +++ b/EasyPost/Models/API/PickupRate.cs @@ -17,6 +17,7 @@ public class PickupRate : Rate /// An EasyPost.Rate object instance. internal Rate AsRate() { + // ReSharper disable once RedundantCast return (Rate)this; } } diff --git a/EasyPost/Models/API/PostageLabel.cs b/EasyPost/Models/API/PostageLabel.cs index 7518e7225..128ce29fa 100644 --- a/EasyPost/Models/API/PostageLabel.cs +++ b/EasyPost/Models/API/PostageLabel.cs @@ -13,7 +13,7 @@ public class PostageLabel : EasyPostObject [JsonProperty("integrated_form")] public string? IntegratedForm { get; set; } [JsonProperty("label_date")] - public DateTime LabelDate { get; set; } + public DateTime? LabelDate { get; set; } [JsonProperty("label_epl2_url")] public string? LabelEpl2Url { get; set; } [JsonProperty("label_file")] diff --git a/EasyPost/Models/API/Rate.cs b/EasyPost/Models/API/Rate.cs index 8b11a1628..86577f248 100644 --- a/EasyPost/Models/API/Rate.cs +++ b/EasyPost/Models/API/Rate.cs @@ -11,7 +11,7 @@ public class Rate : EasyPostObject [JsonProperty("billing_type")] public string? BillingType { get; set; } [JsonProperty("carbon_offset")] - public CarbonOffset CarbonOffset { get; set; } + public CarbonOffset? CarbonOffset { get; set; } [JsonProperty("carrier")] public string? Carrier { get; set; } [JsonProperty("carrier_account_id")] diff --git a/EasyPost/Models/API/ScanForm.cs b/EasyPost/Models/API/ScanForm.cs index 7c430eda4..b177d4d6c 100644 --- a/EasyPost/Models/API/ScanForm.cs +++ b/EasyPost/Models/API/ScanForm.cs @@ -9,7 +9,7 @@ public class ScanForm : EasyPostObject #region JSON Properties [JsonProperty("address")] - public Address Address { get; set; } + public Address? Address { get; set; } [JsonProperty("batch_id")] public string? BatchId { get; set; } [JsonProperty("form_file_type")] diff --git a/EasyPost/Models/API/Shipment.cs b/EasyPost/Models/API/Shipment.cs index 4f0df3de1..a28f5f130 100644 --- a/EasyPost/Models/API/Shipment.cs +++ b/EasyPost/Models/API/Shipment.cs @@ -113,7 +113,7 @@ public async Task> GetSmartrates() /// The value to insure the shipment for. /// Whether to apply carbon offset to this purchase. [CrudOperations.Update] - public async Task Buy(string rateId, string? insuranceValue = null, bool withCarbonOffset = false) + public async Task Buy(string? rateId, string? insuranceValue = null, bool withCarbonOffset = false) { // TODO: Should this function return the updated Shipment like Order.Buy? if (Id == null) @@ -121,6 +121,11 @@ public async Task Buy(string rateId, string? insuranceValue = null, bool withCar throw new Exception("id is null. Cannot buy a shipment without an id."); } + if (rateId == null) + { + throw new Exception("rateId is null. Cannot buy a shipment without a rateId."); + } + Dictionary parameters = new Dictionary { { "rate", new Dictionary { { "id", rateId } } }, diff --git a/EasyPost/Models/API/Smartrate.cs b/EasyPost/Models/API/Smartrate.cs index 3f5d8a607..c9078283f 100644 --- a/EasyPost/Models/API/Smartrate.cs +++ b/EasyPost/Models/API/Smartrate.cs @@ -39,7 +39,7 @@ public class Smartrate : EasyPostObject [JsonProperty("shipment_id")] public string? ShipmentId { get; set; } [JsonProperty("time_in_transit")] - public TimeInTransit TimeInTransit { get; set; } + public TimeInTransit? TimeInTransit { get; set; } #endregion } diff --git a/EasyPost/Models/API/Tracker.cs b/EasyPost/Models/API/Tracker.cs index 5b279eedf..c403204ec 100644 --- a/EasyPost/Models/API/Tracker.cs +++ b/EasyPost/Models/API/Tracker.cs @@ -12,7 +12,7 @@ public class Tracker : EasyPostObject [JsonProperty("carrier")] public string? Carrier { get; set; } [JsonProperty("carrier_detail")] - public CarrierDetail CarrierDetail { get; set; } + public CarrierDetail? CarrierDetail { get; set; } [JsonProperty("est_delivery_date")] public DateTime? EstDeliveryDate { get; set; } [JsonProperty("public_url")] @@ -28,7 +28,7 @@ public class Tracker : EasyPostObject [JsonProperty("tracking_details")] public List? TrackingDetails { get; set; } [JsonProperty("tracking_updated_at")] - public DateTime TrackingUpdatedAt { get; set; } + public DateTime? TrackingUpdatedAt { get; set; } [JsonProperty("weight")] public double? Weight { get; set; } diff --git a/EasyPost/Models/API/TrackingDetail.cs b/EasyPost/Models/API/TrackingDetail.cs index a1e026a8c..5b004957c 100644 --- a/EasyPost/Models/API/TrackingDetail.cs +++ b/EasyPost/Models/API/TrackingDetail.cs @@ -15,7 +15,7 @@ public class TrackingDetail : EasyPostObject [JsonProperty("status")] public string? Status { get; set; } [JsonProperty("tracking_location")] - public TrackingLocation TrackingLocation { get; set; } + public TrackingLocation? TrackingLocation { get; set; } #endregion } diff --git a/EasyPost/Models/API/Verification.cs b/EasyPost/Models/API/Verification.cs index 5100607c3..d10fb32c4 100644 --- a/EasyPost/Models/API/Verification.cs +++ b/EasyPost/Models/API/Verification.cs @@ -9,10 +9,10 @@ public class Verification : EasyPostObject #region JSON Properties [JsonProperty("details")] - public VerificationDetails Details { get; set; } + public VerificationDetails? Details { get; set; } [JsonProperty("errors")] // TODO: handle refactor of Error - public List Errors { get; set; } + public List? Errors { get; set; } [JsonProperty("success")] public bool? Success { get; set; } diff --git a/EasyPost/Models/API/Verifications.cs b/EasyPost/Models/API/Verifications.cs index 2bbc4cb16..a25b045f4 100644 --- a/EasyPost/Models/API/Verifications.cs +++ b/EasyPost/Models/API/Verifications.cs @@ -8,9 +8,9 @@ public class Verifications : EasyPostObject #region JSON Properties [JsonProperty("delivery")] - public Verification Delivery { get; set; } + public Verification? Delivery { get; set; } [JsonProperty("zip4")] - public Verification Zip4 { get; set; } + public Verification? Zip4 { get; set; } #endregion } diff --git a/EasyPost/Services/ShipmentService.cs b/EasyPost/Services/ShipmentService.cs index 369c926df..81a627356 100644 --- a/EasyPost/Services/ShipmentService.cs +++ b/EasyPost/Services/ShipmentService.cs @@ -5,6 +5,7 @@ using EasyPost.Calculation; using EasyPost.Http; using EasyPost.Models.API; +using EasyPost.Utilities; using EasyPost.Utilities.Annotations; namespace EasyPost.Services @@ -48,23 +49,35 @@ public async Task Create(Dictionary parameters, bool w /// /// Create a return shipment for a shipment. + /// Uses the same To and From addresses as the original shipment by default. + /// Users can override the To and From addresses by passing in new addresses. /// /// Shipment to return. + /// Override the To address for the return. + /// Override the From address for the return. /// A return shipment. [CrudOperations.Create] - public async Task CreateReturn(Shipment shipment) + public async Task CreateReturn(Shipment shipment, Address? overrideToAddress = null, Address? overrideFromAddress = null) { if (shipment.Id == null) { throw new Exception("Shipment.id is null."); } + overrideToAddress ??= shipment.FromAddress; // Use override address if provided, otherwise use original shipment From address as return To address. + overrideFromAddress ??= shipment.ToAddress; // Use override address if provided, otherwise use original shipment To address as return From address. + + if (Nullability.AnyAreNull(overrideToAddress, overrideFromAddress, shipment.Parcel)) + { + throw new Exception("Shipment missing required elements."); + } + return await Create( new Dictionary { - { "to_address", shipment.FromAddress }, - { "from_address", shipment.ToAddress }, - { "parcel", shipment.Parcel }, + { "to_address", overrideToAddress! }, + { "from_address", overrideFromAddress! }, + { "parcel", shipment.Parcel! }, { "is_return", true }, }); } diff --git a/EasyPost/Utilities/Nullability.cs b/EasyPost/Utilities/Nullability.cs new file mode 100644 index 000000000..c5d381bdc --- /dev/null +++ b/EasyPost/Utilities/Nullability.cs @@ -0,0 +1,17 @@ +using System.Linq; + +namespace EasyPost.Utilities +{ + internal static class Nullability + { + /// + /// Check if any of the provided elements are null. + /// + /// Elements to check if they are null. + /// True if any of the elements are null, False otherwise. + internal static bool AnyAreNull(params object?[] elements) + { + return elements.Any(element => element == null); + } + } +} From 57cc343f37e3e11c1f0f23152707167a5306b495 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 9 Sep 2022 14:36:08 -0600 Subject: [PATCH 6/9] - Remove Shipment.CreateReturn function - Remove now-unneeded nullability utilities - Update CHANGELOG.md with info about nullable properties --- CHANGELOG.md | 3 +++ EasyPost/Models/API/Shipment.cs | 16 ------------- EasyPost/Services/ShipmentService.cs | 35 ---------------------------- EasyPost/Utilities/Nullability.cs | 17 -------------- 4 files changed, 3 insertions(+), 68 deletions(-) delete mode 100644 EasyPost/Utilities/Nullability.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fc5017a5..6c19f0153 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ - Some properties have been renamed to avoid naming conflicts: - `Rate.rate` is now `Rate.Price` - `Message.message` is now `Message.Text` +- All properties are now nullable. + - Almost all properties will be assigned a value during JSON deserialization. This is mostly to address compiler warnings. + - Users can proceed with the assumption that any given property will not be null. - All objects now share a common base set of properties, including `Id`, `CreatedAt`, `UpdatedAt`, and `Mode`. - Under the hood improvements: - Underlying `Request`-`Client`-`ClientConfiguration` relationship has been re-architected to allow for thread safety. diff --git a/EasyPost/Models/API/Shipment.cs b/EasyPost/Models/API/Shipment.cs index a28f5f130..3ca5c2ca1 100644 --- a/EasyPost/Models/API/Shipment.cs +++ b/EasyPost/Models/API/Shipment.cs @@ -75,22 +75,6 @@ public class Shipment : EasyPostObject #region CRUD Operations - /// - /// Return this shipment. - /// - /// A return shipment. - [CrudOperations.Create] - public async Task Return() - { - if (Id == null) - { - // This is a local object, not one pulled from the server. - throw new Exception("id is null"); - } - - return await (Client as Client)!.Shipment.CreateReturn(this); - } - /// /// Get the Smartrates for this shipment. /// diff --git a/EasyPost/Services/ShipmentService.cs b/EasyPost/Services/ShipmentService.cs index 81a627356..877f87f18 100644 --- a/EasyPost/Services/ShipmentService.cs +++ b/EasyPost/Services/ShipmentService.cs @@ -47,41 +47,6 @@ public async Task Create(Dictionary parameters, bool w return await Create("shipments", parameters); } - /// - /// Create a return shipment for a shipment. - /// Uses the same To and From addresses as the original shipment by default. - /// Users can override the To and From addresses by passing in new addresses. - /// - /// Shipment to return. - /// Override the To address for the return. - /// Override the From address for the return. - /// A return shipment. - [CrudOperations.Create] - public async Task CreateReturn(Shipment shipment, Address? overrideToAddress = null, Address? overrideFromAddress = null) - { - if (shipment.Id == null) - { - throw new Exception("Shipment.id is null."); - } - - overrideToAddress ??= shipment.FromAddress; // Use override address if provided, otherwise use original shipment From address as return To address. - overrideFromAddress ??= shipment.ToAddress; // Use override address if provided, otherwise use original shipment To address as return From address. - - if (Nullability.AnyAreNull(overrideToAddress, overrideFromAddress, shipment.Parcel)) - { - throw new Exception("Shipment missing required elements."); - } - - return await Create( - new Dictionary - { - { "to_address", overrideToAddress! }, - { "from_address", overrideFromAddress! }, - { "parcel", shipment.Parcel! }, - { "is_return", true }, - }); - } - /// /// Get a paginated list of shipments. /// diff --git a/EasyPost/Utilities/Nullability.cs b/EasyPost/Utilities/Nullability.cs deleted file mode 100644 index c5d381bdc..000000000 --- a/EasyPost/Utilities/Nullability.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Linq; - -namespace EasyPost.Utilities -{ - internal static class Nullability - { - /// - /// Check if any of the provided elements are null. - /// - /// Elements to check if they are null. - /// True if any of the elements are null, False otherwise. - internal static bool AnyAreNull(params object?[] elements) - { - return elements.Any(element => element == null); - } - } -} From 747406f889cc20bd413ab358fb975dd1c993b5c6 Mon Sep 17 00:00:00 2001 From: nharris Date: Mon, 12 Sep 2022 17:10:53 -0600 Subject: [PATCH 7/9] - Update cassettes --- EasyPost.Tests/Fixture.cs | 2 +- .../net/batch/add_remove_shipments.json | 102 +++++++++--------- .../cassettes/net/pickup/create.json | 50 ++++----- .../cassettes/net/pickup/lowest_rate.json | 50 ++++----- .../cassettes/net/pickup/retrieve.json | 74 ++++++------- .../cassettes/net/scan_form/all.json | 24 ++--- .../cassettes/net/scan_form/create.json | 48 ++++----- .../cassettes/net/scan_form/retrieve.json | 74 ++++++------- .../batch/add_remove_shipments.json | 88 +++++++-------- .../cassettes/netstandard/pickup/create.json | 42 ++++---- .../netstandard/pickup/lowest_rate.json | 44 ++++---- .../netstandard/pickup/retrieve.json | 60 +++++------ .../cassettes/netstandard/scan_form/all.json | 18 ++-- .../netstandard/scan_form/create.json | 42 ++++---- .../netstandard/scan_form/retrieve.json | 61 +++++------ 15 files changed, 391 insertions(+), 388 deletions(-) diff --git a/EasyPost.Tests/Fixture.cs b/EasyPost.Tests/Fixture.cs index 623e099b6..f9a0847fc 100644 --- a/EasyPost.Tests/Fixture.cs +++ b/EasyPost.Tests/Fixture.cs @@ -107,7 +107,7 @@ public static Dictionary BasicPickup { get { - const string pickupDate = "2022-09-09"; + const string pickupDate = "2022-09-14"; return new Dictionary { { "address", BasicAddress }, diff --git a/EasyPost.Tests/cassettes/net/batch/add_remove_shipments.json b/EasyPost.Tests/cassettes/net/batch/add_remove_shipments.json index 57aae8fae..0d83cc5cd 100644 --- a/EasyPost.Tests/cassettes/net/batch/add_remove_shipments.json +++ b/EasyPost.Tests/cassettes/net/batch/add_remove_shipments.json @@ -1,7 +1,7 @@ [ { - "Duration": 225, - "RecordedAt": "2022-09-07T14:57:54.406874-06:00", + "Duration": 523, + "RecordedAt": "2022-09-12T16:59:10.544618-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T20:57:53Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478320\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:57:53-06:00\",\"updated_at\":\"2022-09-07T14:57:53-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_cbc16896e7e644b68cd189c7d2909660\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:57:53Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_a3f237a81ebc4de9a2a37d4543221935\",\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:57:54Z\",\"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/20220907/ab959cda5e3d4492bfb9a0af75fe1117.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_6c55f7d6fee5453da1b37ab36d42aaa8\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:57:53Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_868daa7a154640d5a22959c3b34e539d\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:57:53Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:57:53Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6a5f8624c40e4b98b74815af07eea390\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:57:53Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_392924bb796a4aaa836a0f818b565fb7\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478320\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzM5MjkyNGJiNzk2YTRhYWE4MzZhMGY4MThiNTY1ZmI3\"},\"to_address\":{\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:57:53-06:00\",\"updated_at\":\"2022-09-07T14:57:53-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:57:53-06:00\",\"updated_at\":\"2022-09-07T14:57:53-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:57:53-06:00\",\"updated_at\":\"2022-09-07T14:57:53-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T22:59:09Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110069\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_82cc7fb332ee11ed9419ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_d687feb85df84ec88e7996aa182ea4b3\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_eec3b512ff4544c6acb6a66842c13810\",\"created_at\":\"2022-09-12T22:59:10Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59: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/20220912/5495e6655645437a9a838f0ca1162cde.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_187edf761c0b4f619755e74bda021123\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5a27c2c97a624416b1cde13ac71e04ae\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c235d38f20aa487d9970b55abe4c07bc\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_419d14123dc749d58bbdc93dd658c5d7\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_419d14123dc749d58bbdc93dd658c5d7\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:10Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_82562542c89947efbf933f517f360d8c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110069\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T22:59:10Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzgyNTYyNTQyYzg5OTQ3ZWZiZjkzM2Y1MTdmMzYwZDhj\"},\"to_address\":{\"id\":\"adr_82cac2f232ee11ed9418ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_82cc7fb332ee11ed9419ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_82cac2f232ee11ed9418ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,21 +29,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2b631905d1e799fb4f002e5105", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f4631fb9bde79955610019fbe1", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_2ceb28765894462a9a8da67a3fbe7871", - "ETag": "W/\"15bb03ce387bf0c2a112f738b6f33e9a\"", - "x-runtime": "0.946092", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_e51301b54ff84bf5b0d848e9a4c15565", + "ETag": "W/\"2006c166098f20a92918fcadb265dfdc\"", + "x-runtime": "1.009260", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 98, - "RecordedAt": "2022-09-07T14:57:54.608336-06:00", + "Duration": 93, + "RecordedAt": "2022-09-12T16:59:10.666628-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -69,7 +69,7 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_55c39599290e4aca8016231009defb94\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"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}", + "Body": "{\"id\":\"batch_8d2c53bc94ab4ec39d4430ab95bdd727\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-12T22:59:10Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -79,20 +79,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2b631905d2e799fb4f002e5144", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f4631fb9bee79955610019fc2d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"899e10f78523450f053579cff4578c15\"", - "x-runtime": "0.029485", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"7d652a181e1ac76f354a98eba571dd52\"", + "x-runtime": "0.032163", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -102,14 +102,14 @@ } }, { - "Duration": 122, - "RecordedAt": "2022-09-07T14:57:54.801803-06:00", + "Duration": 101, + "RecordedAt": "2022-09-12T16:59:10.788231-06:00", "Request": { - "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"prcl_cbc16896e7e644b68cd189c7d2909660\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:57:54Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/ab959cda5e3d4492bfb9a0af75fe1117.png\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"pl_a3f237a81ebc4de9a2a37d4543221935\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_6c55f7d6fee5453da1b37ab36d42aaa8\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_868daa7a154640d5a22959c3b34e539d\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_6a5f8624c40e4b98b74815af07eea390\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzM5MjkyNGJiNzk2YTRhYWE4MzZhMGY4MThiNTY1ZmI3\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478320\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"trk_392924bb796a4aaa836a0f818b565fb7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478320\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Shipment\"}]}", + "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82cac2f232ee11ed9418ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82cc7fb332ee11ed9419ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"prcl_d687feb85df84ec88e7996aa182ea4b3\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59:10Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/5495e6655645437a9a838f0ca1162cde.png\",\"created_at\":\"2022-09-12T22:59:10Z\",\"id\":\"pl_eec3b512ff4544c6acb6a66842c13810\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_187edf761c0b4f619755e74bda021123\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_5a27c2c97a624416b1cde13ac71e04ae\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_c235d38f20aa487d9970b55abe4c07bc\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_419d14123dc749d58bbdc93dd658c5d7\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82cc7fb332ee11ed9419ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"created_at\":\"2022-09-12T22:59:10Z\",\"id\":\"rate_419d14123dc749d58bbdc93dd658c5d7\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82cac2f232ee11ed9418ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzgyNTYyNTQyYzg5OTQ3ZWZiZjkzM2Y1MTdmMzYwZDhj\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110069\",\"tracking_details\":[],\"created_at\":\"2022-09-12T22:59:10Z\",\"id\":\"trk_82562542c89947efbf933f517f360d8c\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110069\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"object\":\"Shipment\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6000" + "Content-Length": "5955" }, "Method": "POST", "RequestHeaders": { @@ -118,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_55c39599290e4aca8016231009defb94/add_shipments" + "Uri": "https://api.easypost.com/v2/batches/batch_8d2c53bc94ab4ec39d4430ab95bdd727/add_shipments" }, "Response": { - "Body": "{\"id\":\"batch_55c39599290e4aca8016231009defb94\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361136478320\",\"id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_8d2c53bc94ab4ec39d4430ab95bdd727\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-12T22:59:10Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361137110069\",\"id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -131,20 +131,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2b631905d2e799fb4f002e514f", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f4631fb9bee79955610019fc34", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"4e5c8927be1202cd569354f7d8c5fe28\"", - "x-runtime": "0.050529", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"bde5c3ab0bc190f5aab7a3b75445a093\"", + "x-runtime": "0.038775", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -154,14 +154,14 @@ } }, { - "Duration": 125, - "RecordedAt": "2022-09-07T14:57:54.95046-06:00", + "Duration": 109, + "RecordedAt": "2022-09-12T16:59:10.916196-06:00", "Request": { - "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"prcl_cbc16896e7e644b68cd189c7d2909660\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:57:54Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/ab959cda5e3d4492bfb9a0af75fe1117.png\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"pl_a3f237a81ebc4de9a2a37d4543221935\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_6c55f7d6fee5453da1b37ab36d42aaa8\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_868daa7a154640d5a22959c3b34e539d\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"rate_6a5f8624c40e4b98b74815af07eea390\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bddb1aff2eef11ed90afac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"rate_3872497997e74d3fabca4fa73d2cf12f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"adr_bdd91aee2eef11ed8e28ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzM5MjkyNGJiNzk2YTRhYWE4MzZhMGY4MThiNTY1ZmI3\",\"shipment_id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478320\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:57:54Z\",\"id\":\"trk_392924bb796a4aaa836a0f818b565fb7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478320\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:57:53Z\",\"id\":\"shp_2ceb28765894462a9a8da67a3fbe7871\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"object\":\"Shipment\"}]}", + "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82cac2f232ee11ed9418ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82cc7fb332ee11ed9419ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"prcl_d687feb85df84ec88e7996aa182ea4b3\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59:10Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/5495e6655645437a9a838f0ca1162cde.png\",\"created_at\":\"2022-09-12T22:59:10Z\",\"id\":\"pl_eec3b512ff4544c6acb6a66842c13810\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_187edf761c0b4f619755e74bda021123\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_5a27c2c97a624416b1cde13ac71e04ae\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_c235d38f20aa487d9970b55abe4c07bc\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_419d14123dc749d58bbdc93dd658c5d7\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82cc7fb332ee11ed9419ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"created_at\":\"2022-09-12T22:59:10Z\",\"id\":\"rate_419d14123dc749d58bbdc93dd658c5d7\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82cac2f232ee11ed9418ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzgyNTYyNTQyYzg5OTQ3ZWZiZjkzM2Y1MTdmMzYwZDhj\",\"shipment_id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110069\",\"tracking_details\":[],\"created_at\":\"2022-09-12T22:59:10Z\",\"id\":\"trk_82562542c89947efbf933f517f360d8c\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110069\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"shp_e51301b54ff84bf5b0d848e9a4c15565\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"object\":\"Shipment\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6000" + "Content-Length": "5955" }, "Method": "POST", "RequestHeaders": { @@ -170,10 +170,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_55c39599290e4aca8016231009defb94/remove_shipments" + "Uri": "https://api.easypost.com/v2/batches/batch_8d2c53bc94ab4ec39d4430ab95bdd727/remove_shipments" }, "Response": { - "Body": "{\"id\":\"batch_55c39599290e4aca8016231009defb94\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-07T20:57:54Z\",\"updated_at\":\"2022-09-07T20:57:54Z\",\"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}", + "Body": "{\"id\":\"batch_8d2c53bc94ab4ec39d4430ab95bdd727\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-12T22:59:10Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -183,20 +183,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2b631905d2e799fb4f002e5156", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f4631fb9bee79955610019fc3c", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"2e64f604c8eceef05461ce6472a1d569\"", - "x-runtime": "0.049944", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"a09a768c827341c0a8d242803926cc21\"", + "x-runtime": "0.047660", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/pickup/create.json b/EasyPost.Tests/cassettes/net/pickup/create.json index 9721b62ff..42c7cd291 100644 --- a/EasyPost.Tests/cassettes/net/pickup/create.json +++ b/EasyPost.Tests/cassettes/net/pickup/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 373, - "RecordedAt": "2022-09-07T14:59:03.720584-06:00", + "Duration": 195, + "RecordedAt": "2022-09-12T17:02:20.487654-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T20:59:02Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478443\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_e71e481d2eef11ed88faac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:02-06:00\",\"updated_at\":\"2022-09-07T14:59:02-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_18c8b540c0ab4765a41485a037e74d42\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0ca762923c43462ea9c50da3c6e2de18\",\"created_at\":\"2022-09-07T20:59:03Z\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:03Z\",\"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/20220907/59dcb2eefb924a038bcd71c6e29afc8f.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e5935dccec574d7795bc81df10496614\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d6ece1a027344ecf987e90ce89eef796\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7b4cb28d0e8b4e12a529032e1e78ed6c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_10f66d3a986340a7a290a42e5dfdb056\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7b4cb28d0e8b4e12a529032e1e78ed6c\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:03Z\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_8a8902e091054d0eb459d80453a92abd\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478443\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:59:03Z\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzhhODkwMmUwOTEwNTRkMGViNDU5ZDgwNDUzYTkyYWJk\"},\"to_address\":{\"id\":\"adr_e71bb7972eef11ed9154ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:02-06:00\",\"updated_at\":\"2022-09-07T14:59:03-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_e71e481d2eef11ed88faac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:02-06:00\",\"updated_at\":\"2022-09-07T14:59:02-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e71bb7972eef11ed9154ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:02-06:00\",\"updated_at\":\"2022-09-07T14:59:03-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9886746788484385802022c96f92813a\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T23:02:19Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110496\",\"updated_at\":\"2022-09-12T23:02:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_f40d9d0032ee11eda439ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:19-06:00\",\"updated_at\":\"2022-09-12T17:02:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6d1014da7fe24d64b67e24a4e1891c80\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T23:02:19Z\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_09dcef2bd53344ea96ca518693c11057\",\"created_at\":\"2022-09-12T23:02:20Z\",\"updated_at\":\"2022-09-12T23:02:20Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02:20Z\",\"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/20220912/14f5e217a40540dbbb222dc92cfbf58d.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_5258df2d98134c2a8704f4af0782b925\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:19Z\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2860c9410a024f5cb0274ef470eb5dec\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:19Z\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_536d3c70a80d4f74b4b73ec41ea038d2\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:19Z\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3f497c0fc04247248ef768749b296467\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:19Z\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3f497c0fc04247248ef768749b296467\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:20Z\",\"updated_at\":\"2022-09-12T23:02:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_7ec5427801fb4ac5875507fbc6c0044a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110496\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T23:02:20Z\",\"updated_at\":\"2022-09-12T23:02:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzdlYzU0Mjc4MDFmYjRhYzU4NzU1MDdmYmM2YzAwNDRh\"},\"to_address\":{\"id\":\"adr_f40be2f932ee11ed97d0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:19-06:00\",\"updated_at\":\"2022-09-12T17:02:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_f40d9d0032ee11eda439ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:19-06:00\",\"updated_at\":\"2022-09-12T17:02:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_f40be2f932ee11ed97d0ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:19-06:00\",\"updated_at\":\"2022-09-12T17:02:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,21 +29,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2963190616e79a6078002e6049", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f3631fba7be7995963001a4d62", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_9886746788484385802022c96f92813a", - "ETag": "W/\"03db825765be60316eb799e3752a3bd0\"", - "x-runtime": "1.039023", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_63b69bb3f07843efb8de42e86e3510a2", + "ETag": "W/\"08ab04fed3e67a48941f872afad65952\"", + "x-runtime": "0.955196", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 684, - "RecordedAt": "2022-09-07T14:59:04.427159-06:00", + "Duration": 856, + "RecordedAt": "2022-09-12T17:02:21.380494-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"adr_e71bb7972eef11ed9154ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"adr_e71e481d2eef11ed88faac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"prcl_18c8b540c0ab4765a41485a037e74d42\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:03Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/59dcb2eefb924a038bcd71c6e29afc8f.png\",\"created_at\":\"2022-09-07T20:59:03Z\",\"id\":\"pl_0ca762923c43462ea9c50da3c6e2de18\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"rate_e5935dccec574d7795bc81df10496614\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"rate_d6ece1a027344ecf987e90ce89eef796\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"rate_7b4cb28d0e8b4e12a529032e1e78ed6c\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"rate_10f66d3a986340a7a290a42e5dfdb056\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"adr_e71e481d2eef11ed88faac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"created_at\":\"2022-09-07T20:59:03Z\",\"id\":\"rate_7b4cb28d0e8b4e12a529032e1e78ed6c\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"adr_e71bb7972eef11ed9154ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzhhODkwMmUwOTEwNTRkMGViNDU5ZDgwNDUzYTkyYWJk\",\"shipment_id\":\"shp_9886746788484385802022c96f92813a\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478443\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:59:03Z\",\"id\":\"trk_8a8902e091054d0eb459d80453a92abd\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478443\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:59:02Z\",\"id\":\"shp_9886746788484385802022c96f92813a\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-14\",\"max_datetime\":\"2022-09-14\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:19Z\",\"id\":\"adr_f40be2f932ee11ed97d0ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:19Z\",\"id\":\"adr_f40d9d0032ee11eda439ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T23:02:19Z\",\"id\":\"prcl_6d1014da7fe24d64b67e24a4e1891c80\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02:20Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/14f5e217a40540dbbb222dc92cfbf58d.png\",\"created_at\":\"2022-09-12T23:02:20Z\",\"id\":\"pl_09dcef2bd53344ea96ca518693c11057\",\"updated_at\":\"2022-09-12T23:02:20Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"created_at\":\"2022-09-12T23:02:19Z\",\"id\":\"rate_5258df2d98134c2a8704f4af0782b925\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"created_at\":\"2022-09-12T23:02:19Z\",\"id\":\"rate_2860c9410a024f5cb0274ef470eb5dec\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"created_at\":\"2022-09-12T23:02:19Z\",\"id\":\"rate_536d3c70a80d4f74b4b73ec41ea038d2\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"created_at\":\"2022-09-12T23:02:19Z\",\"id\":\"rate_3f497c0fc04247248ef768749b296467\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:19Z\",\"id\":\"adr_f40d9d0032ee11eda439ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"created_at\":\"2022-09-12T23:02:20Z\",\"id\":\"rate_3f497c0fc04247248ef768749b296467\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:20Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:19Z\",\"id\":\"adr_f40be2f932ee11ed97d0ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzdlYzU0Mjc4MDFmYjRhYzU4NzU1MDdmYmM2YzAwNDRh\",\"shipment_id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110496\",\"tracking_details\":[],\"created_at\":\"2022-09-12T23:02:20Z\",\"id\":\"trk_7ec5427801fb4ac5875507fbc6c0044a\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:20Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110496\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T23:02:19Z\",\"id\":\"shp_63b69bb3f07843efb8de42e86e3510a2\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:20Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6290" + "Content-Length": "6245" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_42aabdc4e4724939b878b4689e64d6f0\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:59:03Z\",\"updated_at\":\"2022-09-07T20:59:03Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e7c903012eef11ed9abbac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:03-06:00\",\"updated_at\":\"2022-09-07T14:59:03-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:59:04Z\",\"updated_at\":\"2022-09-07T20:59:04Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_42aabdc4e4724939b878b4689e64d6f0\",\"id\":\"pickuprate_14eefa8fe5aa4708be1200b9c44f57f8\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_26e001f8c9e84fd9b1b945f5feeeaab1\",\"object\":\"Pickup\",\"created_at\":\"2022-09-12T23:02:20Z\",\"updated_at\":\"2022-09-12T23:02:20Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-14T00:00:00Z\",\"max_datetime\":\"2022-09-14T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_f4ad804a32ee11eda3c1ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:20-06:00\",\"updated_at\":\"2022-09-12T17:02:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-12T23:02:21Z\",\"updated_at\":\"2022-09-12T23:02:21Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_26e001f8c9e84fd9b1b945f5feeeaab1\",\"id\":\"pickuprate_00169c91f70747cb838bc67b7b2a3be5\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,20 +82,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2963190617e79a6078002e608b", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f3631fba7ce7995963001a4dc2", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"7fa7e5f12ac2a5b49c2aa4e88cf6d350\"", - "x-runtime": "0.612946", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"d24f5e56390cf1595ad692270ff1f3d0\"", + "x-runtime": "0.790412", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/pickup/lowest_rate.json b/EasyPost.Tests/cassettes/net/pickup/lowest_rate.json index 3af87ed79..5d04a1738 100644 --- a/EasyPost.Tests/cassettes/net/pickup/lowest_rate.json +++ b/EasyPost.Tests/cassettes/net/pickup/lowest_rate.json @@ -1,7 +1,7 @@ [ { - "Duration": 364, - "RecordedAt": "2022-09-07T14:59:01.355844-06:00", + "Duration": 120, + "RecordedAt": "2022-09-12T17:02:18.349181-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T20:59:00Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478436\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_e5bd90222eef11ed888dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:00-06:00\",\"updated_at\":\"2022-09-07T14:59:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b4826a782d144ede81bbd8f7eb54a4bc\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:59:00Z\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_92b118a6824645b3a5167d3dd073b571\",\"created_at\":\"2022-09-07T20:59:01Z\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:01Z\",\"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/20220907/b592843abf284f3abf017518e632ee48.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_a33e56ef920d43e48dd639287b861ba6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:00Z\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e0b7e8d7c0274a848ad72ee636b29336\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:00Z\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9b52f3592b714e5a91f6dc905b8a8736\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:00Z\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5ee60c8751904eb39dd633cf02b33690\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:00Z\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_e0b7e8d7c0274a848ad72ee636b29336\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:59:01Z\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_19d6a0e389344a6a85ea63340c3c01b2\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478436\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:59:01Z\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzE5ZDZhMGUzODkzNDRhNmE4NWVhNjMzNDBjM2MwMWIy\"},\"to_address\":{\"id\":\"adr_e5bace512eef11ed888bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:00-06:00\",\"updated_at\":\"2022-09-07T14:59:00-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_e5bd90222eef11ed888dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:00-06:00\",\"updated_at\":\"2022-09-07T14:59:00-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e5bace512eef11ed888bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:00-06:00\",\"updated_at\":\"2022-09-07T14:59:00-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T23:02:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110489\",\"updated_at\":\"2022-09-12T23:02:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_f2d2b46232ee11eda7c7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:17-06:00\",\"updated_at\":\"2022-09-12T17:02:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_0abde1fc0b5f437d92c993cd917509ba\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T23:02:17Z\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_fd5d2ad99a7d4debb33a598cd6ed52de\",\"created_at\":\"2022-09-12T23:02:18Z\",\"updated_at\":\"2022-09-12T23:02:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02: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/20220912/f41ab089ceb44706abbe3f490323ac5c.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_048a566dbbbd49509029b4d9dab89eff\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:17Z\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2a42b99be6c24512bab8c3eae8f3edc9\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:17Z\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d43c8ec61bc547f5a151c7b6261979d1\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:17Z\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_04dd5122f90e4387a61f798f97f027da\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:17Z\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_04dd5122f90e4387a61f798f97f027da\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:18Z\",\"updated_at\":\"2022-09-12T23:02:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_399808c4bebd4ae3ba53073ed3043ca0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110489\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T23:02:18Z\",\"updated_at\":\"2022-09-12T23:02:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzM5OTgwOGM0YmViZDRhZTNiYTUzMDczZWQzMDQzY2Ew\"},\"to_address\":{\"id\":\"adr_f2d0183532ee11ed9781ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:17-06:00\",\"updated_at\":\"2022-09-12T17:02:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_f2d2b46232ee11eda7c7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:17-06:00\",\"updated_at\":\"2022-09-12T17:02:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_f2d0183532ee11ed9781ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:17-06:00\",\"updated_at\":\"2022-09-12T17:02:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,21 +29,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2c63190614e79a6060002e5fbd", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f6631fba79e7995961001a4c7b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_ce5d1883f315451b9e9ea01b92dbc9d5", - "ETag": "W/\"db522e809b4097ac075d97024c9e34f1\"", - "x-runtime": "1.077168", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_3c4ccd10938340c09dea79732acc81c4", + "ETag": "W/\"a3d0a67fe1eb5eec627cbe2dc64dca42\"", + "x-runtime": "0.868061", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 932, - "RecordedAt": "2022-09-07T14:59:02.324695-06:00", + "Duration": 881, + "RecordedAt": "2022-09-12T17:02:19.263325-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"adr_e5bace512eef11ed888bac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"adr_e5bd90222eef11ed888dac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"prcl_b4826a782d144ede81bbd8f7eb54a4bc\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:59:01Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/b592843abf284f3abf017518e632ee48.png\",\"created_at\":\"2022-09-07T20:59:01Z\",\"id\":\"pl_92b118a6824645b3a5167d3dd073b571\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"rate_a33e56ef920d43e48dd639287b861ba6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"rate_e0b7e8d7c0274a848ad72ee636b29336\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"rate_9b52f3592b714e5a91f6dc905b8a8736\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"rate_5ee60c8751904eb39dd633cf02b33690\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"adr_e5bd90222eef11ed888dac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"created_at\":\"2022-09-07T20:59:01Z\",\"id\":\"rate_e0b7e8d7c0274a848ad72ee636b29336\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"adr_e5bace512eef11ed888bac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:00Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzE5ZDZhMGUzODkzNDRhNmE4NWVhNjMzNDBjM2MwMWIy\",\"shipment_id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478436\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:59:01Z\",\"id\":\"trk_19d6a0e389344a6a85ea63340c3c01b2\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478436\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:59:00Z\",\"id\":\"shp_ce5d1883f315451b9e9ea01b92dbc9d5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-14\",\"max_datetime\":\"2022-09-14\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:17Z\",\"id\":\"adr_f2d0183532ee11ed9781ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:17Z\",\"id\":\"adr_f2d2b46232ee11eda7c7ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T23:02:17Z\",\"id\":\"prcl_0abde1fc0b5f437d92c993cd917509ba\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02:18Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/f41ab089ceb44706abbe3f490323ac5c.png\",\"created_at\":\"2022-09-12T23:02:18Z\",\"id\":\"pl_fd5d2ad99a7d4debb33a598cd6ed52de\",\"updated_at\":\"2022-09-12T23:02:18Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"created_at\":\"2022-09-12T23:02:17Z\",\"id\":\"rate_048a566dbbbd49509029b4d9dab89eff\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"created_at\":\"2022-09-12T23:02:17Z\",\"id\":\"rate_2a42b99be6c24512bab8c3eae8f3edc9\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"created_at\":\"2022-09-12T23:02:17Z\",\"id\":\"rate_d43c8ec61bc547f5a151c7b6261979d1\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"created_at\":\"2022-09-12T23:02:17Z\",\"id\":\"rate_04dd5122f90e4387a61f798f97f027da\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:17Z\",\"id\":\"adr_f2d2b46232ee11eda7c7ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"created_at\":\"2022-09-12T23:02:18Z\",\"id\":\"rate_04dd5122f90e4387a61f798f97f027da\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:18Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:17Z\",\"id\":\"adr_f2d0183532ee11ed9781ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzM5OTgwOGM0YmViZDRhZTNiYTUzMDczZWQzMDQzY2Ew\",\"shipment_id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110489\",\"tracking_details\":[],\"created_at\":\"2022-09-12T23:02:18Z\",\"id\":\"trk_399808c4bebd4ae3ba53073ed3043ca0\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:18Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110489\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T23:02:17Z\",\"id\":\"shp_3c4ccd10938340c09dea79732acc81c4\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:18Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6290" + "Content-Length": "6245" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_a5909f2218fa41ca889a1c077328bed2\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:59:01Z\",\"updated_at\":\"2022-09-07T20:59:01Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e65fbf8b2eef11ed9a5bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:59:01-06:00\",\"updated_at\":\"2022-09-07T14:59:01-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:59:02Z\",\"updated_at\":\"2022-09-07T20:59:02Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_a5909f2218fa41ca889a1c077328bed2\",\"id\":\"pickuprate_5c9108a469da47a2ac196f90401810b7\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_b1fb998e6b2e45ebb4cc28b86c8be991\",\"object\":\"Pickup\",\"created_at\":\"2022-09-12T23:02:18Z\",\"updated_at\":\"2022-09-12T23:02:18Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-14T00:00:00Z\",\"max_datetime\":\"2022-09-14T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_f367dd7f32ee11ed97a4ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:18-06:00\",\"updated_at\":\"2022-09-12T17:02:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-12T23:02:19Z\",\"updated_at\":\"2022-09-12T23:02:19Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_b1fb998e6b2e45ebb4cc28b86c8be991\",\"id\":\"pickuprate_66428c72d88e4e0c9d66eb7c6c20c2f3\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,20 +82,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2c63190615e79a6060002e6001", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f6631fba7ae7995961001a4ce9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"a622b725803f5a18db70dc39c3c9beda\"", - "x-runtime": "0.861609", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"dfc85d5d51b2710149da6e5e819012ff\"", + "x-runtime": "0.772173", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/pickup/retrieve.json b/EasyPost.Tests/cassettes/net/pickup/retrieve.json index 274a4e8f5..c4a9c2268 100644 --- a/EasyPost.Tests/cassettes/net/pickup/retrieve.json +++ b/EasyPost.Tests/cassettes/net/pickup/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 259, - "RecordedAt": "2022-09-07T14:58:58.766256-06:00", + "Duration": 523, + "RecordedAt": "2022-09-12T17:02:15.444096-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T20:58:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478429\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_e42f8fd12eef11ed907fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:57-06:00\",\"updated_at\":\"2022-09-07T14:58:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5f853f5c71174987ba6fa71c6198df49\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:58:57Z\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_2727be0f6925460989440e4ffc79df90\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:58:58Z\",\"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/20220907/ff7432015fcf458d870aa7a7d6187ed6.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_a51e359309b74bf7a2651bb470bf855e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:57Z\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_85d68de9f48040ed8674fa55ae1e905b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_829cd926bdb34277bd7f29f1ff913ad6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_707665e08c784a2782ccdf9894c4dbf9\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_85d68de9f48040ed8674fa55ae1e905b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_6a3df891ccc646c99368cd8e36a98497\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478429\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:58:58Z\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzZhM2RmODkxY2NjNjQ2Yzk5MzY4Y2Q4ZTM2YTk4NDk3\"},\"to_address\":{\"id\":\"adr_e42cd6f82eef11ed999cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:57-06:00\",\"updated_at\":\"2022-09-07T14:58:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_e42f8fd12eef11ed907fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:57-06:00\",\"updated_at\":\"2022-09-07T14:58:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e42cd6f82eef11ed999cac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:57-06:00\",\"updated_at\":\"2022-09-07T14:58:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T23:02:14Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110472\",\"updated_at\":\"2022-09-12T23:02:15Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_f0e0c8cb32ee11ed9703ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:14-06:00\",\"updated_at\":\"2022-09-12T17:02:14-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7bbd6572174949e7bffaa3efed0f7e60\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T23:02:14Z\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_1dbe4910c168453e9b9d0cc74bf83313\",\"created_at\":\"2022-09-12T23:02:14Z\",\"updated_at\":\"2022-09-12T23:02:15Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02: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/20220912/4abcf179fcf4446dbdb5a377d90096ba.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_86d63ec19d1d43528d71d4130b7fdcb7\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:14Z\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b7c672f5466d44c2ad6415e5bfa4fa36\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:14Z\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_2f77b182235e4ef496470a0b11df0fa4\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:14Z\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_11874bf45f4f43c1afada56961844508\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:14Z\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_11874bf45f4f43c1afada56961844508\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:15Z\",\"updated_at\":\"2022-09-12T23:02:15Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_fd5e875200b6409e81d3c01c40e30bc9\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110472\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T23:02:15Z\",\"updated_at\":\"2022-09-12T23:02:15Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2ZkNWU4NzUyMDBiNjQwOWU4MWQzYzAxYzQwZTMwYmM5\"},\"to_address\":{\"id\":\"adr_f0debac132ee11eda2a9ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:14-06:00\",\"updated_at\":\"2022-09-12T17:02:14-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_f0e0c8cb32ee11ed9703ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:14-06:00\",\"updated_at\":\"2022-09-12T17:02:14-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_f0debac132ee11eda2a9ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:14-06:00\",\"updated_at\":\"2022-09-12T17:02:14-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,21 +29,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2963190611e79a605f002e5f2a", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f5631fba76e799595f001a4b42", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_ad38780b93ba4d12bd07e9614add4d1e", - "ETag": "W/\"25b40f2585b1c552d29f8844b9ba3b5f\"", - "x-runtime": "1.004197", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_211b54ac8d3c45b8aaaabfb957378726", + "ETag": "W/\"2119e4ed88ea82d4a2194d2841a4c43c\"", + "x-runtime": "1.112027", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 3, - "RecordedAt": "2022-09-07T14:58:59.802453-06:00", + "Duration": 303, + "RecordedAt": "2022-09-12T17:02:17.018318-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"adr_e42cd6f82eef11ed999cac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"adr_e42f8fd12eef11ed907fac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"prcl_5f853f5c71174987ba6fa71c6198df49\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:58:58Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/ff7432015fcf458d870aa7a7d6187ed6.png\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"pl_2727be0f6925460989440e4ffc79df90\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"rate_a51e359309b74bf7a2651bb470bf855e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"rate_85d68de9f48040ed8674fa55ae1e905b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"rate_829cd926bdb34277bd7f29f1ff913ad6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"rate_707665e08c784a2782ccdf9894c4dbf9\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"adr_e42f8fd12eef11ed907fac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:57Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"rate_85d68de9f48040ed8674fa55ae1e905b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"adr_e42cd6f82eef11ed999cac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzZhM2RmODkxY2NjNjQ2Yzk5MzY4Y2Q4ZTM2YTk4NDk3\",\"shipment_id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478429\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:58:58Z\",\"id\":\"trk_6a3df891ccc646c99368cd8e36a98497\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478429\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:58:57Z\",\"id\":\"shp_ad38780b93ba4d12bd07e9614add4d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:58:58Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-14\",\"max_datetime\":\"2022-09-14\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:14Z\",\"id\":\"adr_f0debac132ee11eda2a9ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:14Z\",\"id\":\"adr_f0e0c8cb32ee11ed9703ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T23:02:14Z\",\"id\":\"prcl_7bbd6572174949e7bffaa3efed0f7e60\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02:14Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/4abcf179fcf4446dbdb5a377d90096ba.png\",\"created_at\":\"2022-09-12T23:02:14Z\",\"id\":\"pl_1dbe4910c168453e9b9d0cc74bf83313\",\"updated_at\":\"2022-09-12T23:02:15Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"created_at\":\"2022-09-12T23:02:14Z\",\"id\":\"rate_86d63ec19d1d43528d71d4130b7fdcb7\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"created_at\":\"2022-09-12T23:02:14Z\",\"id\":\"rate_b7c672f5466d44c2ad6415e5bfa4fa36\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"created_at\":\"2022-09-12T23:02:14Z\",\"id\":\"rate_2f77b182235e4ef496470a0b11df0fa4\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"created_at\":\"2022-09-12T23:02:14Z\",\"id\":\"rate_11874bf45f4f43c1afada56961844508\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:14Z\",\"id\":\"adr_f0e0c8cb32ee11ed9703ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"created_at\":\"2022-09-12T23:02:15Z\",\"id\":\"rate_11874bf45f4f43c1afada56961844508\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:15Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:14Z\",\"id\":\"adr_f0debac132ee11eda2a9ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:14Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2ZkNWU4NzUyMDBiNjQwOWU4MWQzYzAxYzQwZTMwYmM5\",\"shipment_id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110472\",\"tracking_details\":[],\"created_at\":\"2022-09-12T23:02:15Z\",\"id\":\"trk_fd5e875200b6409e81d3c01c40e30bc9\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:15Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110472\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T23:02:14Z\",\"id\":\"shp_211b54ac8d3c45b8aaaabfb957378726\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:15Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6290" + "Content-Length": "6245" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_ce1eb36fb69f4017bd70ca1f881dddb7\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:58:59Z\",\"updated_at\":\"2022-09-07T20:58:59Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e4d55ebe2eef11ed99e3ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:58-06:00\",\"updated_at\":\"2022-09-07T14:58:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:58:59Z\",\"updated_at\":\"2022-09-07T20:58:59Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_ce1eb36fb69f4017bd70ca1f881dddb7\",\"id\":\"pickuprate_c36250f8076646cf920bb4909c5330cc\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_c6e089155bc74038b0de0596599ce897\",\"object\":\"Pickup\",\"created_at\":\"2022-09-12T23:02:15Z\",\"updated_at\":\"2022-09-12T23:02:15Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-14T00:00:00Z\",\"max_datetime\":\"2022-09-14T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_f1cf79cc32ee11ed973eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:15-06:00\",\"updated_at\":\"2022-09-12T17:02:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-12T23:02:17Z\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_c6e089155bc74038b0de0596599ce897\",\"id\":\"pickuprate_4afe761a1522440c83eb57d24dde40ed\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,20 +82,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2963190612e79a605f002e5f65", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f5631fba77e799595f001a4bd7", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"238c4e66c624955cb503dd64e48c5f54\"", - "x-runtime": "0.936003", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"8880b605720af65ac8be73786ed32a4e\"", + "x-runtime": "1.183465", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -105,8 +105,8 @@ } }, { - "Duration": 148, - "RecordedAt": "2022-09-07T14:58:59.967775-06:00", + "Duration": 116, + "RecordedAt": "2022-09-12T17:02:17.181051-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -118,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_ce1eb36fb69f4017bd70ca1f881dddb7" + "Uri": "https://api.easypost.com/v2/pickups/pickup_c6e089155bc74038b0de0596599ce897" }, "Response": { - "Body": "{\"id\":\"pickup_ce1eb36fb69f4017bd70ca1f881dddb7\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T20:58:59Z\",\"updated_at\":\"2022-09-07T20:58:59Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_e4d55ebe2eef11ed99e3ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:58:58-06:00\",\"updated_at\":\"2022-09-07T14:58:58-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T20:58:59Z\",\"updated_at\":\"2022-09-07T20:58:59Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_ce1eb36fb69f4017bd70ca1f881dddb7\",\"id\":\"pickuprate_c36250f8076646cf920bb4909c5330cc\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_c6e089155bc74038b0de0596599ce897\",\"object\":\"Pickup\",\"created_at\":\"2022-09-12T23:02:15Z\",\"updated_at\":\"2022-09-12T23:02:15Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-14T00:00:00Z\",\"max_datetime\":\"2022-09-14T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_f1cf79cc32ee11ed973eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:15-06:00\",\"updated_at\":\"2022-09-12T17:02:15-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-12T23:02:17Z\",\"updated_at\":\"2022-09-12T23:02:17Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_c6e089155bc74038b0de0596599ce897\",\"id\":\"pickuprate_4afe761a1522440c83eb57d24dde40ed\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -131,20 +131,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2963190613e79a605f002e5fa2", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f5631fba79e799595f001a4c59", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"238c4e66c624955cb503dd64e48c5f54\"", - "x-runtime": "0.072788", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"8880b605720af65ac8be73786ed32a4e\"", + "x-runtime": "0.060023", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/scan_form/all.json b/EasyPost.Tests/cassettes/net/scan_form/all.json index c4668b3eb..d010dda4c 100644 --- a/EasyPost.Tests/cassettes/net/scan_form/all.json +++ b/EasyPost.Tests/cassettes/net/scan_form/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 298, - "RecordedAt": "2022-09-07T14:53:57.49142-06:00", + "Duration": 463, + "RecordedAt": "2022-09-12T16:59:11.254092-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,30 +16,30 @@ "Uri": "https://api.easypost.com/v2/scan_forms?page_size=5" }, "Response": { - "Body": "{\"scan_forms\":[{\"id\":\"sf_7c0f64a979b1489793d687dbd1845f5c\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_codes\":[\"9400100109361136477774\"],\"address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/eb1ac305dc5a41b0be1b643810782fc2.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_e5c80887bdab48d5a4002504c5200122\",\"confirmation\":null},{\"id\":\"sf_6e9d576c6098475b9787ce35bffccaf5\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:29Z\",\"updated_at\":\"2022-09-07T20:53:29Z\",\"tracking_codes\":[\"9400100109361136477637\"],\"address\":{\"id\":\"adr_1a1e64852eef11edaf5fac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:18-06:00\",\"updated_at\":\"2022-09-07T14:53:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/cd8a81920d6f4413b8efcb12494b7c86.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_93ef92a77be249239c94295b64ab7fdd\",\"confirmation\":null},{\"id\":\"sf_6f5d909c651b4a90bbc3a78b4b34e1d1\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:20Z\",\"updated_at\":\"2022-09-07T20:53:20Z\",\"tracking_codes\":[\"9400100109361136477668\"],\"address\":{\"id\":\"adr_1a76559d2eef11ed95c0ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:19-06:00\",\"updated_at\":\"2022-09-07T14:53:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/aacc23195019452c80ff37ae584d61a1.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_4cb2312c65634af8a93137327c9a9f94\",\"confirmation\":null},{\"id\":\"sf_ebada8b0051c4b7e8f587506ccfaaf0c\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:18Z\",\"updated_at\":\"2022-09-07T20:53:18Z\",\"tracking_codes\":[\"9400100109361136477569\"],\"address\":{\"id\":\"adr_18f2b7c62eef11ed9508ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:16-06:00\",\"updated_at\":\"2022-09-07T14:53:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/94ad544e8d4b48b586c1c7a4f89a42a4.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_bb3207affe2844dbb0097191f8d721f1\",\"confirmation\":null},{\"id\":\"sf_4d6282c88f9340d78846a454e0faeaf3\",\"object\":\"ScanForm\",\"created_at\":\"2022-08-29T22:52:24Z\",\"updated_at\":\"2022-08-29T22:52:24Z\",\"tracking_codes\":[\"9400100109361135567186\"],\"address\":{\"id\":\"adr_3eab9c0527ed11ed9f9fac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-08-29T16:52:23-06:00\",\"updated_at\":\"2022-08-29T16:52:23-06: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\":{}},\"status\":\"created\",\"message\":null,\"form_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220829/aa19a6e05fd748c3b911e3f886eef645.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_bde88bc3ff4648558632df4004b8998c\",\"confirmation\":null}],\"has_more\":true}", + "Body": "{\"scan_forms\":[{\"id\":\"sf_161ca90811514404bacfd06f644d04ed\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-12T22:59:10Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"tracking_codes\":[\"9400100109361137110045\"],\"address\":{\"id\":\"adr_82af9f9b32ee11ed88afac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220912/5472eea82bc44b899246cce8ab4b6b4a.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_46997b4f1b8a4db7bce8e0bfad4c9ba9\",\"confirmation\":null},{\"id\":\"sf_220876a01d174e5689c43d4ee8f52672\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:40Z\",\"updated_at\":\"2022-09-07T21:01:40Z\",\"tracking_codes\":[\"9400100109361136478771\"],\"address\":{\"id\":\"adr_38b6a58d2ef011edb161ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/4a8b2a7152df4609bdd4b1b46bc65218.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_560b69809ce240de9767ab071b83f1e9\",\"confirmation\":null},{\"id\":\"sf_57314bd186fc4eec84608a37d0149cc0\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"tracking_codes\":[\"9400100109361136478696\"],\"address\":{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/d9afb8792a2941ab85a43299cb4cb198.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_c77f988e69e345f58a7e156d2181a3a0\",\"confirmation\":null},{\"id\":\"sf_bb476c78992e4a49a80a59c2a61748ac\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"tracking_codes\":[\"9400100109361136478627\"],\"address\":{\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/7b6262eee31646e9ba5ddb7a21dad9a3.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_1b2b60752ffc43a7b1a11a22e2e25d06\",\"confirmation\":null},{\"id\":\"sf_3c69ed79f08a47c89629e2ba869f32d1\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:57:52Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"tracking_codes\":[\"9400100109361136478313\"],\"address\":{\"id\":\"adr_b11c781b2eef11ed8ea1ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:57:32-06:00\",\"updated_at\":\"2022-09-07T14:57:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/a6ae209c0de246c087ff1cc87f408b27.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_edd16069b9134894ba1524fbcbda475b\",\"confirmation\":null}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "4528" + "Content-Length": "4522" }, "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2a631904e5e799fa23002e0c76", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f0631fb9bfe79955660019fc48", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"542360cd0cef753cf69b68dc07951f45\"", - "x-runtime": "0.044180", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"90878596e706521dc889d4e4136fe127\"", + "x-runtime": "0.217820", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/scan_form/create.json b/EasyPost.Tests/cassettes/net/scan_form/create.json index adb584150..b676362ac 100644 --- a/EasyPost.Tests/cassettes/net/scan_form/create.json +++ b/EasyPost.Tests/cassettes/net/scan_form/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 404, - "RecordedAt": "2022-09-07T14:53:58.922143-06:00", + "Duration": 354, + "RecordedAt": "2022-09-12T16:59:12.631989-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T20:53:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477866\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_41b7c45d0eaf400cac9a2f117bfd6e0d\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:57Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_eaf0505e23c44d058dc526462d58ad30\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"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/20220907/88c8e41c1df840f3b18f4a214367bcfe.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_332e6431bff045a497bb3e5ad3c34f4b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_29eb5d68862046f38d19fbbf06b8a04e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_81965b4a593b4a90946d5cd20956e613\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_609ab8bfbbc94e31821d55efd0c20b18\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_332e6431bff045a497bb3e5ad3c34f4b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_80205a1e339b4be89d52129d5c06c9a0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477866\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:53:58Z\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzgwMjA1YTFlMzM5YjRiZTg5ZDUyMTI5ZDVjMDZjOWEw\"},\"to_address\":{\"id\":\"adr_3164862d2eef11ed987eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3164862d2eef11ed987eac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:58-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T22:59:11Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110106\",\"updated_at\":\"2022-09-12T22:59:12Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_83fe3a3232ee11ed890dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:11-06:00\",\"updated_at\":\"2022-09-12T16:59:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_3882175c0f5f417ba81b39844c008da6\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T22:59:11Z\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_dacaf869ddf64eeea8cadd8ff78d2869\",\"created_at\":\"2022-09-12T22:59:12Z\",\"updated_at\":\"2022-09-12T22:59:12Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59:12Z\",\"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/20220912/ad8a3e2144ff4f419418893e35837f15.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_4dd55aef404d4d90abce93268175ae81\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:11Z\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_5a3fbb079ffa4627a91a48e5123e6af9\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:11Z\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_e4bd525484704d63af9b62aeab32f5b0\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:11Z\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_38d8fda6ac65403d83cd72b836bedbe9\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:11Z\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_5a3fbb079ffa4627a91a48e5123e6af9\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:12Z\",\"updated_at\":\"2022-09-12T22:59:12Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_a3bf06ed71a049449a2a514ea5854965\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110106\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T22:59:12Z\",\"updated_at\":\"2022-09-12T22:59:12Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2EzYmYwNmVkNzFhMDQ5NDQ5YTJhNTE0ZWE1ODU0OTY1\"},\"to_address\":{\"id\":\"adr_83fc1c9b32ee11ed8deaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:11-06:00\",\"updated_at\":\"2022-09-12T16:59:11-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_83fe3a3232ee11ed890dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:11-06:00\",\"updated_at\":\"2022-09-12T16:59:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_83fc1c9b32ee11ed8deaac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:11-06:00\",\"updated_at\":\"2022-09-12T16:59:11-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,21 +29,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a27631904e5e799fa40002e0c9c", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f5631fb9bfe79955680019fc6b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_52f3a6c37e7e4802986793f185d7dc37", - "ETag": "W/\"0ce852dfb15dce176ae49a813d630df2\"", - "x-runtime": "1.114373", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_1db98a8767774a7f92a338eb38f5af1c", + "ETag": "W/\"d43035ac2a69a5dfc64ad124fc768363\"", + "x-runtime": "1.104133", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 404, - "RecordedAt": "2022-09-07T14:53:59.347598-06:00", + "Duration": 288, + "RecordedAt": "2022-09-12T16:59:12.945904-06:00", "Request": { - "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"adr_3164862d2eef11ed987eac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"prcl_41b7c45d0eaf400cac9a2f117bfd6e0d\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:58Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/88c8e41c1df840f3b18f4a214367bcfe.png\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"pl_eaf0505e23c44d058dc526462d58ad30\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"rate_332e6431bff045a497bb3e5ad3c34f4b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"rate_29eb5d68862046f38d19fbbf06b8a04e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"rate_81965b4a593b4a90946d5cd20956e613\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"rate_609ab8bfbbc94e31821d55efd0c20b18\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"rate_332e6431bff045a497bb3e5ad3c34f4b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"adr_3164862d2eef11ed987eac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzgwMjA1YTFlMzM5YjRiZTg5ZDUyMTI5ZDVjMDZjOWEw\",\"shipment_id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477866\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:53:58Z\",\"id\":\"trk_80205a1e339b4be89d52129d5c06c9a0\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136477866\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:53:57Z\",\"id\":\"shp_52f3a6c37e7e4802986793f185d7dc37\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:58Z\",\"object\":\"Shipment\"}]}}", + "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:11Z\",\"id\":\"adr_83fc1c9b32ee11ed8deaac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:11Z\",\"id\":\"adr_83fe3a3232ee11ed890dac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T22:59:11Z\",\"id\":\"prcl_3882175c0f5f417ba81b39844c008da6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59:12Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/ad8a3e2144ff4f419418893e35837f15.png\",\"created_at\":\"2022-09-12T22:59:12Z\",\"id\":\"pl_dacaf869ddf64eeea8cadd8ff78d2869\",\"updated_at\":\"2022-09-12T22:59:12Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"created_at\":\"2022-09-12T22:59:11Z\",\"id\":\"rate_4dd55aef404d4d90abce93268175ae81\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"created_at\":\"2022-09-12T22:59:11Z\",\"id\":\"rate_5a3fbb079ffa4627a91a48e5123e6af9\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"created_at\":\"2022-09-12T22:59:11Z\",\"id\":\"rate_e4bd525484704d63af9b62aeab32f5b0\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"created_at\":\"2022-09-12T22:59:11Z\",\"id\":\"rate_38d8fda6ac65403d83cd72b836bedbe9\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:11Z\",\"id\":\"adr_83fe3a3232ee11ed890dac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"created_at\":\"2022-09-12T22:59:12Z\",\"id\":\"rate_5a3fbb079ffa4627a91a48e5123e6af9\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:12Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:11Z\",\"id\":\"adr_83fc1c9b32ee11ed8deaac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:11Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2EzYmYwNmVkNzFhMDQ5NDQ5YTJhNTE0ZWE1ODU0OTY1\",\"shipment_id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110106\",\"tracking_details\":[],\"created_at\":\"2022-09-12T22:59:12Z\",\"id\":\"trk_a3bf06ed71a049449a2a514ea5854965\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:12Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110106\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T22:59:11Z\",\"id\":\"shp_1db98a8767774a7f92a338eb38f5af1c\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:12Z\",\"object\":\"Shipment\"}]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6014" + "Content-Length": "5969" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/scan_forms" }, "Response": { - "Body": "{\"id\":\"sf_7b526727dffa45ccbcab334a712214a0\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"tracking_codes\":[\"9400100109361136477866\"],\"address\":{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/776bd5d92dbb4fc5b9f5bf175f7c295c.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_8b5d36e64e024bdf967e0e6b9ee42234\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_973a2bb701f24359a1d15dbc7ba54a30\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-12T22:59:12Z\",\"updated_at\":\"2022-09-12T22:59:13Z\",\"tracking_codes\":[\"9400100109361137110106\"],\"address\":{\"id\":\"adr_83fe3a3232ee11ed890dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:11-06:00\",\"updated_at\":\"2022-09-12T16:59:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220912/5b9064ba8788420ba202f726ed522ceb.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_a5b95cfdc9964486bbd84033d1366ea0\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,20 +82,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a27631904e7e799fa40002e0d13", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f5631fb9c0e79955680019fcc2", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"2a6eaf53317e9abfc6e08d6b820d60ce\"", - "x-runtime": "0.339668", + "ETag": "W/\"395184024314901d9f86a652fb33314d\"", + "x-runtime": "0.225745", "x-node": "bigweb3nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/scan_form/retrieve.json b/EasyPost.Tests/cassettes/net/scan_form/retrieve.json index 79b697748..4b6574e1c 100644 --- a/EasyPost.Tests/cassettes/net/scan_form/retrieve.json +++ b/EasyPost.Tests/cassettes/net/scan_form/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 520, - "RecordedAt": "2022-09-07T14:53:56.575796-06:00", + "Duration": 519, + "RecordedAt": "2022-09-12T16:59:10.241706-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T20:53:55Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477774\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5d001683b33a46588973c49ce2d01fda\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ebb9c865f1cf41c292fd4f6dad476a73\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:56Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/d654e066810a4ac6b6ce251b79cb4018.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_463ce54a5fe0493e999700b42915e2cd\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a46be94220d64fa1ac4b453c3b7bb087\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_be8f5af9c2fc44999d29e2ed7c27cdb6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_117f8734a78b4e17bd7e0af36f1c4633\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:55Z\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_be8f5af9c2fc44999d29e2ed7c27cdb6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_a4e01f58ed1a4fb7a36275b12ab1bb19\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136477774\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2E0ZTAxZjU4ZWQxYTRmYjdhMzYyNzViMTJhYjFiYjE5\"},\"to_address\":{\"id\":\"adr_300881ff2eef11ed97d9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_300881ff2eef11ed97d9ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T22:59:09Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110045\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_82af9f9b32ee11ed88afac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_1d2315b3f6f54887962d6aba1d6a0d3c\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_913555c31cb543ab8d11e1972541c3e9\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59:09Z\",\"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/20220912/f4ef0fcb7ce446e98d720be22ee7a8c2.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_184b5417ce224ebdbb8990c3a745b267\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_126622a70c744d00805b6d377621fd31\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_893dac317271431faf9ac498184e45c4\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9d2e9a7c72c540c68aea3bcae9f99600\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_184b5417ce224ebdbb8990c3a745b267\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:09Z\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_cc78381a8787481eb6bd0cd9330a4c8f\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110045\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T22:59:10Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2NjNzgzODFhODc4NzQ4MWViNmJkMGNkOTMzMGE0Yzhm\"},\"to_address\":{\"id\":\"adr_82ad8a0432ee11ed9410ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_82af9f9b32ee11ed88afac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_82ad8a0432ee11ed9410ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,21 +29,21 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a28631904e3e799f6ac002e0b9b", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f0631fb9bde79955480019fbd6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_d83c92f9530a4adc901267f4d2ddc642", - "ETag": "W/\"a4ea275f723252193adf024d9d8dfa14\"", - "x-runtime": "1.046137", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_28672aad3e724f09b5a47ef4d9448fa0", + "ETag": "W/\"a72d593f21c05a08f81b4758bc7b7759\"", + "x-runtime": "0.887054", + "x-node": "bigweb9nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 390, - "RecordedAt": "2022-09-07T14:53:56.996567-06:00", + "Duration": 372, + "RecordedAt": "2022-09-12T16:59:10.656086-06:00", "Request": { - "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"adr_300881ff2eef11ed97d9ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"prcl_5d001683b33a46588973c49ce2d01fda\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T20:53:56Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/d654e066810a4ac6b6ce251b79cb4018.png\",\"created_at\":\"2022-09-07T20:53:56Z\",\"id\":\"pl_ebb9c865f1cf41c292fd4f6dad476a73\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"rate_463ce54a5fe0493e999700b42915e2cd\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"rate_a46be94220d64fa1ac4b453c3b7bb087\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"rate_be8f5af9c2fc44999d29e2ed7c27cdb6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"rate_117f8734a78b4e17bd7e0af36f1c4633\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"created_at\":\"2022-09-07T20:53:56Z\",\"id\":\"rate_be8f5af9c2fc44999d29e2ed7c27cdb6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"adr_300881ff2eef11ed97d9ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:55Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2E0ZTAxZjU4ZWQxYTRmYjdhMzYyNzViMTJhYjFiYjE5\",\"shipment_id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136477774\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T20:53:56Z\",\"id\":\"trk_a4e01f58ed1a4fb7a36275b12ab1bb19\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136477774\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T20:53:55Z\",\"id\":\"shp_d83c92f9530a4adc901267f4d2ddc642\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T20:53:56Z\",\"object\":\"Shipment\"}]}}", + "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82ad8a0432ee11ed9410ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82af9f9b32ee11ed88afac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"prcl_1d2315b3f6f54887962d6aba1d6a0d3c\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59:09Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/f4ef0fcb7ce446e98d720be22ee7a8c2.png\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"pl_913555c31cb543ab8d11e1972541c3e9\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_184b5417ce224ebdbb8990c3a745b267\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_126622a70c744d00805b6d377621fd31\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_893dac317271431faf9ac498184e45c4\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_9d2e9a7c72c540c68aea3bcae9f99600\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82af9f9b32ee11ed88afac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"rate_184b5417ce224ebdbb8990c3a745b267\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"adr_82ad8a0432ee11ed9410ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:09Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2NjNzgzODFhODc4NzQ4MWViNmJkMGNkOTMzMGE0Yzhm\",\"shipment_id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110045\",\"tracking_details\":[],\"created_at\":\"2022-09-12T22:59:10Z\",\"id\":\"trk_cc78381a8787481eb6bd0cd9330a4c8f\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110045\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T22:59:09Z\",\"id\":\"shp_28672aad3e724f09b5a47ef4d9448fa0\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"object\":\"Shipment\"}]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6014" + "Content-Length": "5969" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/scan_forms" }, "Response": { - "Body": "{\"id\":\"sf_7c0f64a979b1489793d687dbd1845f5c\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_codes\":[\"9400100109361136477774\"],\"address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/eb1ac305dc5a41b0be1b643810782fc2.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_e5c80887bdab48d5a4002504c5200122\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_161ca90811514404bacfd06f644d04ed\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-12T22:59:10Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"tracking_codes\":[\"9400100109361137110045\"],\"address\":{\"id\":\"adr_82af9f9b32ee11ed88afac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220912/5472eea82bc44b899246cce8ab4b6b4a.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_46997b4f1b8a4db7bce8e0bfad4c9ba9\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,20 +82,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a28631904e4e799f6ac002e0c12", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f0631fb9bee79955480019fc18", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"a06d3d43a1a7e691e3331861d2d742de\"", - "x-runtime": "0.327806", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"867bcd1b87315f4520a17893acc21f3d\"", + "x-runtime": "0.310951", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -105,8 +105,8 @@ } }, { - "Duration": 123, - "RecordedAt": "2022-09-07T14:53:57.15043-06:00", + "Duration": 82, + "RecordedAt": "2022-09-12T16:59:10.760561-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -118,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/scan_forms/sf_7c0f64a979b1489793d687dbd1845f5c" + "Uri": "https://api.easypost.com/v2/scan_forms/sf_161ca90811514404bacfd06f644d04ed" }, "Response": { - "Body": "{\"id\":\"sf_7c0f64a979b1489793d687dbd1845f5c\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_codes\":[\"9400100109361136477774\"],\"address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/eb1ac305dc5a41b0be1b643810782fc2.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_e5c80887bdab48d5a4002504c5200122\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_161ca90811514404bacfd06f644d04ed\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-12T22:59:10Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"tracking_codes\":[\"9400100109361137110045\"],\"address\":{\"id\":\"adr_82af9f9b32ee11ed88afac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220912/5472eea82bc44b899246cce8ab4b6b4a.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_46997b4f1b8a4db7bce8e0bfad4c9ba9\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -131,20 +131,20 @@ "HttpVersion": "1.1", "ResponseHeaders": { "X-Frame-Options": "SAMEORIGIN", - "X-XSS-Protection": "1; mode=block", + "x-xss-protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", - "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a28631904e5e799f6ac002e0c4a", + "referrer-policy": "strict-origin-when-cross-origin", + "x-ep-request-uuid": "1d5539f0631fb9bee79955480019fc33", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"a06d3d43a1a7e691e3331861d2d742de\"", - "x-runtime": "0.053132", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"867bcd1b87315f4520a17893acc21f3d\"", + "x-runtime": "0.026724", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/batch/add_remove_shipments.json b/EasyPost.Tests/cassettes/netstandard/batch/add_remove_shipments.json index eaf2f6dd0..9335e096b 100644 --- a/EasyPost.Tests/cassettes/netstandard/batch/add_remove_shipments.json +++ b/EasyPost.Tests/cassettes/netstandard/batch/add_remove_shipments.json @@ -1,7 +1,7 @@ [ { - "Duration": 304, - "RecordedAt": "2022-09-07T15:01:42.130771-06:00", + "Duration": 260, + "RecordedAt": "2022-09-12T16:59:18.136318-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T21:01:41Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478818\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:41-06:00\",\"updated_at\":\"2022-09-07T15:01:41-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_ffe434f1b06c452e8b688d901e403de6\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_43c21a83e05840f0a60ac415fab535d1\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/6dda387b91224f6b93c976a75c49d8f1.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_4de70b3232ee4b3f8c579f35e22fa212\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_167202b7ab3b47aea6d4baa3a4a2257a\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_acaf39d619de499d962559b04da87d50\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:41Z\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_2a308f7efb0148d68fde389aaed3b1b2\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478818\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzJhMzA4ZjdlZmIwMTQ4ZDY4ZmRlMzg5YWFlZDNiMWIy\"},\"to_address\":{\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:41-06:00\",\"updated_at\":\"2022-09-07T15:01:41-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:41-06:00\",\"updated_at\":\"2022-09-07T15:01:41-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:41-06:00\",\"updated_at\":\"2022-09-07T15:01:41-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T22:59:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110144\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_8753fbb532ee11ed89d4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:17-06:00\",\"updated_at\":\"2022-09-12T16:59:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_77091731b5c34d1caae83c6d7005f38f\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_71782f0bd9a441b691f6fe971a800e60\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59: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/20220912/ed5775249376490080206879734cc388.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_eb29313aef4e4d66bd167b383148dc03\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0e84903076c14539b698c403ebccc5e1\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_cfa719b5c95a4ac8a5d115a46d4f7dad\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_daa08954b24f43d0858f09420e4cb50d\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_daa08954b24f43d0858f09420e4cb50d\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_7c9183800e19478fb38ffbc07f292fc1\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110144\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T22:59:18Z\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzdjOTE4MzgwMGUxOTQ3OGZiMzhmZmJjMDdmMjkyZmMx\"},\"to_address\":{\"id\":\"adr_8751458532ee11ed8eaeac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:17-06:00\",\"updated_at\":\"2022-09-12T16:59:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_8753fbb532ee11ed89d4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:17-06:00\",\"updated_at\":\"2022-09-12T16:59:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_8751458532ee11ed8eaeac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:17-06:00\",\"updated_at\":\"2022-09-12T16:59:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2b631906b5e79a64dd002e9adc", + "x-ep-request-uuid": "1d5539f3631fb9c5e799587c0019fdb6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_6aa330c847194861aac5ec755bf93ded", - "ETag": "W/\"f6b3f78cf0b2172d4032ca0e042e87a8\"", - "x-runtime": "1.032348", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_c41bcbcef1574b588f242250154aa0ac", + "ETag": "W/\"b5c82ef680b644f96738d8b1566eb608\"", + "x-runtime": "1.017726", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,8 +53,8 @@ } }, { - "Duration": 92, - "RecordedAt": "2022-09-07T15:01:42.277436-06:00", + "Duration": 150, + "RecordedAt": "2022-09-12T16:59:18.322068-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -69,7 +69,7 @@ "Uri": "https://api.easypost.com/v2/batches" }, "Response": { - "Body": "{\"id\":\"batch_20374cc335d94b4e9316baba88f3218a\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"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}", + "Body": "{\"id\":\"batch_58ae4f47c9004f2a9819cf68074b8006\",\"object\":\"EasyPost::Entity::Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-12T22:59:18Z\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -84,16 +84,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2b631906b6e79a64dd002e9b4d", + "x-ep-request-uuid": "1d5539f3631fb9c6e799587c0019fdef", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"1bf1c7da5225981807a56bd86e70d259\"", - "x-runtime": "0.031746", - "x-node": "bigweb7nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"e6731b7184f214a24895589cfdd27765\"", + "x-runtime": "0.091342", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -103,14 +102,14 @@ } }, { - "Duration": 157, - "RecordedAt": "2022-09-07T15:01:42.46272-06:00", + "Duration": 130, + "RecordedAt": "2022-09-12T16:59:18.476294-06:00", "Request": { - "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"prcl_ffe434f1b06c452e8b688d901e403de6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:41Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/6dda387b91224f6b93c976a75c49d8f1.png\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"pl_43c21a83e05840f0a60ac415fab535d1\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_4de70b3232ee4b3f8c579f35e22fa212\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_167202b7ab3b47aea6d4baa3a4a2257a\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_acaf39d619de499d962559b04da87d50\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzJhMzA4ZjdlZmIwMTQ4ZDY4ZmRlMzg5YWFlZDNiMWIy\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478818\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:42Z\",\"id\":\"trk_2a308f7efb0148d68fde389aaed3b1b2\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478818\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"object\":\"Shipment\"}]}", + "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"adr_8751458532ee11ed8eaeac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"adr_8753fbb532ee11ed89d4ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"prcl_77091731b5c34d1caae83c6d7005f38f\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59:17Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/ed5775249376490080206879734cc388.png\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"pl_71782f0bd9a441b691f6fe971a800e60\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"rate_eb29313aef4e4d66bd167b383148dc03\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"rate_0e84903076c14539b698c403ebccc5e1\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"rate_cfa719b5c95a4ac8a5d115a46d4f7dad\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"rate_daa08954b24f43d0858f09420e4cb50d\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"adr_8753fbb532ee11ed89d4ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"rate_daa08954b24f43d0858f09420e4cb50d\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"adr_8751458532ee11ed8eaeac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzdjOTE4MzgwMGUxOTQ3OGZiMzhmZmJjMDdmMjkyZmMx\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110144\",\"tracking_details\":[],\"created_at\":\"2022-09-12T22:59:18Z\",\"id\":\"trk_7c9183800e19478fb38ffbc07f292fc1\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110144\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"object\":\"Shipment\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6002" + "Content-Length": "5957" }, "Method": "POST", "RequestHeaders": { @@ -119,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_20374cc335d94b4e9316baba88f3218a/add_shipments" + "Uri": "https://api.easypost.com/v2/batches/batch_58ae4f47c9004f2a9819cf68074b8006/add_shipments" }, "Response": { - "Body": "{\"id\":\"batch_20374cc335d94b4e9316baba88f3218a\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361136478818\",\"id\":\"shp_6aa330c847194861aac5ec755bf93ded\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", + "Body": "{\"id\":\"batch_58ae4f47c9004f2a9819cf68074b8006\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2022-09-12T22:59:18Z\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100109361137110144\",\"id\":\"shp_c41bcbcef1574b588f242250154aa0ac\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -137,15 +136,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2b631906b6e79a64dd002e9b57", + "x-ep-request-uuid": "1d5539f3631fb9c6e799587c0019fdf9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"e0eb0d218b8c321eb466953b8d2ed067\"", - "x-runtime": "0.051458", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"b5f90eef606463eb6be91e3e9d63aa0f\"", + "x-runtime": "0.063877", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -155,14 +155,14 @@ } }, { - "Duration": 122, - "RecordedAt": "2022-09-07T15:01:42.613875-06:00", + "Duration": 110, + "RecordedAt": "2022-09-12T16:59:18.612131-06:00", "Request": { - "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"prcl_ffe434f1b06c452e8b688d901e403de6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:41Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/6dda387b91224f6b93c976a75c49d8f1.png\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"pl_43c21a83e05840f0a60ac415fab535d1\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_4de70b3232ee4b3f8c579f35e22fa212\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_167202b7ab3b47aea6d4baa3a4a2257a\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_acaf39d619de499d962559b04da87d50\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_4588b7922ef011edb51bac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"rate_1b623a7bef3740a0aaf7d8ba168a5e79\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"adr_458687172ef011eda38cac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:41Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzJhMzA4ZjdlZmIwMTQ4ZDY4ZmRlMzg5YWFlZDNiMWIy\",\"shipment_id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478818\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:42Z\",\"id\":\"trk_2a308f7efb0148d68fde389aaed3b1b2\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478818\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:41Z\",\"id\":\"shp_6aa330c847194861aac5ec755bf93ded\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"object\":\"Shipment\"}]}", + "Body": "{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"adr_8751458532ee11ed8eaeac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"adr_8753fbb532ee11ed89d4ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"prcl_77091731b5c34d1caae83c6d7005f38f\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59:17Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/ed5775249376490080206879734cc388.png\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"pl_71782f0bd9a441b691f6fe971a800e60\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"rate_eb29313aef4e4d66bd167b383148dc03\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"rate_0e84903076c14539b698c403ebccc5e1\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"rate_cfa719b5c95a4ac8a5d115a46d4f7dad\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"rate_daa08954b24f43d0858f09420e4cb50d\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"adr_8753fbb532ee11ed89d4ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"rate_daa08954b24f43d0858f09420e4cb50d\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"adr_8751458532ee11ed8eaeac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzdjOTE4MzgwMGUxOTQ3OGZiMzhmZmJjMDdmMjkyZmMx\",\"shipment_id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110144\",\"tracking_details\":[],\"created_at\":\"2022-09-12T22:59:18Z\",\"id\":\"trk_7c9183800e19478fb38ffbc07f292fc1\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110144\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"shp_c41bcbcef1574b588f242250154aa0ac\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"object\":\"Shipment\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6002" + "Content-Length": "5957" }, "Method": "POST", "RequestHeaders": { @@ -171,10 +171,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/batches/batch_20374cc335d94b4e9316baba88f3218a/remove_shipments" + "Uri": "https://api.easypost.com/v2/batches/batch_58ae4f47c9004f2a9819cf68074b8006/remove_shipments" }, "Response": { - "Body": "{\"id\":\"batch_20374cc335d94b4e9316baba88f3218a\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-07T21:01:42Z\",\"updated_at\":\"2022-09-07T21:01:42Z\",\"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}", + "Body": "{\"id\":\"batch_58ae4f47c9004f2a9819cf68074b8006\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2022-09-12T22:59:18Z\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"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}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -189,15 +189,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2b631906b6e79a64dd002e9b6b", + "x-ep-request-uuid": "1d5539f3631fb9c6e799587c0019fe05", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"b91e5907ef00cdba4e68cf530cba60c2\"", - "x-runtime": "0.042181", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"c3c580614224e5c6e10000bfe34901b3\"", + "x-runtime": "0.047334", + "x-node": "bigweb6nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/pickup/create.json b/EasyPost.Tests/cassettes/netstandard/pickup/create.json index 3c3dcbc1e..64a89883a 100644 --- a/EasyPost.Tests/cassettes/netstandard/pickup/create.json +++ b/EasyPost.Tests/cassettes/netstandard/pickup/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 232, - "RecordedAt": "2022-09-07T15:01:26.480986-06:00", + "Duration": 218, + "RecordedAt": "2022-09-12T17:02:29.810531-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T21:01:25Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478733\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3c414a362ef011eda0baac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5ffe00258d09451f8ce75c8bf0cadbe1\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_45148dd59fbb4ed3a431b5c2d37de081\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/9ac119680c574b88ace1b124139c19fd.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_696706d4daab41e2b1b0946a48e1e701\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_29a54c6616e8456bbf58854caad33a2e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_39d7e9dd50bd4b5f83b87d5091ec95a5\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7df294075a724ea0ab79621d245d0ae6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7df294075a724ea0ab79621d245d0ae6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_8f2377ed02904246b64601adf72b5b57\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478733\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzhmMjM3N2VkMDI5MDQyNDZiNjQ2MDFhZGY3MmI1YjU3\"},\"to_address\":{\"id\":\"adr_3c3f644c2ef011eda679ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3c414a362ef011eda0baac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3c3f644c2ef011eda679ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:25-06:00\",\"updated_at\":\"2022-09-07T15:01:25-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T23:02:29Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110533\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_f99e431532ee11eda9c5ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:28-06:00\",\"updated_at\":\"2022-09-12T17:02:28-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_80198ba184604995b6326fd46258d7d8\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T23:02:28Z\",\"updated_at\":\"2022-09-12T23:02:28Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_e7d91f6b6e1e4f20a12b4f630f2d67b5\",\"created_at\":\"2022-09-12T23:02:29Z\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02: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/20220912/ca70e9bce35f452387b956bdd5a7af0b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_6c4b635da0eb4672af1c9072de564548\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:29Z\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7af0ebb01fb746c7afa79c634b053357\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:29Z\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9e20668bf1c94000a7b19ffd82aa6e73\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:29Z\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c5895c6fce264f3c96214ad35c53c631\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:29Z\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_6c4b635da0eb4672af1c9072de564548\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:29Z\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_535a28ca4e0247288328b5df33cd2f2e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110533\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T23:02:29Z\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzUzNWEyOGNhNGUwMjQ3Mjg4MzI4YjVkZjMzY2QyZjJl\"},\"to_address\":{\"id\":\"adr_f99b528b32ee11eda52dac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:28-06:00\",\"updated_at\":\"2022-09-12T17:02:29-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_f99e431532ee11eda9c5ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:28-06:00\",\"updated_at\":\"2022-09-12T17:02:28-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_f99b528b32ee11eda52dac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:28-06:00\",\"updated_at\":\"2022-09-12T17:02:29-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2c631906a5e79a649f002e9414", + "x-ep-request-uuid": "1d5539f4631fba84e7995968001a50f2", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_69fc4cbf3ced4b4eb6199cdd32462bc5", - "ETag": "W/\"05a9ac928ca975962322e9eac1eb5c69\"", - "x-runtime": "0.950878", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_555b0b30a1564132bf85c0d1120d5366", + "ETag": "W/\"4c3a0ff310cc7198e28393211f73149f\"", + "x-runtime": "0.947786", + "x-node": "bigweb2nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 773, - "RecordedAt": "2022-09-07T15:01:27.31451-06:00", + "Duration": 283, + "RecordedAt": "2022-09-12T17:02:31.141491-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"adr_3c3f644c2ef011eda679ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"adr_3c414a362ef011eda0baac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"prcl_5ffe00258d09451f8ce75c8bf0cadbe1\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:26Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/9ac119680c574b88ace1b124139c19fd.png\",\"created_at\":\"2022-09-07T21:01:26Z\",\"id\":\"pl_45148dd59fbb4ed3a431b5c2d37de081\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"rate_696706d4daab41e2b1b0946a48e1e701\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"rate_29a54c6616e8456bbf58854caad33a2e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"rate_39d7e9dd50bd4b5f83b87d5091ec95a5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"rate_7df294075a724ea0ab79621d245d0ae6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"adr_3c414a362ef011eda0baac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"created_at\":\"2022-09-07T21:01:26Z\",\"id\":\"rate_7df294075a724ea0ab79621d245d0ae6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"adr_3c3f644c2ef011eda679ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzhmMjM3N2VkMDI5MDQyNDZiNjQ2MDFhZGY3MmI1YjU3\",\"shipment_id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478733\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:26Z\",\"id\":\"trk_8f2377ed02904246b64601adf72b5b57\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478733\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:25Z\",\"id\":\"shp_69fc4cbf3ced4b4eb6199cdd32462bc5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-14\",\"max_datetime\":\"2022-09-14\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:28Z\",\"id\":\"adr_f99b528b32ee11eda52dac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:28Z\",\"id\":\"adr_f99e431532ee11eda9c5ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:28Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T23:02:28Z\",\"id\":\"prcl_80198ba184604995b6326fd46258d7d8\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:28Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02:29Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/ca70e9bce35f452387b956bdd5a7af0b.png\",\"created_at\":\"2022-09-12T23:02:29Z\",\"id\":\"pl_e7d91f6b6e1e4f20a12b4f630f2d67b5\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"created_at\":\"2022-09-12T23:02:29Z\",\"id\":\"rate_6c4b635da0eb4672af1c9072de564548\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"created_at\":\"2022-09-12T23:02:29Z\",\"id\":\"rate_7af0ebb01fb746c7afa79c634b053357\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"created_at\":\"2022-09-12T23:02:29Z\",\"id\":\"rate_9e20668bf1c94000a7b19ffd82aa6e73\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"created_at\":\"2022-09-12T23:02:29Z\",\"id\":\"rate_c5895c6fce264f3c96214ad35c53c631\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:28Z\",\"id\":\"adr_f99e431532ee11eda9c5ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:28Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"created_at\":\"2022-09-12T23:02:29Z\",\"id\":\"rate_6c4b635da0eb4672af1c9072de564548\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:28Z\",\"id\":\"adr_f99b528b32ee11eda52dac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzUzNWEyOGNhNGUwMjQ3Mjg4MzI4YjVkZjMzY2QyZjJl\",\"shipment_id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110533\",\"tracking_details\":[],\"created_at\":\"2022-09-12T23:02:29Z\",\"id\":\"trk_535a28ca4e0247288328b5df33cd2f2e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110533\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T23:02:29Z\",\"id\":\"shp_555b0b30a1564132bf85c0d1120d5366\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:29Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6292" + "Content-Length": "6247" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_8c0203510ca74d7fb11000d1ee4fadc3\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:26Z\",\"updated_at\":\"2022-09-07T21:01:26Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_3ce366ad2ef011edb28eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:26-06:00\",\"updated_at\":\"2022-09-07T15:01:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:27Z\",\"updated_at\":\"2022-09-07T21:01:27Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_8c0203510ca74d7fb11000d1ee4fadc3\",\"id\":\"pickuprate_9be36320615d416288d8724388b4ef70\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_f4d97da320a84cb6892e07b261e6a1b1\",\"object\":\"Pickup\",\"created_at\":\"2022-09-12T23:02:30Z\",\"updated_at\":\"2022-09-12T23:02:30Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-14T00:00:00Z\",\"max_datetime\":\"2022-09-14T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_fa3d875f32ee11ed99a5ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:30-06:00\",\"updated_at\":\"2022-09-12T17:02:30-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-12T23:02:31Z\",\"updated_at\":\"2022-09-12T23:02:31Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_f4d97da320a84cb6892e07b261e6a1b1\",\"id\":\"pickuprate_d527911e54234e2fb987abdc1e48c9e1\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2c631906a6e79a649f002e94a8", + "x-ep-request-uuid": "1d5539f4631fba85e7995968001a5150", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"e4fae2f68cb24deb8a90ce1342cedc0f\"", - "x-runtime": "0.705100", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"e754d3d1bef0c3e1670141b9aaeda30c\"", + "x-runtime": "1.117001", + "x-node": "bigweb4nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/pickup/lowest_rate.json b/EasyPost.Tests/cassettes/netstandard/pickup/lowest_rate.json index 93ec3b8f5..c92f31052 100644 --- a/EasyPost.Tests/cassettes/netstandard/pickup/lowest_rate.json +++ b/EasyPost.Tests/cassettes/netstandard/pickup/lowest_rate.json @@ -1,7 +1,7 @@ [ { - "Duration": 458, - "RecordedAt": "2022-09-07T15:01:24.477015-06:00", + "Duration": 236, + "RecordedAt": "2022-09-12T17:02:27.536289-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T21:01:23Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478726\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3aeb878d2ef011edb1fcac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_8e5c55541e25439da0769c69dbda4bf5\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_afce1547bd3a48928220d11dbbcdbace\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/cd351fd7a2564521a167cb59d6fc1820.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_077c59d6a52a439e8cdda647d6943651\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_990479da6950471da7ec2e0388906694\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3ac100c16f534802809c28b6e12cda03\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1b414dd4ebfc40cf809631c369c9e282\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:23Z\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_1b414dd4ebfc40cf809631c369c9e282\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_aef44f6beec64ebdbd8fd31dcaa9189e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478726\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2FlZjQ0ZjZiZWVjNjRlYmRiZDhmZDMxZGNhYTkxODll\"},\"to_address\":{\"id\":\"adr_3ae92b1c2ef011eda05bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3aeb878d2ef011edb1fcac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_3ae92b1c2ef011eda05bac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:23-06:00\",\"updated_at\":\"2022-09-07T15:01:23-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T23:02:26Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110526\",\"updated_at\":\"2022-09-12T23:02:27Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_f83dc33732ee11ed991fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:26-06:00\",\"updated_at\":\"2022-09-12T17:02:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b3a84a30265440159f986a10eebd36d7\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T23:02:26Z\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_722c810e90f94950a7995b0b5ecefe36\",\"created_at\":\"2022-09-12T23:02:27Z\",\"updated_at\":\"2022-09-12T23:02:27Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02: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/20220912/a0eb288e885646e2b5c37b05f863e18c.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_670e772c555941238dc5354d25ae4f74\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:26Z\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6011a3817a58498abfd6d2b545bab5c5\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:26Z\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7e72777f98124b5ea7a6bce92d84f845\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:26Z\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_dc489d0fbc124e3e9643b7ba74f96ecf\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:26Z\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_dc489d0fbc124e3e9643b7ba74f96ecf\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:27Z\",\"updated_at\":\"2022-09-12T23:02:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_e31b1f85fd3c4fa78e300cbbce440926\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110526\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T23:02:27Z\",\"updated_at\":\"2022-09-12T23:02:27Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2UzMWIxZjg1ZmQzYzRmYTc4ZTMwMGNiYmNlNDQwOTI2\"},\"to_address\":{\"id\":\"adr_f83b828a32ee11eda4dbac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:26-06:00\",\"updated_at\":\"2022-09-12T17:02:26-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_f83dc33732ee11ed991fac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:26-06:00\",\"updated_at\":\"2022-09-12T17:02:26-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_f83b828a32ee11eda4dbac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:26-06:00\",\"updated_at\":\"2022-09-12T17:02:26-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,17 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a25631906a3e79a6480002e931e", + "x-ep-request-uuid": "1d5539f3631fba82e7995967001a5003", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_f1cc93d553da43568b0a5ac8bdad656d", - "ETag": "W/\"99e552cf18bbf2bb169bd2dd2a4f8883\"", - "x-runtime": "1.193099", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_ac8600f1342648ebae806bd579a738d5", + "ETag": "W/\"2cce9a2808f2f8bdc8fa14d4ff238fb2\"", + "x-runtime": "0.983889", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +54,14 @@ } }, { - "Duration": 678, - "RecordedAt": "2022-09-07T15:01:25.216703-06:00", + "Duration": 978, + "RecordedAt": "2022-09-12T17:02:28.560614-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"adr_3ae92b1c2ef011eda05bac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"adr_3aeb878d2ef011edb1fcac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"prcl_8e5c55541e25439da0769c69dbda4bf5\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:24Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/cd351fd7a2564521a167cb59d6fc1820.png\",\"created_at\":\"2022-09-07T21:01:24Z\",\"id\":\"pl_afce1547bd3a48928220d11dbbcdbace\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"rate_077c59d6a52a439e8cdda647d6943651\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"rate_990479da6950471da7ec2e0388906694\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"rate_3ac100c16f534802809c28b6e12cda03\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"rate_1b414dd4ebfc40cf809631c369c9e282\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"adr_3aeb878d2ef011edb1fcac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"created_at\":\"2022-09-07T21:01:24Z\",\"id\":\"rate_1b414dd4ebfc40cf809631c369c9e282\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"adr_3ae92b1c2ef011eda05bac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:23Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2FlZjQ0ZjZiZWVjNjRlYmRiZDhmZDMxZGNhYTkxODll\",\"shipment_id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478726\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:24Z\",\"id\":\"trk_aef44f6beec64ebdbd8fd31dcaa9189e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478726\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:23Z\",\"id\":\"shp_f1cc93d553da43568b0a5ac8bdad656d\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-14\",\"max_datetime\":\"2022-09-14\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:26Z\",\"id\":\"adr_f83b828a32ee11eda4dbac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:26Z\",\"id\":\"adr_f83dc33732ee11ed991fac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T23:02:26Z\",\"id\":\"prcl_b3a84a30265440159f986a10eebd36d7\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02:27Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/a0eb288e885646e2b5c37b05f863e18c.png\",\"created_at\":\"2022-09-12T23:02:27Z\",\"id\":\"pl_722c810e90f94950a7995b0b5ecefe36\",\"updated_at\":\"2022-09-12T23:02:27Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"created_at\":\"2022-09-12T23:02:26Z\",\"id\":\"rate_670e772c555941238dc5354d25ae4f74\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"created_at\":\"2022-09-12T23:02:26Z\",\"id\":\"rate_6011a3817a58498abfd6d2b545bab5c5\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"created_at\":\"2022-09-12T23:02:26Z\",\"id\":\"rate_7e72777f98124b5ea7a6bce92d84f845\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"created_at\":\"2022-09-12T23:02:26Z\",\"id\":\"rate_dc489d0fbc124e3e9643b7ba74f96ecf\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:26Z\",\"id\":\"adr_f83dc33732ee11ed991fac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"created_at\":\"2022-09-12T23:02:27Z\",\"id\":\"rate_dc489d0fbc124e3e9643b7ba74f96ecf\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:27Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:26Z\",\"id\":\"adr_f83b828a32ee11eda4dbac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2UzMWIxZjg1ZmQzYzRmYTc4ZTMwMGNiYmNlNDQwOTI2\",\"shipment_id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110526\",\"tracking_details\":[],\"created_at\":\"2022-09-12T23:02:27Z\",\"id\":\"trk_e31b1f85fd3c4fa78e300cbbce440926\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:27Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110526\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T23:02:26Z\",\"id\":\"shp_ac8600f1342648ebae806bd579a738d5\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:27Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6292" + "Content-Length": "6247" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +73,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_9101a8e943ab4171a4395e6198e06c25\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:24Z\",\"updated_at\":\"2022-09-07T21:01:24Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_3bb11e5b2ef011eda661ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:24-06:00\",\"updated_at\":\"2022-09-07T15:01:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:25Z\",\"updated_at\":\"2022-09-07T21:01:25Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_9101a8e943ab4171a4395e6198e06c25\",\"id\":\"pickuprate_06c7427fb73942deaa7ab79838f29633\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_2cbd4d70c02e4fac84c4a20278656b74\",\"object\":\"Pickup\",\"created_at\":\"2022-09-12T23:02:27Z\",\"updated_at\":\"2022-09-12T23:02:27Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-14T00:00:00Z\",\"max_datetime\":\"2022-09-14T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_f8e24ceb32ee11eda518ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:27-06:00\",\"updated_at\":\"2022-09-12T17:02:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-12T23:02:28Z\",\"updated_at\":\"2022-09-12T23:02:28Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_2cbd4d70c02e4fac84c4a20278656b74\",\"id\":\"pickuprate_40c5a2f315d44ed781324000266fb5c4\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +88,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a25631906a4e79a6480002e9392", + "x-ep-request-uuid": "1d5539f3631fba83e7995967001a5070", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"d76d6891d534616b606b3f5d6669c480\"", - "x-runtime": "0.618294", - "x-node": "bigweb6nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"f11b99e44b5fd139cfc9d4910e24d50b\"", + "x-runtime": "0.913479", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/pickup/retrieve.json b/EasyPost.Tests/cassettes/netstandard/pickup/retrieve.json index c7941e07a..10f345930 100644 --- a/EasyPost.Tests/cassettes/netstandard/pickup/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/pickup/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 220, - "RecordedAt": "2022-09-07T15:01:21.990107-06:00", + "Duration": 409, + "RecordedAt": "2022-09-12T17:02:25.10977-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T21:01:21Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478719\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_399374ec2ef011eda878ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b7dbc90b85a1454d85316e26a54be5bf\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6c72a9949cf748aa815722a753e51792\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/7d60c4ea2e7241dfa629ba03be1a3fae.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_f5f26e332bef447892ff5e211af34433\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f91c12861ed24c138703bc431148ee5b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_40092d60ac2d4750a221950b1470e4b0\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_1c37ae9032164cdebd16ffc24434a770\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f5f26e332bef447892ff5e211af34433\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_0fedf07401c2452ebdedbf7cc2f2fcc6\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478719\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzBmZWRmMDc0MDFjMjQ1MmViZGVkYmY3Y2MyZjJmY2M2\"},\"to_address\":{\"id\":\"adr_399186bf2ef011eda877ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_399374ec2ef011eda878ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_399186bf2ef011eda877ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:21-06:00\",\"updated_at\":\"2022-09-07T15:01:21-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T23:02:24Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110502\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_f6b18ec732ee11eda4d4ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:24-06:00\",\"updated_at\":\"2022-09-12T17:02:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_0cd20bcaf9bc4ff5936737a9b16f7568\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T23:02:24Z\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_c99519426bb5465bb6f9224ffde8f496\",\"created_at\":\"2022-09-12T23:02:24Z\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02: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/20220912/3259cf6e82ca40c9bdee95ffcb87662d.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_cf6a2cc8434a42318c40d3fdbb5fbf92\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:24Z\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_3fffdc90e1f24ae589617e9dfd4ff048\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:24Z\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8eae193b289c413085d4c9dedabd823a\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:24Z\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_0037e8708cd74aba9a8ccb768fcb0433\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:24Z\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_0037e8708cd74aba9a8ccb768fcb0433\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T23:02:24Z\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_02f95784440649aca5a6ede71a6c1214\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110502\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T23:02:25Z\",\"updated_at\":\"2022-09-12T23:02:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzAyZjk1Nzg0NDQwNjQ5YWNhNWE2ZWRlNzFhNmMxMjE0\"},\"to_address\":{\"id\":\"adr_f6af2bde32ee11eda482ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:24-06:00\",\"updated_at\":\"2022-09-12T17:02:24-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_f6b18ec732ee11eda4d4ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:24-06:00\",\"updated_at\":\"2022-09-12T17:02:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_f6af2bde32ee11eda482ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:24-06:00\",\"updated_at\":\"2022-09-12T17:02:24-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a27631906a1e79a6478002e9201", + "x-ep-request-uuid": "1d5539f2631fba80e7995966001a4f09", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_855b0a6f9a464faea4787ae73da0d6d7", - "ETag": "W/\"beb3f7022bf064b0834653c9d0e6dbff\"", - "x-runtime": "0.955334", - "x-node": "bigweb3nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_3da250bac938427ca5ccb2ebb726c94c", + "ETag": "W/\"bb44493bbcb8382bd355781e92b4ea69\"", + "x-runtime": "1.033185", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 757, - "RecordedAt": "2022-09-07T15:01:22.812905-06:00", + "Duration": 723, + "RecordedAt": "2022-09-12T17:02:26.121421-06:00", "Request": { - "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-09\",\"max_datetime\":\"2022-09-09\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"adr_399186bf2ef011eda877ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"adr_399374ec2ef011eda878ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"prcl_b7dbc90b85a1454d85316e26a54be5bf\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:21Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/7d60c4ea2e7241dfa629ba03be1a3fae.png\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"pl_6c72a9949cf748aa815722a753e51792\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"rate_f5f26e332bef447892ff5e211af34433\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"rate_f91c12861ed24c138703bc431148ee5b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"rate_40092d60ac2d4750a221950b1470e4b0\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"rate_1c37ae9032164cdebd16ffc24434a770\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"adr_399374ec2ef011eda878ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"rate_f5f26e332bef447892ff5e211af34433\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"adr_399186bf2ef011eda877ac1f6bc72124\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzBmZWRmMDc0MDFjMjQ1MmViZGVkYmY3Y2MyZjJmY2M2\",\"shipment_id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478719\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:22Z\",\"id\":\"trk_0fedf07401c2452ebdedbf7cc2f2fcc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478719\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:21Z\",\"id\":\"shp_855b0a6f9a464faea4787ae73da0d6d7\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"object\":\"Shipment\"}}}", + "Body": "{\"pickup\":{\"address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"min_datetime\":\"2022-09-14\",\"max_datetime\":\"2022-09-14\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"adr_f6af2bde32ee11eda482ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"adr_f6b18ec732ee11eda4d4ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"prcl_0cd20bcaf9bc4ff5936737a9b16f7568\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T23:02:24Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/3259cf6e82ca40c9bdee95ffcb87662d.png\",\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"pl_c99519426bb5465bb6f9224ffde8f496\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"rate_cf6a2cc8434a42318c40d3fdbb5fbf92\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"rate_3fffdc90e1f24ae589617e9dfd4ff048\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"rate_8eae193b289c413085d4c9dedabd823a\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"rate_0037e8708cd74aba9a8ccb768fcb0433\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"adr_f6b18ec732ee11eda4d4ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"rate_0037e8708cd74aba9a8ccb768fcb0433\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"adr_f6af2bde32ee11eda482ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzAyZjk1Nzg0NDQwNjQ5YWNhNWE2ZWRlNzFhNmMxMjE0\",\"shipment_id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110502\",\"tracking_details\":[],\"created_at\":\"2022-09-12T23:02:25Z\",\"id\":\"trk_02f95784440649aca5a6ede71a6c1214\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:25Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110502\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T23:02:24Z\",\"id\":\"shp_3da250bac938427ca5ccb2ebb726c94c\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T23:02:24Z\",\"object\":\"Shipment\"}}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6292" + "Content-Length": "6247" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/pickups" }, "Response": { - "Body": "{\"id\":\"pickup_66a5ca12579540f795cc1a5738457e0c\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_3a38f86e2ef011eda028ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_66a5ca12579540f795cc1a5738457e0c\",\"id\":\"pickuprate_a4448123217943119217ed78c82a6c02\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_43331d00fe3e4fbeb8c2de3d6ad7c641\",\"object\":\"Pickup\",\"created_at\":\"2022-09-12T23:02:25Z\",\"updated_at\":\"2022-09-12T23:02:25Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-14T00:00:00Z\",\"max_datetime\":\"2022-09-14T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_f79536eb32ee11eda95fac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:25-06:00\",\"updated_at\":\"2022-09-12T17:02:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-12T23:02:26Z\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_43331d00fe3e4fbeb8c2de3d6ad7c641\",\"id\":\"pickuprate_d0cd90df203a4cde87c783f74aaddb21\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a27631906a2e79a6478002e929e", + "x-ep-request-uuid": "1d5539f2631fba81e7995966001a4fa0", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"b45b01faa1ad444af0b9cf1914b03f9d\"", - "x-runtime": "0.679966", - "x-node": "bigweb5nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"5d17c59c3caec4810fca888d6bb776df\"", + "x-runtime": "0.653115", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -105,8 +105,8 @@ } }, { - "Duration": 141, - "RecordedAt": "2022-09-07T15:01:22.985472-06:00", + "Duration": 95, + "RecordedAt": "2022-09-12T17:02:26.266758-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -118,10 +118,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/pickups/pickup_66a5ca12579540f795cc1a5738457e0c" + "Uri": "https://api.easypost.com/v2/pickups/pickup_43331d00fe3e4fbeb8c2de3d6ad7c641" }, "Response": { - "Body": "{\"id\":\"pickup_66a5ca12579540f795cc1a5738457e0c\",\"object\":\"Pickup\",\"created_at\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-09T00:00:00Z\",\"max_datetime\":\"2022-09-09T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_3a38f86e2ef011eda028ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:22-06:00\",\"updated_at\":\"2022-09-07T15:01:22-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-07T21:01:22Z\",\"updated_at\":\"2022-09-07T21:01:22Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_66a5ca12579540f795cc1a5738457e0c\",\"id\":\"pickuprate_a4448123217943119217ed78c82a6c02\",\"object\":\"PickupRate\"}]}", + "Body": "{\"id\":\"pickup_43331d00fe3e4fbeb8c2de3d6ad7c641\",\"object\":\"Pickup\",\"created_at\":\"2022-09-12T23:02:25Z\",\"updated_at\":\"2022-09-12T23:02:25Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2022-09-14T00:00:00Z\",\"max_datetime\":\"2022-09-14T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_f79536eb32ee11eda95fac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T17:02:25-06:00\",\"updated_at\":\"2022-09-12T17:02:25-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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\":\"2022-09-12T23:02:26Z\",\"updated_at\":\"2022-09-12T23:02:26Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_43331d00fe3e4fbeb8c2de3d6ad7c641\",\"id\":\"pickuprate_d0cd90df203a4cde87c783f74aaddb21\",\"object\":\"PickupRate\"}]}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -136,15 +136,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a27631906a2e79a6478002e92f3", + "x-ep-request-uuid": "1d5539f2631fba82e7995966001a4fe9", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"b45b01faa1ad444af0b9cf1914b03f9d\"", - "x-runtime": "0.070100", + "ETag": "W/\"5d17c59c3caec4810fca888d6bb776df\"", + "x-runtime": "0.039222", "x-node": "bigweb9nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/scan_form/all.json b/EasyPost.Tests/cassettes/netstandard/scan_form/all.json index 8c1d2e437..2c360aa78 100644 --- a/EasyPost.Tests/cassettes/netstandard/scan_form/all.json +++ b/EasyPost.Tests/cassettes/netstandard/scan_form/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 325, - "RecordedAt": "2022-09-07T15:01:19.667021-06:00", + "Duration": 283, + "RecordedAt": "2022-09-12T16:59:18.533443-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -16,7 +16,7 @@ "Uri": "https://api.easypost.com/v2/scan_forms?page_size=5" }, "Response": { - "Body": "{\"scan_forms\":[{\"id\":\"sf_bb476c78992e4a49a80a59c2a61748ac\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"tracking_codes\":[\"9400100109361136478627\"],\"address\":{\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/7b6262eee31646e9ba5ddb7a21dad9a3.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_1b2b60752ffc43a7b1a11a22e2e25d06\",\"confirmation\":null},{\"id\":\"sf_3c69ed79f08a47c89629e2ba869f32d1\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:57:52Z\",\"updated_at\":\"2022-09-07T20:57:53Z\",\"tracking_codes\":[\"9400100109361136478313\"],\"address\":{\"id\":\"adr_b11c781b2eef11ed8ea1ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:57:32-06:00\",\"updated_at\":\"2022-09-07T14:57:32-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/a6ae209c0de246c087ff1cc87f408b27.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_edd16069b9134894ba1524fbcbda475b\",\"confirmation\":null},{\"id\":\"sf_7b526727dffa45ccbcab334a712214a0\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:59Z\",\"updated_at\":\"2022-09-07T20:53:59Z\",\"tracking_codes\":[\"9400100109361136477866\"],\"address\":{\"id\":\"adr_3166f4b82eef11ed9882ac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:57-06:00\",\"updated_at\":\"2022-09-07T14:53:57-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/776bd5d92dbb4fc5b9f5bf175f7c295c.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_8b5d36e64e024bdf967e0e6b9ee42234\",\"confirmation\":null},{\"id\":\"sf_7c0f64a979b1489793d687dbd1845f5c\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:56Z\",\"updated_at\":\"2022-09-07T20:53:57Z\",\"tracking_codes\":[\"9400100109361136477774\"],\"address\":{\"id\":\"adr_300aa1b72eef11ed97dbac1f6bc72124\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:55-06:00\",\"updated_at\":\"2022-09-07T14:53:55-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/eb1ac305dc5a41b0be1b643810782fc2.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_e5c80887bdab48d5a4002504c5200122\",\"confirmation\":null},{\"id\":\"sf_6e9d576c6098475b9787ce35bffccaf5\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T20:53:29Z\",\"updated_at\":\"2022-09-07T20:53:29Z\",\"tracking_codes\":[\"9400100109361136477637\"],\"address\":{\"id\":\"adr_1a1e64852eef11edaf5fac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T14:53:18-06:00\",\"updated_at\":\"2022-09-07T14:53:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/cd8a81920d6f4413b8efcb12494b7c86.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_93ef92a77be249239c94295b64ab7fdd\",\"confirmation\":null}],\"has_more\":true}", + "Body": "{\"scan_forms\":[{\"id\":\"sf_fec5dd3e43a7410b8dcfc9f155548a70\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"tracking_codes\":[\"9400100109361137110137\"],\"address\":{\"id\":\"adr_8715c44632ee11ed89c6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:16-06:00\",\"updated_at\":\"2022-09-12T16:59:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220912/32d68f9259794da7b6ddc8293418c91f.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_6cdd5a9d14a84c08902e9e815153f43a\",\"confirmation\":null},{\"id\":\"sf_973a2bb701f24359a1d15dbc7ba54a30\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-12T22:59:12Z\",\"updated_at\":\"2022-09-12T22:59:13Z\",\"tracking_codes\":[\"9400100109361137110106\"],\"address\":{\"id\":\"adr_83fe3a3232ee11ed890dac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:11-06:00\",\"updated_at\":\"2022-09-12T16:59:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220912/5b9064ba8788420ba202f726ed522ceb.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_a5b95cfdc9964486bbd84033d1366ea0\",\"confirmation\":null},{\"id\":\"sf_161ca90811514404bacfd06f644d04ed\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-12T22:59:10Z\",\"updated_at\":\"2022-09-12T22:59:10Z\",\"tracking_codes\":[\"9400100109361137110045\"],\"address\":{\"id\":\"adr_82af9f9b32ee11ed88afac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:09-06:00\",\"updated_at\":\"2022-09-12T16:59:09-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220912/5472eea82bc44b899246cce8ab4b6b4a.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_46997b4f1b8a4db7bce8e0bfad4c9ba9\",\"confirmation\":null},{\"id\":\"sf_220876a01d174e5689c43d4ee8f52672\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:40Z\",\"updated_at\":\"2022-09-07T21:01:40Z\",\"tracking_codes\":[\"9400100109361136478771\"],\"address\":{\"id\":\"adr_38b6a58d2ef011edb161ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:19-06:00\",\"updated_at\":\"2022-09-07T15:01:19-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/4a8b2a7152df4609bdd4b1b46bc65218.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_560b69809ce240de9767ab071b83f1e9\",\"confirmation\":null},{\"id\":\"sf_57314bd186fc4eec84608a37d0149cc0\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"tracking_codes\":[\"9400100109361136478696\"],\"address\":{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/d9afb8792a2941ab85a43299cb4cb198.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_c77f988e69e345f58a7e156d2181a3a0\",\"confirmation\":null}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -31,15 +31,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a276319069fe79a6160002e9163", + "x-ep-request-uuid": "1d5539ef631fb9c6e799587e0019fdff", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"d885b8d082dacb9493ce795438d45951\"", - "x-runtime": "0.044581", - "x-node": "bigweb9nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"9d480af5600ec13ae80dca35a7e64caf\"", + "x-runtime": "0.040309", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/scan_form/create.json b/EasyPost.Tests/cassettes/netstandard/scan_form/create.json index 06b1aed1c..14d984978 100644 --- a/EasyPost.Tests/cassettes/netstandard/scan_form/create.json +++ b/EasyPost.Tests/cassettes/netstandard/scan_form/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 215, - "RecordedAt": "2022-09-07T15:01:20.915464-06:00", + "Duration": 271, + "RecordedAt": "2022-09-12T16:59:19.830007-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T21:01:20Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478696\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6f1bbee31f954648872d09b1643bb1ed\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f2829eb6e9de4569aef8d4a9befdaf11\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:20Z\",\"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/20220907/c6f4e89d683c45e58a23363f3b88872e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_18a484c7d8134f11bc607fe5bb7712ef\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bf153d64c50f4fb092a16df07377845e\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c14bf4aa7a4945efb8a8f3df156495be\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_9540c0f9934e42d092bbbb2fd756aae6\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_18a484c7d8134f11bc607fe5bb7712ef\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_873d9e5891a84feb9de58a5aefd7105c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478696\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:20Z\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzg3M2Q5ZTU4OTFhODRmZWI5ZGU1OGE1YWVmZDcxMDVj\"},\"to_address\":{\"id\":\"adr_38f02d412ef011ed9fc4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_38f02d412ef011ed9fc4ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T22:59:18Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110168\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_88531b0a32ee11ed94ccac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:18-06:00\",\"updated_at\":\"2022-09-12T16:59:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_e1afebba03cd437997fb6b0ac5608f44\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T22:59:18Z\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_e2781a3e041b4c15818e3595bec6b762\",\"created_at\":\"2022-09-12T22:59:19Z\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59:19Z\",\"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/20220912/18d27af00b3f45ff81b449b827e1316a.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_8b24d233b388443286ebd73f64d1094e\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:19Z\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_4202dc5ebc874419840371b7c5ae5fe1\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:19Z\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_bafd1002665b4747aeff59932db4fdbc\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:19Z\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_92208ed9e1634993872a1b0fb85c966c\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:19Z\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_92208ed9e1634993872a1b0fb85c966c\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:19Z\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_db1580d8b408422bb21dc7068ed4616a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110168\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T22:59:19Z\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2RiMTU4MGQ4YjQwODQyMmJiMjFkYzcwNjhlZDQ2MTZh\"},\"to_address\":{\"id\":\"adr_8851592c32ee11ed8ee7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:18-06:00\",\"updated_at\":\"2022-09-12T16:59:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_88531b0a32ee11ed94ccac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:18-06:00\",\"updated_at\":\"2022-09-12T16:59:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_8851592c32ee11ed8ee7ac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:18-06:00\",\"updated_at\":\"2022-09-12T16:59:19-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,16 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a26631906a0e79a6163002e9186", + "x-ep-request-uuid": "1d5539f1631fb9c6e799587f0019fe0f", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_4db994e36a6d4a61b51c934ecaf720e6", - "ETag": "W/\"87440103adc8aa859ce516a6f098b319\"", - "x-runtime": "0.931206", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_4dade234c4b849fda652c2af94d2e73f", + "ETag": "W/\"fcbff6aa7c7376f2166126f9bc9bab10\"", + "x-runtime": "1.031686", + "x-node": "bigweb8nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +53,14 @@ } }, { - "Duration": 509, - "RecordedAt": "2022-09-07T15:01:21.488003-06:00", + "Duration": 294, + "RecordedAt": "2022-09-12T16:59:20.173169-06:00", "Request": { - "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"adr_38f02d412ef011ed9fc4ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"prcl_6f1bbee31f954648872d09b1643bb1ed\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:20Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/c6f4e89d683c45e58a23363f3b88872e.png\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"pl_f2829eb6e9de4569aef8d4a9befdaf11\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"rate_18a484c7d8134f11bc607fe5bb7712ef\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"rate_bf153d64c50f4fb092a16df07377845e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"rate_c14bf4aa7a4945efb8a8f3df156495be\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"rate_9540c0f9934e42d092bbbb2fd756aae6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"rate_18a484c7d8134f11bc607fe5bb7712ef\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"adr_38f02d412ef011ed9fc4ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzg3M2Q5ZTU4OTFhODRmZWI5ZGU1OGE1YWVmZDcxMDVj\",\"shipment_id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478696\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"trk_873d9e5891a84feb9de58a5aefd7105c\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478696\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:20Z\",\"id\":\"shp_4db994e36a6d4a61b51c934ecaf720e6\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:20Z\",\"object\":\"Shipment\"}]}}", + "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:18Z\",\"id\":\"adr_8851592c32ee11ed8ee7ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:18Z\",\"id\":\"adr_88531b0a32ee11ed94ccac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T22:59:18Z\",\"id\":\"prcl_e1afebba03cd437997fb6b0ac5608f44\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59:19Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/18d27af00b3f45ff81b449b827e1316a.png\",\"created_at\":\"2022-09-12T22:59:19Z\",\"id\":\"pl_e2781a3e041b4c15818e3595bec6b762\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"created_at\":\"2022-09-12T22:59:19Z\",\"id\":\"rate_8b24d233b388443286ebd73f64d1094e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"created_at\":\"2022-09-12T22:59:19Z\",\"id\":\"rate_4202dc5ebc874419840371b7c5ae5fe1\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"created_at\":\"2022-09-12T22:59:19Z\",\"id\":\"rate_bafd1002665b4747aeff59932db4fdbc\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"created_at\":\"2022-09-12T22:59:19Z\",\"id\":\"rate_92208ed9e1634993872a1b0fb85c966c\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:18Z\",\"id\":\"adr_88531b0a32ee11ed94ccac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"created_at\":\"2022-09-12T22:59:19Z\",\"id\":\"rate_92208ed9e1634993872a1b0fb85c966c\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:18Z\",\"id\":\"adr_8851592c32ee11ed8ee7ac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrX2RiMTU4MGQ4YjQwODQyMmJiMjFkYzcwNjhlZDQ2MTZh\",\"shipment_id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110168\",\"tracking_details\":[],\"created_at\":\"2022-09-12T22:59:19Z\",\"id\":\"trk_db1580d8b408422bb21dc7068ed4616a\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110168\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T22:59:18Z\",\"id\":\"shp_4dade234c4b849fda652c2af94d2e73f\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:19Z\",\"object\":\"Shipment\"}]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6016" + "Content-Length": "5971" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +72,7 @@ "Uri": "https://api.easypost.com/v2/scan_forms" }, "Response": { - "Body": "{\"id\":\"sf_57314bd186fc4eec84608a37d0149cc0\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:21Z\",\"updated_at\":\"2022-09-07T21:01:21Z\",\"tracking_codes\":[\"9400100109361136478696\"],\"address\":{\"id\":\"adr_38f4e3242ef011eda5f6ac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:20-06:00\",\"updated_at\":\"2022-09-07T15:01:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/d9afb8792a2941ab85a43299cb4cb198.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_c77f988e69e345f58a7e156d2181a3a0\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_f904955baba74b9fbad25b0e12878e03\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-12T22:59:20Z\",\"updated_at\":\"2022-09-12T22:59:20Z\",\"tracking_codes\":[\"9400100109361137110168\"],\"address\":{\"id\":\"adr_88531b0a32ee11ed94ccac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:18-06:00\",\"updated_at\":\"2022-09-12T16:59:18-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220912/365109e4c356441d91c089dec97898eb.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_58664e155e4048299fec782e2feab0d6\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +87,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a26631906a1e79a6163002e9203", + "x-ep-request-uuid": "1d5539f1631fb9c8e799587f0019fe44", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"3773a53ff828fe02d61cd7cd176e59c1\"", - "x-runtime": "0.444383", - "x-node": "bigweb4nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"c47a29f0096f4a3aed3480c98d9f94e3\"", + "x-runtime": "0.229335", + "x-node": "bigweb1nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/scan_form/retrieve.json b/EasyPost.Tests/cassettes/netstandard/scan_form/retrieve.json index 907ac8ead..abbd5455c 100644 --- a/EasyPost.Tests/cassettes/netstandard/scan_form/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/scan_form/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 521, - "RecordedAt": "2022-09-07T15:01:18.615901-06:00", + "Duration": 443, + "RecordedAt": "2022-09-12T16:59:17.679496-06:00", "Request": { "Body": "{\"shipment\":{\"to_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"from_address\":{\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\"},\"parcel\":{\"length\":\"10\",\"width\":\"8\",\"height\":\"4\",\"weight\":\"15.4\"},\"service\":\"First\",\"carrier_accounts\":[\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}", "BodyContentType": "Json", @@ -19,7 +19,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2022-09-07T21:01:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478627\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_32e5e94ede2a4d12a514016329d29056\",\"object\":\"Parcel\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_d47947baf4b9434a891f93749dc2306c\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01: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/20220907/ff21ee6bf7b842ef821bcfc2ce3b617e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_fe404a50d61e46fdbd71ee712996723b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d92f6c7e2fce4a6b85bebdf3ade6e20f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_abe8470a64164f2e8cc20158dc9cb98f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_d3fe0782e498421ca6532776cdcb666b\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:17Z\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d92f6c7e2fce4a6b85bebdf3ade6e20f\",\"object\":\"Rate\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_8b7e0fa5458142259707f7a313e8617c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361136478627\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzhiN2UwZmE1NDU4MTQyMjU5NzA3ZjdhMzEzZTg2MTdj\"},\"to_address\":{\"id\":\"adr_37939abb2ef011ed9f56ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_37939abb2ef011ed9f56ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:18-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2022-09-12T22:59:16Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110137\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_8715c44632ee11ed89c6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:16-06:00\",\"updated_at\":\"2022-09-12T16:59:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_249f2c23c00740d090625459ae1d67eb\",\"object\":\"Parcel\",\"created_at\":\"2022-09-12T22:59:16Z\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ff0e12a108f04599a366f56dfc46bbe3\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59: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/20220912/1cb03ecfe28248c884d0b8265aaf1d68.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_7fe90f9b4c8e4b96a8ee230f430975cf\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:16Z\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"7.22\",\"currency\":\"USD\",\"retail_rate\":\"7.22\",\"retail_currency\":\"USD\",\"list_rate\":\"7.22\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f4678f31a1d54df0bb5ea8bd061b6e9c\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:16Z\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"7.37\",\"currency\":\"USD\",\"retail_rate\":\"8.70\",\"retail_currency\":\"USD\",\"list_rate\":\"7.37\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":1,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":1,\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_cf38f86277e044ff8aa6f38ed0ee3200\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:16Z\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_44742210b0544a17a507d808b0783c27\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:16Z\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"23.75\",\"currency\":\"USD\",\"retail_rate\":\"27.40\",\"retail_currency\":\"USD\",\"list_rate\":\"23.75\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":null,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":null,\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_cf38f86277e044ff8aa6f38ed0ee3200\",\"object\":\"Rate\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.49\",\"currency\":\"USD\",\"retail_rate\":\"5.49\",\"retail_currency\":\"USD\",\"list_rate\":\"5.49\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_521a48b7ce5b424db4c8abdb8fbc82b0\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100109361137110137\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzUyMWE0OGI3Y2U1YjQyNGRiNGM4YWJkYjhmYmM4MmIw\"},\"to_address\":{\"id\":\"adr_8712f27632ee11ed94adac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:16-06:00\",\"updated_at\":\"2022-09-12T16:59:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"usps_zone\":1,\"return_address\":{\"id\":\"adr_8715c44632ee11ed89c6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:16-06:00\",\"updated_at\":\"2022-09-12T16:59:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_8712f27632ee11ed94adac1f6bc7bdc6\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:16-06:00\",\"updated_at\":\"2022-09-12T16:59:17-06:00\",\"name\":\"JACK SPARROW\",\"company\":\"EASYPOST\",\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.49000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -34,16 +34,17 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2c6319069de79a60e3002e9073", + "x-ep-request-uuid": "1d5539f4631fb9c4e799587a0019fda1", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_8827ad1858884cdda6375f0e8fa4dbab", - "ETag": "W/\"5a9ac054d4343b4b104f70d317d3cebc\"", - "x-runtime": "0.921738", - "x-node": "bigweb1nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "Location": "/api/v2/shipments/shp_bb8bdcc9dc50444e9a99366c0d8c500d", + "ETag": "W/\"b04533f53c62ef3d9e78ae8cb7c13e63\"", + "x-runtime": "0.956908", + "x-node": "bigweb7nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-canary": "direct", + "x-proxied": "intlb1nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -53,14 +54,14 @@ } }, { - "Duration": 440, - "RecordedAt": "2022-09-07T15:01:19.162168-06:00", + "Duration": 375, + "RecordedAt": "2022-09-12T16:59:18.115584-06:00", "Request": { - "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_37939abb2ef011ed9f56ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"prcl_32e5e94ede2a4d12a514016329d29056\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-07T21:01:18Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220907/ff21ee6bf7b842ef821bcfc2ce3b617e.png\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"pl_d47947baf4b9434a891f93749dc2306c\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_fe404a50d61e46fdbd71ee712996723b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_d92f6c7e2fce4a6b85bebdf3ade6e20f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_abe8470a64164f2e8cc20158dc9cb98f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"rate_d3fe0782e498421ca6532776cdcb666b\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:17Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"rate_d92f6c7e2fce4a6b85bebdf3ade6e20f\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"adr_37939abb2ef011ed9f56ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzhiN2UwZmE1NDU4MTQyMjU5NzA3ZjdhMzEzZTg2MTdj\",\"shipment_id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361136478627\",\"tracking_details\":[],\"tracking_updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"2022-09-07T21:01:18Z\",\"id\":\"trk_8b7e0fa5458142259707f7a313e8617c\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361136478627\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-07T21:01:17Z\",\"id\":\"shp_8827ad1858884cdda6375f0e8fa4dbab\",\"mode\":\"test\",\"updated_at\":\"2022-09-07T21:01:18Z\",\"object\":\"Shipment\"}]}}", + "Body": "{\"scan_form\":{\"shipments\":[{\"buyer_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:16Z\",\"id\":\"adr_8712f27632ee11ed94adac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Address\"},\"fees\":[{\"amount\":0.01,\"charged\":true,\"refunded\":false,\"type\":\"LabelFee\",\"object\":\"Fee\"},{\"amount\":5.49,\"charged\":true,\"refunded\":false,\"type\":\"PostageFee\",\"object\":\"Fee\"}],\"forms\":[],\"from_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:16Z\",\"id\":\"adr_8715c44632ee11ed89c6ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"object\":\"Address\"},\"is_return\":false,\"messages\":[],\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"}},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0,\"created_at\":\"2022-09-12T22:59:16Z\",\"id\":\"prcl_249f2c23c00740d090625459ae1d67eb\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"object\":\"Parcel\"},\"postage_label\":{\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2022-09-12T22:59:17Z\",\"label_file_type\":\"image/png\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220912/1cb03ecfe28248c884d0b8265aaf1d68.png\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"pl_ff0e12a108f04599a366f56dfc46bbe3\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"PostageLabel\"},\"rates\":[{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"7.22\",\"rate\":\"7.22\",\"retail_currency\":\"USD\",\"retail_rate\":\"7.22\",\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"created_at\":\"2022-09-12T22:59:16Z\",\"id\":\"rate_7fe90f9b4c8e4b96a8ee230f430975cf\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":1,\"est_delivery_days\":1,\"list_currency\":\"USD\",\"list_rate\":\"7.37\",\"rate\":\"7.37\",\"retail_currency\":\"USD\",\"retail_rate\":\"8.70\",\"service\":\"Priority\",\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"created_at\":\"2022-09-12T22:59:16Z\",\"id\":\"rate_f4678f31a1d54df0bb5ea8bd061b6e9c\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"created_at\":\"2022-09-12T22:59:16Z\",\"id\":\"rate_cf38f86277e044ff8aa6f38ed0ee3200\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"object\":\"Rate\"},{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"list_currency\":\"USD\",\"list_rate\":\"23.75\",\"rate\":\"23.75\",\"retail_currency\":\"USD\",\"retail_rate\":\"27.40\",\"service\":\"Express\",\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"created_at\":\"2022-09-12T22:59:16Z\",\"id\":\"rate_44742210b0544a17a507d808b0783c27\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"object\":\"Rate\"}],\"return_address\":{\"city\":\"San Francisco\",\"company\":\"EasyPost\",\"country\":\"US\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"verifications\":{},\"zip\":\"94107\",\"created_at\":\"2022-09-12T22:59:16Z\",\"id\":\"adr_8715c44632ee11ed89c6ac1f6b0a0d1e\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:16Z\",\"object\":\"Address\"},\"selected_rate\":{\"billing_type\":\"easypost\",\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\",\"currency\":\"USD\",\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"list_currency\":\"USD\",\"list_rate\":\"5.49\",\"rate\":\"5.49\",\"retail_currency\":\"USD\",\"retail_rate\":\"5.49\",\"service\":\"First\",\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"rate_cf38f86277e044ff8aa6f38ed0ee3200\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Rate\"},\"status\":\"unknown\",\"to_address\":{\"city\":\"SAN FRANCISCO\",\"company\":\"EASYPOST\",\"country\":\"US\",\"name\":\"JACK SPARROW\",\"phone\":\"\",\"residential\":true,\"state\":\"CA\",\"street1\":\"388 TOWNSEND ST APT 20\",\"verifications\":{\"delivery\":{\"details\":{\"latitude\":37.77551,\"longitude\":-122.396973,\"time_zone\":\"America/Los_Angeles\"},\"errors\":[],\"success\":true},\"zip4\":{\"errors\":[],\"success\":true}},\"zip\":\"94107-1670\",\"created_at\":\"2022-09-12T22:59:16Z\",\"id\":\"adr_8712f27632ee11ed94adac1f6bc7bdc6\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Address\"},\"tracker\":{\"carrier\":\"USPS\",\"public_url\":\"https://track.easypost.com/djE6dHJrXzUyMWE0OGI3Y2U1YjQyNGRiNGM4YWJkYjhmYmM4MmIw\",\"shipment_id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"status\":\"unknown\",\"tracking_code\":\"9400100109361137110137\",\"tracking_details\":[],\"created_at\":\"2022-09-12T22:59:17Z\",\"id\":\"trk_521a48b7ce5b424db4c8abdb8fbc82b0\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Tracker\"},\"tracking_code\":\"9400100109361137110137\",\"usps_zone\":\"1\",\"created_at\":\"2022-09-12T22:59:16Z\",\"id\":\"shp_bb8bdcc9dc50444e9a99366c0d8c500d\",\"mode\":\"test\",\"updated_at\":\"2022-09-12T22:59:17Z\",\"object\":\"Shipment\"}]}}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", - "Content-Length": "6016" + "Content-Length": "5971" }, "Method": "POST", "RequestHeaders": { @@ -72,7 +73,7 @@ "Uri": "https://api.easypost.com/v2/scan_forms" }, "Response": { - "Body": "{\"id\":\"sf_bb476c78992e4a49a80a59c2a61748ac\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"tracking_codes\":[\"9400100109361136478627\"],\"address\":{\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/7b6262eee31646e9ba5ddb7a21dad9a3.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_1b2b60752ffc43a7b1a11a22e2e25d06\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_fec5dd3e43a7410b8dcfc9f155548a70\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"tracking_codes\":[\"9400100109361137110137\"],\"address\":{\"id\":\"adr_8715c44632ee11ed89c6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:16-06:00\",\"updated_at\":\"2022-09-12T16:59:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220912/32d68f9259794da7b6ddc8293418c91f.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_6cdd5a9d14a84c08902e9e815153f43a\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -87,15 +88,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2c6319069ee79a60e3002e9107", + "x-ep-request-uuid": "1d5539f4631fb9c5e799587a0019fdd3", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"8936ab1bbf0b4bf7c2b323bf4584d41a\"", - "x-runtime": "0.373213", - "x-node": "bigweb2nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "ETag": "W/\"a6c0340e415d73a59dda6093190fb34d\"", + "x-runtime": "0.311365", + "x-node": "bigweb3nuq", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb1nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -105,8 +106,8 @@ } }, { - "Duration": 97, - "RecordedAt": "2022-09-07T15:01:19.308364-06:00", + "Duration": 84, + "RecordedAt": "2022-09-12T16:59:18.220065-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -118,10 +119,10 @@ "Accept": "application/json,text/json,text/x-json,text/javascript,application/xml,text/xml", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/scan_forms/sf_bb476c78992e4a49a80a59c2a61748ac" + "Uri": "https://api.easypost.com/v2/scan_forms/sf_fec5dd3e43a7410b8dcfc9f155548a70" }, "Response": { - "Body": "{\"id\":\"sf_bb476c78992e4a49a80a59c2a61748ac\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-07T21:01:18Z\",\"updated_at\":\"2022-09-07T21:01:19Z\",\"tracking_codes\":[\"9400100109361136478627\"],\"address\":{\"id\":\"adr_3796029a2ef011edb10eac1f6bc7b362\",\"object\":\"Address\",\"created_at\":\"2022-09-07T15:01:17-06:00\",\"updated_at\":\"2022-09-07T15:01:17-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220907/7b6262eee31646e9ba5ddb7a21dad9a3.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_1b2b60752ffc43a7b1a11a22e2e25d06\",\"confirmation\":null}", + "Body": "{\"id\":\"sf_fec5dd3e43a7410b8dcfc9f155548a70\",\"object\":\"ScanForm\",\"created_at\":\"2022-09-12T22:59:17Z\",\"updated_at\":\"2022-09-12T22:59:18Z\",\"tracking_codes\":[\"9400100109361137110137\"],\"address\":{\"id\":\"adr_8715c44632ee11ed89c6ac1f6b0a0d1e\",\"object\":\"Address\",\"created_at\":\"2022-09-12T16:59:16-06:00\",\"updated_at\":\"2022-09-12T16:59:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":\"EasyPost\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"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/20220912/32d68f9259794da7b6ddc8293418c91f.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_6cdd5a9d14a84c08902e9e815153f43a\",\"confirmation\":null}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -136,15 +137,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "3bde9a2c6319069fe79a60e3002e9140", + "x-ep-request-uuid": "1d5539f4631fb9c6e799587a0019fdec", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "ETag": "W/\"8936ab1bbf0b4bf7c2b323bf4584d41a\"", - "x-runtime": "0.029008", + "ETag": "W/\"a6c0340e415d73a59dda6093190fb34d\"", + "x-runtime": "0.027551", "x-node": "bigweb8nuq", - "x-version-label": "easypost-202209071541-cbf5be725f-master", + "x-version-label": "easypost-202209122201-78bd7c2d38-master", "x-backend": "easypost", - "x-proxied": "intlb2nuq 6aa9972c1e,extlb1nuq 9ce216bfac", + "x-proxied": "intlb2nuq 6aa9972c1e,extlb2nuq 9ce216bfac", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { From b67134126810ea2430633e339f9fdb6636e65264 Mon Sep 17 00:00:00 2001 From: nharris Date: Mon, 12 Sep 2022 17:22:12 -0600 Subject: [PATCH 8/9] - Stricter enforcement of naming style --- .editorconfig | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.editorconfig b/.editorconfig index 9fe180b75..bdb5fc4b1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -27,13 +27,13 @@ dotnet_naming_rule.camel_case_for_private_internal_fields_rule.severity = sugges dotnet_naming_rule.camel_case_for_private_internal_fields_rule.style = lower_camel_case_style_1 dotnet_naming_rule.camel_case_for_private_internal_fields_rule.symbols = camel_case_for_private_internal_fields_symbols dotnet_naming_rule.constants_rule.import_to_resharper = as_predefined -dotnet_naming_rule.constants_rule.severity = suggestion +dotnet_naming_rule.constants_rule.severity = warning dotnet_naming_rule.constants_rule.style = upper_camel_case_style dotnet_naming_rule.constants_rule.symbols = constants_symbols dotnet_naming_rule.constant_fields_should_be_pascal_case_rule.import_to_resharper = True dotnet_naming_rule.constant_fields_should_be_pascal_case_rule.resharper_description = constant_fields_should_be_pascal_case dotnet_naming_rule.constant_fields_should_be_pascal_case_rule.resharper_guid = 5fc5b41a-b7a6-477d-9e78-cd35bb64828d -dotnet_naming_rule.constant_fields_should_be_pascal_case_rule.severity = suggestion +dotnet_naming_rule.constant_fields_should_be_pascal_case_rule.severity = warning dotnet_naming_rule.constant_fields_should_be_pascal_case_rule.style = upper_camel_case_style dotnet_naming_rule.constant_fields_should_be_pascal_case_rule.symbols = constant_fields_should_be_pascal_case_symbols dotnet_naming_rule.method_rule.import_to_resharper = as_predefined @@ -96,27 +96,27 @@ dotnet_naming_rule.public_fields_instance_override_rule_1.severity = suggestion dotnet_naming_rule.public_fields_instance_override_rule_1.style = lower_camel_case_style_1 dotnet_naming_rule.public_fields_instance_override_rule_1.symbols = public_fields_instance_override_symbols_1 dotnet_naming_rule.public_fields_instance_override_rule_2.import_to_resharper = False -dotnet_naming_rule.public_fields_instance_override_rule_2.severity = suggestion +dotnet_naming_rule.public_fields_instance_override_rule_2.severity = warning dotnet_naming_rule.public_fields_instance_override_rule_2.style = upper_camel_case_style dotnet_naming_rule.public_fields_instance_override_rule_2.symbols = public_fields_instance_override_symbols_2 dotnet_naming_rule.public_fields_instance_rule.import_to_resharper = True dotnet_naming_rule.public_fields_instance_rule.resharper_description = PublicFieldsInstance dotnet_naming_rule.public_fields_instance_rule.resharper_guid = 2a9a0bae-89b4-4df6-a105-19c5f8e2e0dd -dotnet_naming_rule.public_fields_instance_rule.severity = suggestion +dotnet_naming_rule.public_fields_instance_rule.severity = warning dotnet_naming_rule.public_fields_instance_rule.style = upper_camel_case_style dotnet_naming_rule.public_fields_instance_rule.symbols = public_fields_instance_symbols dotnet_naming_rule.public_fields_instance_rule_1.import_to_resharper = True dotnet_naming_rule.public_fields_instance_rule_1.resharper_description = PublicFieldsInstance dotnet_naming_rule.public_fields_instance_rule_1.resharper_guid = 805de0e3-9674-4c38-a95c-271ec44bc5df -dotnet_naming_rule.public_fields_instance_rule_1.severity = suggestion +dotnet_naming_rule.public_fields_instance_rule_1.severity = warning dotnet_naming_rule.public_fields_instance_rule_1.style = upper_camel_case_style dotnet_naming_rule.public_fields_instance_rule_1.symbols = public_fields_instance_symbols_1 dotnet_naming_rule.public_fields_rule.import_to_resharper = as_predefined -dotnet_naming_rule.public_fields_rule.severity = suggestion +dotnet_naming_rule.public_fields_rule.severity = warning dotnet_naming_rule.public_fields_rule.style = upper_camel_case_style dotnet_naming_rule.public_fields_rule.symbols = public_fields_symbols dotnet_naming_rule.public_fields_static_override_rule.import_to_resharper = False -dotnet_naming_rule.public_fields_static_override_rule.severity = suggestion +dotnet_naming_rule.public_fields_static_override_rule.severity = warning dotnet_naming_rule.public_fields_static_override_rule.style = upper_camel_case_style dotnet_naming_rule.public_fields_static_override_rule.symbols = public_fields_static_override_symbols dotnet_naming_rule.public_fields_static_rule.import_to_resharper = True @@ -377,7 +377,7 @@ dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion dotnet_style_predefined_type_for_member_access = true:suggestion # name all constant fields using PascalCase -dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion +dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = warning dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style dotnet_naming_symbols.constant_fields.applicable_kinds = field From 8d06fff9f89ea0d3a202c2682a60f7b456fa197d Mon Sep 17 00:00:00 2001 From: nharris Date: Mon, 12 Sep 2022 17:41:45 -0600 Subject: [PATCH 9/9] - Fix some IDE suggestions - Suppress some IDE suggestions (I know better than the IDE sometimes) --- EasyPost.Tests/RefundTest.cs | 2 -- EasyPost/EasyPost.csproj | 10 ++---- EasyPost/Http/Request.cs | 4 ++- EasyPost/Models/API/PaymentMethod.cs | 2 +- EasyPost/Models/API/PaymentMethodType.cs | 2 +- EasyPost/Services/AddressService.cs | 1 + EasyPost/Services/ApiKeyService.cs | 1 + EasyPost/Services/BatchService.cs | 1 + EasyPost/Services/BillingService.cs | 1 + EasyPost/Services/CarrierAccountService.cs | 1 + EasyPost/Services/CarrierTypeService.cs | 1 + EasyPost/Services/CustomsInfoService.cs | 1 + EasyPost/Services/CustomsItemService.cs | 1 + EasyPost/Services/EventService.cs | 1 + EasyPost/Services/InsuranceService.cs | 1 + EasyPost/Services/OrderService.cs | 1 + EasyPost/Services/ParcelService.cs | 1 + EasyPost/Services/PickupService.cs | 1 + EasyPost/Services/RateService.cs | 1 + EasyPost/Services/RefundService.cs | 1 + EasyPost/Services/ReportService.cs | 1 + EasyPost/Services/ScanFormService.cs | 1 + EasyPost/Services/ShipmentService.cs | 3 +- EasyPost/Services/TrackerService.cs | 1 + EasyPost/Services/UserService.cs | 1 + EasyPost/Services/WebhookService.cs | 1 + .../Utilities/Annotations/CrudOperations.cs | 8 ++--- EasyPost/Utilities/SwitchCase.cs | 2 +- EasyPost/_base/EasyPostObject.cs | 35 ++++++++----------- 29 files changed, 48 insertions(+), 40 deletions(-) diff --git a/EasyPost.Tests/RefundTest.cs b/EasyPost.Tests/RefundTest.cs index 5e2e0191d..9769c88b7 100644 --- a/EasyPost.Tests/RefundTest.cs +++ b/EasyPost.Tests/RefundTest.cs @@ -56,8 +56,6 @@ public async Task TestRetrieve() { UseVCR("retrieve"); - RefundCollection refundCollection = await Client.Refund.All(new Dictionary { { "page_size", Fixture.PageSize } }); - Refund refund = (await CreateBasicRefund())[0]; Refund retrievedRefund = await Client.Refund.Retrieve(refund.Id); diff --git a/EasyPost/EasyPost.csproj b/EasyPost/EasyPost.csproj index 3120ad318..e67dbdc45 100644 --- a/EasyPost/EasyPost.csproj +++ b/EasyPost/EasyPost.csproj @@ -22,14 +22,8 @@ prompt 4 false - - - - - - - - CS8603;CS8602;CS8765;CS8767;CS0659;CS0618 + + pdbonly diff --git a/EasyPost/Http/Request.cs b/EasyPost/Http/Request.cs index a554c9b0e..693014133 100644 --- a/EasyPost/Http/Request.cs +++ b/EasyPost/Http/Request.cs @@ -13,7 +13,8 @@ internal class Request private readonly Dictionary _parameters; private readonly RestRequest _restRequest; - public Request(string endpoint, Method method, ApiVersion? apiVersion, Dictionary? parameters = null, string? rootElement = null) + // ReSharper disable once SuggestBaseTypeForParameterInConstructor + public Request(string endpoint, Method method, ApiVersion apiVersion, Dictionary? parameters = null, string? rootElement = null) { endpoint = $"{apiVersion.Value}/{endpoint}"; @@ -71,6 +72,7 @@ private void BuildQueryParameters() { foreach (KeyValuePair pair in _parameters) { + // ReSharper disable once ConditionIsAlwaysTrueOrFalseAccordingToNullableAPIContract if (pair.Value == null) { continue; diff --git a/EasyPost/Models/API/PaymentMethod.cs b/EasyPost/Models/API/PaymentMethod.cs index b0847d057..c42b7a71a 100644 --- a/EasyPost/Models/API/PaymentMethod.cs +++ b/EasyPost/Models/API/PaymentMethod.cs @@ -78,7 +78,7 @@ public PaymentMethodType? Type } } - internal string Endpoint + internal string? Endpoint { get { diff --git a/EasyPost/Models/API/PaymentMethodType.cs b/EasyPost/Models/API/PaymentMethodType.cs index 579c8b0de..e47f26d22 100644 --- a/EasyPost/Models/API/PaymentMethodType.cs +++ b/EasyPost/Models/API/PaymentMethodType.cs @@ -7,7 +7,7 @@ public class PaymentMethodType : ValueEnum public static readonly PaymentMethodType BankAccount = new PaymentMethodType(2, "bank_accounts"); public static readonly PaymentMethodType CreditCard = new PaymentMethodType(1, "credit_cards"); - internal string EndPoint => Value.ToString(); + internal string? EndPoint => Value.ToString(); private PaymentMethodType(int id, string endpoint) : base(id, endpoint) { diff --git a/EasyPost/Services/AddressService.cs b/EasyPost/Services/AddressService.cs index e0839f396..86cf0c5bc 100644 --- a/EasyPost/Services/AddressService.cs +++ b/EasyPost/Services/AddressService.cs @@ -6,6 +6,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class AddressService : EasyPostService { internal AddressService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/ApiKeyService.cs b/EasyPost/Services/ApiKeyService.cs index b776505d6..19a3fe87c 100644 --- a/EasyPost/Services/ApiKeyService.cs +++ b/EasyPost/Services/ApiKeyService.cs @@ -5,6 +5,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class ApiKeyService : EasyPostService { internal ApiKeyService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/BatchService.cs b/EasyPost/Services/BatchService.cs index 3380dbae0..e178b572a 100644 --- a/EasyPost/Services/BatchService.cs +++ b/EasyPost/Services/BatchService.cs @@ -7,6 +7,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class BatchService : EasyPostService { internal BatchService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/BillingService.cs b/EasyPost/Services/BillingService.cs index c57c300fb..f7ff7d95d 100644 --- a/EasyPost/Services/BillingService.cs +++ b/EasyPost/Services/BillingService.cs @@ -8,6 +8,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class BillingService : EasyPostService { internal BillingService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/CarrierAccountService.cs b/EasyPost/Services/CarrierAccountService.cs index 8a1571264..3d2f90baa 100644 --- a/EasyPost/Services/CarrierAccountService.cs +++ b/EasyPost/Services/CarrierAccountService.cs @@ -6,6 +6,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class CarrierAccountService : EasyPostService { internal CarrierAccountService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/CarrierTypeService.cs b/EasyPost/Services/CarrierTypeService.cs index 5cf3c938c..7fc4b6ed0 100644 --- a/EasyPost/Services/CarrierTypeService.cs +++ b/EasyPost/Services/CarrierTypeService.cs @@ -6,6 +6,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class CarrierTypeService : EasyPostService { internal CarrierTypeService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/CustomsInfoService.cs b/EasyPost/Services/CustomsInfoService.cs index efc26cc2f..5bca05d6a 100644 --- a/EasyPost/Services/CustomsInfoService.cs +++ b/EasyPost/Services/CustomsInfoService.cs @@ -6,6 +6,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class CustomsInfoService : EasyPostService { internal CustomsInfoService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/CustomsItemService.cs b/EasyPost/Services/CustomsItemService.cs index 541378c5b..74633a754 100644 --- a/EasyPost/Services/CustomsItemService.cs +++ b/EasyPost/Services/CustomsItemService.cs @@ -6,6 +6,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class CustomsItemService : EasyPostService { internal CustomsItemService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/EventService.cs b/EasyPost/Services/EventService.cs index 448a393f2..15f2bde3e 100644 --- a/EasyPost/Services/EventService.cs +++ b/EasyPost/Services/EventService.cs @@ -6,6 +6,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class EventService : EasyPostService { internal EventService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/InsuranceService.cs b/EasyPost/Services/InsuranceService.cs index f1cbbf364..598026486 100644 --- a/EasyPost/Services/InsuranceService.cs +++ b/EasyPost/Services/InsuranceService.cs @@ -7,6 +7,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class InsuranceService : EasyPostService { internal InsuranceService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/OrderService.cs b/EasyPost/Services/OrderService.cs index ac7841536..c390f7703 100644 --- a/EasyPost/Services/OrderService.cs +++ b/EasyPost/Services/OrderService.cs @@ -6,6 +6,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class OrderService : EasyPostService { internal OrderService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/ParcelService.cs b/EasyPost/Services/ParcelService.cs index 8f7ac2601..cffe04cbe 100644 --- a/EasyPost/Services/ParcelService.cs +++ b/EasyPost/Services/ParcelService.cs @@ -6,6 +6,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class ParcelService : EasyPostService { internal ParcelService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/PickupService.cs b/EasyPost/Services/PickupService.cs index 9e0541429..2316411c7 100644 --- a/EasyPost/Services/PickupService.cs +++ b/EasyPost/Services/PickupService.cs @@ -7,6 +7,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class PickupService : EasyPostService { internal PickupService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/RateService.cs b/EasyPost/Services/RateService.cs index e443aaae6..5507814d6 100644 --- a/EasyPost/Services/RateService.cs +++ b/EasyPost/Services/RateService.cs @@ -7,6 +7,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class RateService : EasyPostService { internal RateService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/RefundService.cs b/EasyPost/Services/RefundService.cs index 5000b8d9a..892c5d7b3 100644 --- a/EasyPost/Services/RefundService.cs +++ b/EasyPost/Services/RefundService.cs @@ -7,6 +7,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class RefundService : EasyPostService { internal RefundService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/ReportService.cs b/EasyPost/Services/ReportService.cs index eeb7ab1f9..cf27a17ba 100644 --- a/EasyPost/Services/ReportService.cs +++ b/EasyPost/Services/ReportService.cs @@ -6,6 +6,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class ReportService : EasyPostService { internal ReportService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/ScanFormService.cs b/EasyPost/Services/ScanFormService.cs index 10156c344..f529b9927 100644 --- a/EasyPost/Services/ScanFormService.cs +++ b/EasyPost/Services/ScanFormService.cs @@ -7,6 +7,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class ScanFormService : EasyPostService { internal ScanFormService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/ShipmentService.cs b/EasyPost/Services/ShipmentService.cs index 877f87f18..e4e980490 100644 --- a/EasyPost/Services/ShipmentService.cs +++ b/EasyPost/Services/ShipmentService.cs @@ -1,15 +1,14 @@ -using System; using System.Collections.Generic; using System.Threading.Tasks; using EasyPost._base; using EasyPost.Calculation; using EasyPost.Http; using EasyPost.Models.API; -using EasyPost.Utilities; using EasyPost.Utilities.Annotations; namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class ShipmentService : EasyPostService { internal ShipmentService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/TrackerService.cs b/EasyPost/Services/TrackerService.cs index 235b9e34c..6ef105582 100644 --- a/EasyPost/Services/TrackerService.cs +++ b/EasyPost/Services/TrackerService.cs @@ -7,6 +7,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class TrackerService : EasyPostService { internal TrackerService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/UserService.cs b/EasyPost/Services/UserService.cs index 2382512e9..cef989fc5 100644 --- a/EasyPost/Services/UserService.cs +++ b/EasyPost/Services/UserService.cs @@ -6,6 +6,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class UserService : EasyPostService { internal UserService(EasyPostClient client) : base(client) diff --git a/EasyPost/Services/WebhookService.cs b/EasyPost/Services/WebhookService.cs index 02ee8c7e4..20bf64b0e 100644 --- a/EasyPost/Services/WebhookService.cs +++ b/EasyPost/Services/WebhookService.cs @@ -6,6 +6,7 @@ namespace EasyPost.Services { + // ReSharper disable once ClassNeverInstantiated.Global public class WebhookService : EasyPostService { internal WebhookService(EasyPostClient client) : base(client) diff --git a/EasyPost/Utilities/Annotations/CrudOperations.cs b/EasyPost/Utilities/Annotations/CrudOperations.cs index 9f3373481..4e7e8ddbc 100644 --- a/EasyPost/Utilities/Annotations/CrudOperations.cs +++ b/EasyPost/Utilities/Annotations/CrudOperations.cs @@ -4,22 +4,22 @@ namespace EasyPost.Utilities.Annotations { internal static class CrudOperations { - [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] + [AttributeUsage(AttributeTargets.Method, Inherited = false)] internal class Create : BaseCustomAttribute { } - [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] + [AttributeUsage(AttributeTargets.Method, Inherited = false)] internal class Read : BaseCustomAttribute { } - [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] + [AttributeUsage(AttributeTargets.Method, Inherited = false)] internal class Update : BaseCustomAttribute { } - [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] + [AttributeUsage(AttributeTargets.Method, Inherited = false)] internal class Delete : BaseCustomAttribute { } diff --git a/EasyPost/Utilities/SwitchCase.cs b/EasyPost/Utilities/SwitchCase.cs index e8084d96f..02234c9c7 100644 --- a/EasyPost/Utilities/SwitchCase.cs +++ b/EasyPost/Utilities/SwitchCase.cs @@ -40,7 +40,7 @@ public object Value private Func Expression { get; } - public ExpressionCase(Func expression, Action? action) + protected ExpressionCase(Func expression, Action? action) { Expression = expression; Action = action; diff --git a/EasyPost/_base/EasyPostObject.cs b/EasyPost/_base/EasyPostObject.cs index 4f90cc2a8..8519aa02b 100644 --- a/EasyPost/_base/EasyPostObject.cs +++ b/EasyPost/_base/EasyPostObject.cs @@ -41,13 +41,8 @@ public override bool Equals(object? obj) return false; } - string? thisJson = AsJson(); - string? otherJson = ((EasyPostObject)obj).AsJson(); - if (thisJson == null || otherJson == null) - { - // can't do proper comparison if either or both could not be serialized - return false; - } + string thisJson = AsJson(); + string otherJson = ((EasyPostObject)obj).AsJson(); return thisJson == otherJson; } @@ -57,19 +52,6 @@ public override int GetHashCode() return AsDictionary().GetHashCode(); } - /// - /// Merge the properties of this object instance with the properties of another object instance. - /// Adds properties from the input object instance into this object instance. - /// - /// Object instance to extract properties from to merge into this object instance. - internal void Merge(object source) - { - foreach (PropertyInfo property in source.GetType().GetProperties()) - { - property.SetValue(this, property.GetValue(source, null), null); - } - } - protected async Task Update(Method method, string url, Dictionary? parameters = null, string? rootElement = null, ApiVersion? overrideApiVersion = null) where T : class { T updatedObject = await Request(method, url, parameters, rootElement, overrideApiVersion); @@ -111,6 +93,19 @@ protected async Task Update(Method method, string url, Dictionary + /// Merge the properties of this object instance with the properties of another object instance. + /// Adds properties from the input object instance into this object instance. + /// + /// Object instance to extract properties from to merge into this object instance. + private void Merge(object source) + { + foreach (PropertyInfo property in source.GetType().GetProperties()) + { + property.SetValue(this, property.GetValue(source, null), null); + } + } } public interface IEasyPostObject