From b7194bb26bd6e6195822a7b8af5570b47f09ad07 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Mon, 22 Jul 2024 14:12:22 -0600 Subject: [PATCH 1/7] - Add new Claim service, functions - Add new Claim and ClaimHistoryEntry models - Add unit tests, fixtures, cassettes as needed - Bump examples submodule - TODO: Docstring updates --- CHANGELOG.md | 4 + EasyPost.Tests/Fixture.cs | 37 +++ EasyPost.Tests/FixtureData.cs | 13 + .../ServicesTests/InsuranceServiceTest.cs | 2 +- .../WithParameters/ClaimServiceTest.cs | 163 ++++++++++++ .../claim_service_with_parameters/all.json | 50 ++++ .../claim_service_with_parameters/cancel.json | 248 ++++++++++++++++++ .../claim_service_with_parameters/create.json | 200 ++++++++++++++ .../get_next_page.json | 49 ++++ .../retrieve.json | 247 +++++++++++++++++ EasyPost/BetaClient.cs | 2 +- EasyPost/Client.cs | 7 + EasyPost/Models/API/Claim.cs | 170 ++++++++++++ EasyPost/Models/API/ClaimHistoryEntry.cs | 33 +++ EasyPost/Models/API/ClaimType.cs | 34 +++ EasyPost/Parameters/Claim/All.cs | 80 ++++++ EasyPost/Parameters/Claim/Create.cs | 80 ++++++ EasyPost/Parameters/IParameter.cs | 7 + EasyPost/Services/ClaimService.cs | 89 +++++++ examples | 2 +- 20 files changed, 1514 insertions(+), 3 deletions(-) create mode 100644 EasyPost.Tests/ServicesTests/WithParameters/ClaimServiceTest.cs create mode 100644 EasyPost.Tests/cassettes/net/claim_service_with_parameters/all.json create mode 100644 EasyPost.Tests/cassettes/net/claim_service_with_parameters/cancel.json create mode 100644 EasyPost.Tests/cassettes/net/claim_service_with_parameters/create.json create mode 100644 EasyPost.Tests/cassettes/net/claim_service_with_parameters/get_next_page.json create mode 100644 EasyPost.Tests/cassettes/net/claim_service_with_parameters/retrieve.json create mode 100644 EasyPost/Models/API/Claim.cs create mode 100644 EasyPost/Models/API/ClaimHistoryEntry.cs create mode 100644 EasyPost/Models/API/ClaimType.cs create mode 100644 EasyPost/Parameters/Claim/All.cs create mode 100644 EasyPost/Parameters/Claim/Create.cs create mode 100644 EasyPost/Services/ClaimService.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index c32e5d180..b0fe7ee4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## Next Release + +- Add new `Claim` service for filing claims on EasyPost shipments and insurances + ## v6.6.0 (2024-07-16) - Add new `SmartRate` service for interacting with the SmartRate API diff --git a/EasyPost.Tests/Fixture.cs b/EasyPost.Tests/Fixture.cs index 4e7b485e8..8c982bab1 100644 --- a/EasyPost.Tests/Fixture.cs +++ b/EasyPost.Tests/Fixture.cs @@ -44,6 +44,8 @@ public static byte[] EventBody internal static Dictionary BasicInsurance => GetFixtureStructure().Insurances.Basic; + internal static Dictionary BasicClaim => GetFixtureStructure().Claims.Basic; + internal static Dictionary BasicOrder => GetFixtureStructure().Orders.Basic; internal static Dictionary BasicParcel => GetFixtureStructure().Parcels.Basic; @@ -274,6 +276,41 @@ internal static ParameterSets.CarrierAccount.CreateUps CreateUps(Dictionary? fixture) + { + fixture ??= new Dictionary(); + + return new ParameterSets.Claim.Create + { + Type = fixture.GetOrNullEnum("type"), + Amount = fixture.GetOrNullDouble("amount"), + TrackingCode = fixture.GetOrNull("tracking_code"), + EmailEvidenceAttachments = fixture.GetOrNull("email_evidence_attachments"), + InvoiceAttachments = fixture.GetOrNull("invoice_attachments"), + SupportingDocumentationAttachments = fixture.GetOrNull("supporting_documentation_attachments"), + Description = fixture.GetOrNull("description"), + ContactEmail = fixture.GetOrNull("contact_email"), + PaymentMethod = fixture.GetOrNull("payment_method"), + }; + } + + internal static ParameterSets.Claim.All All(Dictionary? fixture) + { + fixture ??= new Dictionary(); + + return new ParameterSets.Claim.All + { + PageSize = fixture.GetOrNullInt("page_size"), + BeforeId = fixture.GetOrNull("before_id"), + AfterId = fixture.GetOrNull("after_id"), + StartDatetime = fixture.GetOrNull("start_datetime"), + EndDatetime = fixture.GetOrNull("end_datetime"), + }; + } + } + internal static class CustomsInfo { internal static ParameterSets.CustomsInfo.Create Create(Dictionary? fixture) diff --git a/EasyPost.Tests/FixtureData.cs b/EasyPost.Tests/FixtureData.cs index 9e85f9e7c..9f0938f57 100644 --- a/EasyPost.Tests/FixtureData.cs +++ b/EasyPost.Tests/FixtureData.cs @@ -19,6 +19,9 @@ public class FixtureStructure [JsonProperty("carrier_strings")] public CarrierStrings CarrierStrings { get; set; } + [JsonProperty("claims")] + public Claims Claims { get; set; } + [JsonProperty("credit_cards")] public CreditCards CreditCards { get; set; } @@ -103,6 +106,16 @@ public class CarrierStrings #endregion } + public class Claims + { + #region JSON Properties + + [JsonProperty("basic")] + public Dictionary Basic { get; set; } + + #endregion + } + public class CreditCards { #region JSON Properties diff --git a/EasyPost.Tests/ServicesTests/InsuranceServiceTest.cs b/EasyPost.Tests/ServicesTests/InsuranceServiceTest.cs index d7d623cd1..395d4406e 100644 --- a/EasyPost.Tests/ServicesTests/InsuranceServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/InsuranceServiceTest.cs @@ -115,7 +115,7 @@ public async Task TestRefund() Insurance insurance = await Client.Insurance.Create(parameters); Insurance cancelledInsurance = await Client.Insurance.Refund(insurance.Id); - Assert.IsType(insurance); + Assert.IsType(cancelledInsurance); Assert.StartsWith("ins_", cancelledInsurance.Id); Assert.Equal("cancelled", cancelledInsurance.Status); Assert.Equal("Insurance was cancelled by the user.", cancelledInsurance.Messages[0]); diff --git a/EasyPost.Tests/ServicesTests/WithParameters/ClaimServiceTest.cs b/EasyPost.Tests/ServicesTests/WithParameters/ClaimServiceTest.cs new file mode 100644 index 000000000..595cba528 --- /dev/null +++ b/EasyPost.Tests/ServicesTests/WithParameters/ClaimServiceTest.cs @@ -0,0 +1,163 @@ +using System.Collections.Generic; +using System.Threading.Tasks; +using EasyPost.Exceptions.General; +using EasyPost.Models.API; +using EasyPost.Tests._Utilities; +using EasyPost.Tests._Utilities.Attributes; +using EasyPost.Utilities.Internal.Attributes; +using Xunit; + +namespace EasyPost.Tests.ServicesTests.WithParameters +{ + public class ClaimServiceTests : UnitTest + { + public ClaimServiceTests() : base("claim_service_with_parameters") + { + } + + #region Tests + + private static async Task PrepareInsuredShipment(Client client, Parameters.Shipment.Create createShipmentParameters, double claimAmount) + { + Shipment shipment = await client.Shipment.Create(createShipmentParameters); + Rate rate = shipment.LowestRate(); + Shipment purchaseShipment = await client.Shipment.Buy(shipment.Id, rate.Id); + Shipment _ = await client.Shipment.Insure(purchaseShipment.Id, claimAmount); + + return purchaseShipment; + } + + #region Test CRUD Operations + + [Fact] + [CrudOperations.Create] + [Testing.Function] + public async Task TestCreate() + { + UseVCR("create"); + + const double claimAmount = 100.00; + Parameters.Shipment.Create createShipmentParameters = Fixtures.Parameters.Shipments.Create(Fixtures.FullShipment); + Shipment insuredShipment = await PrepareInsuredShipment(Client, createShipmentParameters, claimAmount); + + Dictionary claimData = Fixtures.BasicClaim; + Parameters.Claim.Create claimParameters = Fixtures.Parameters.Claims.Create(claimData); + + claimParameters.TrackingCode = insuredShipment.TrackingCode; + claimParameters.Amount = claimAmount; + + Claim claim = await Client.Claim.Create(claimParameters); + + Assert.IsType(claim); + Assert.StartsWith("clm_", claim.Id); + Assert.Equal(claimParameters.TrackingCode, claim.TrackingCode); + Assert.Equal(claimParameters.Amount, claim.RequestedAmount); + Assert.Equal(claimParameters.Type, claim.Type); + } + + [Fact] + [CrudOperations.Read] + [Testing.Function] + public async Task TestAll() + { + UseVCR("all"); + + Dictionary data = new Dictionary() { { "page_size", Fixtures.PageSize } }; + Parameters.Claim.All parameters = Fixtures.Parameters.Claims.All(data); + + ClaimCollection claimCollection = await Client.Claim.All(parameters); + + List claims = claimCollection.Claims; + + Assert.True(claims.Count <= Fixtures.PageSize); + foreach (Claim item in claims) + { + Assert.IsType(item); + } + } + + [Fact] + [CrudOperations.Read] + [Testing.Function] + public async Task TestGetNextPage() + { + UseVCR("get_next_page"); + + Dictionary data = new Dictionary() { { "page_size", Fixtures.PageSize } }; + Parameters.Claim.All parameters = Fixtures.Parameters.Claims.All(data); + + ClaimCollection collection = await Client.Claim.All(parameters); + + try + { + ClaimCollection nextPageCollection = await Client.Claim.GetNextPage(collection); + + // If the first ID in the next page is the same as the first ID in the current page, then we didn't get the next page + Assert.NotEqual(collection.Claims[0].Id, nextPageCollection.Claims[0].Id); + } + catch (EndOfPaginationError) // There's no second page, that's not a failure + { + Assert.True(true); + } + catch // Any other exception is a failure + { + Assert.True(false); + } + } + + [Fact] + [CrudOperations.Read] + [Testing.Function] + public async Task TestRetrieve() + { + UseVCR("retrieve"); + + const double claimAmount = 100.00; + Parameters.Shipment.Create createShipmentParameters = Fixtures.Parameters.Shipments.Create(Fixtures.FullShipment); + Shipment insuredShipment = await PrepareInsuredShipment(Client, createShipmentParameters, claimAmount); + + Dictionary claimData = Fixtures.BasicClaim; + Parameters.Claim.Create claimParameters = Fixtures.Parameters.Claims.Create(claimData); + + claimParameters.TrackingCode = insuredShipment.TrackingCode; + claimParameters.Amount = claimAmount; + + Claim claim = await Client.Claim.Create(claimParameters); + + Claim retrievedClaim = await Client.Claim.Retrieve(claim.Id); + + Assert.IsType(retrievedClaim); + // Must compare IDs since other elements of object may be different + Assert.Equal(claim.Id, retrievedClaim.Id); + } + + [Fact] + [CrudOperations.Create] + [Testing.Function] + public async Task TestCancel() + { + UseVCR("cancel"); + + const double claimAmount = 100.00; + Parameters.Shipment.Create createShipmentParameters = Fixtures.Parameters.Shipments.Create(Fixtures.FullShipment); + Shipment insuredShipment = await PrepareInsuredShipment(Client, createShipmentParameters, claimAmount); + + Dictionary claimData = Fixtures.BasicClaim; + Parameters.Claim.Create claimParameters = Fixtures.Parameters.Claims.Create(claimData); + + claimParameters.TrackingCode = insuredShipment.TrackingCode; + claimParameters.Amount = claimAmount; + + Claim claim = await Client.Claim.Create(claimParameters); + Claim cancelledClaim = await Client.Claim.Cancel(claim.Id); + + Assert.IsType(cancelledClaim); + Assert.StartsWith("clm_", cancelledClaim.Id); + Assert.Equal("cancelled", cancelledClaim.Status); + } + + #endregion + + #endregion + } +} diff --git a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/all.json b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/all.json new file mode 100644 index 000000000..36213682f --- /dev/null +++ b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/all.json @@ -0,0 +1,50 @@ +[ + { + "Duration": 476, + "RecordedAt": "2024-07-22T14:08:16.11305-06:00", + "Request": { + "Body": "", + "BodyContentType": "Text", + "ContentHeaders": {}, + "Method": "GET", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims?page_size=5" + }, + "Response": { + "Body": "{\"claims\":[],\"has_more\":false}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "31" + }, + "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": "9bf8e47b669ebc30f0217939001ed46b", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.033753", + "Vary": "Origin", + "x-node": "bigweb43nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-canary": "direct", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + } +] diff --git a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/cancel.json b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/cancel.json new file mode 100644 index 000000000..376bb932a --- /dev/null +++ b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/cancel.json @@ -0,0 +1,248 @@ +[ + { + "Duration": 85, + "RecordedAt": "2024-07-22T14:08:20.952734-06:00", + "Request": { + "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "742" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:08:20Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:08:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b3131fbfa0f14863826fb6fe57614c83\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_408e268cf6054cd4acc02e3a485dbeef\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_89181b8cd9f040828e070f7f485f8b99\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_810018637d094223a76b55a984075f4c\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "5867" + }, + "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": "a6f186b4669ebc34f3f62de1001e8415", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "Location": "/api/v2/shipments/shp_cf1f404e9c3b496cbae3335f2a678b80", + "x-runtime": "0.896544", + "x-node": "bigweb34nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + }, + { + "Duration": 13, + "RecordedAt": "2024-07-22T14:08:21.97925-06:00", + "Request": { + "Body": "{\"rate\":{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\"},\"insurance\":\"\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "70" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_cf1f404e9c3b496cbae3335f2a678b80/buy" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:08:20Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968454\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b3131fbfa0f14863826fb6fe57614c83\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_408e268cf6054cd4acc02e3a485dbeef\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6c9f5f1f102c42bab19f84b18ef9b9e2\",\"created_at\":\"2024-07-22T20:08:21Z\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08: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/20240722/e8ca0ae27c0b004c53beba2e9a8b08a2ce.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_89181b8cd9f040828e070f7f485f8b99\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_810018637d094223a76b55a984075f4c\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:21Z\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ebed796d141f476b92376b3e251b9f37\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968454\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:08:21Z\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2ViZWQ3OTZkMTQxZjQ3NmI5MjM3NmIzZTI1MWI5ZjM3\"},\"to_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "7992" + }, + "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": "a6f186b4669ebc35f3f62de1001e84eb", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.941177", + "x-node": "bigweb33nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 395, + "RecordedAt": "2024-07-22T14:08:22.387817-06:00", + "Request": { + "Body": "{\"amount\":100.0}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "16" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_cf1f404e9c3b496cbae3335f2a678b80/insure" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:08:20Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968454\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b3131fbfa0f14863826fb6fe57614c83\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_408e268cf6054cd4acc02e3a485dbeef\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6c9f5f1f102c42bab19f84b18ef9b9e2\",\"created_at\":\"2024-07-22T20:08:21Z\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08: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/20240722/e8ca0ae27c0b004c53beba2e9a8b08a2ce.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_89181b8cd9f040828e070f7f485f8b99\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_810018637d094223a76b55a984075f4c\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:21Z\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ebed796d141f476b92376b3e251b9f37\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968454\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:08:22Z\",\"updated_at\":\"2024-07-22T20:08:22Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:08:22Z\",\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:08:22Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T08:45:22Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrX2ViZWQ3OTZkMTQxZjQ3NmI5MjM3NmIzZTI1MWI5ZjM3\"},\"to_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "9216" + }, + "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": "a6f186b4669ebc36f3f62de1001e85eb", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.271560", + "x-node": "bigweb32nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-canary": "direct", + "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 792, + "RecordedAt": "2024-07-22T14:08:23.197421-06:00", + "Request": { + "Body": "{\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "600" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims" + }, + "Response": { + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4db5e421e38048f08bad11aeb2af7e63.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2b4ce842ed6742978f61cd05465353d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/a0442147eb1a44638511c508cd876d9c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:22\"}],\"id\":\"clm_097e88bf052b4b0989b2b7c0cd9490c1\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_e667a018ca9a4260bfa4dc6df8ec608d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:22\",\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:22\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "1111" + }, + "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": "a6f186b4669ebc36f3f62de1001e8672", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.748075", + "Vary": "Origin", + "x-node": "bigweb40nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + }, + { + "Duration": 81, + "RecordedAt": "2024-07-22T14:08:23.289727-06:00", + "Request": { + "Body": "", + "BodyContentType": "Text", + "ContentHeaders": {}, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims/clm_097e88bf052b4b0989b2b7c0cd9490c1/cancel" + }, + "Response": { + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4db5e421e38048f08bad11aeb2af7e63.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2b4ce842ed6742978f61cd05465353d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/a0442147eb1a44638511c508cd876d9c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:08:23\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:22\"}],\"id\":\"clm_097e88bf052b4b0989b2b7c0cd9490c1\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_e667a018ca9a4260bfa4dc6df8ec608d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:08:23\",\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:23\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "1235" + }, + "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": "a6f186b4669ebc37f3f62de1001e875f", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.042987", + "Vary": "Origin", + "x-node": "bigweb33nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + } +] diff --git a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/create.json b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/create.json new file mode 100644 index 000000000..1ea0fb5c3 --- /dev/null +++ b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/create.json @@ -0,0 +1,200 @@ +[ + { + "Duration": 167, + "RecordedAt": "2024-07-22T14:08:24.480793-06:00", + "Request": { + "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "742" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:08:23Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:08:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_a0f52cd4eabf4b1e90ad3f55ed44beed\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6bab2204d61480ab3a5fef8226e78a3\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_9cafa76a2b814fa8b6a5d3157ef98c1f\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ec0d4e2ccc8e43ac94b3b1c43b34f437\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08: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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08: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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "5867" + }, + "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": "9bf8e477669ebc37f44fa154001edc0d", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "Location": "/api/v2/shipments/shp_42e204289d2b47c5bbb320acb0ed40e3", + "x-runtime": "0.979680", + "x-node": "bigweb33nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + }, + { + "Duration": 957, + "RecordedAt": "2024-07-22T14:08:25.451232-06:00", + "Request": { + "Body": "{\"rate\":{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\"},\"insurance\":\"\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "70" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_42e204289d2b47c5bbb320acb0ed40e3/buy" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:08:23Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968478\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_a0f52cd4eabf4b1e90ad3f55ed44beed\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6bab2204d61480ab3a5fef8226e78a3\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f0137a672b31454bbbc60666c7dafb1c\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08:25Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240722/e855150600f62b468ead8c087a1d3cd5eb.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9cafa76a2b814fa8b6a5d3157ef98c1f\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ec0d4e2ccc8e43ac94b3b1c43b34f437\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_6615ebad3a83423490a342f60a56cada\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968478\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzY2MTVlYmFkM2E4MzQyMzQ5MGEzNDJmNjBhNTZjYWRh\"},\"to_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:24-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:24-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "7992" + }, + "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": "9bf8e477669ebc38f44fa154001edd2b", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.917240", + "x-node": "bigweb42nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 325, + "RecordedAt": "2024-07-22T14:08:25.790557-06:00", + "Request": { + "Body": "{\"amount\":100.0}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "16" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_42e204289d2b47c5bbb320acb0ed40e3/insure" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:08:23Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968478\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_a0f52cd4eabf4b1e90ad3f55ed44beed\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6bab2204d61480ab3a5fef8226e78a3\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f0137a672b31454bbbc60666c7dafb1c\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08:25Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240722/e855150600f62b468ead8c087a1d3cd5eb.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9cafa76a2b814fa8b6a5d3157ef98c1f\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ec0d4e2ccc8e43ac94b3b1c43b34f437\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_6615ebad3a83423490a342f60a56cada\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968478\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:08:25Z\",\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:08:25Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T08:45:25Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzY2MTVlYmFkM2E4MzQyMzQ5MGEzNDJmNjBhNTZjYWRh\"},\"to_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:24-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:24-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "9216" + }, + "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": "9bf8e477669ebc39f44fa154001ede3c", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.285263", + "x-node": "bigweb42nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 892, + "RecordedAt": "2024-07-22T14:08:26.69415-06:00", + "Request": { + "Body": "{\"tracking_code\":\"9400100110368065968478\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "600" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims" + }, + "Response": { + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/7ff5eafcc9fb404a8aaf3ec5d35a6d72.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/420621ccbb2b4674a37d63e5848f60c7.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2825331c8ab146a18780daf1036fb36d.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:25\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:25\"}],\"id\":\"clm_097e5393d28c4bfd90b9f4af2320f4d2\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_fd138739af8d4b39950462574e158f6b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:25\",\"tracking_code\":\"9400100110368065968478\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:25\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "1111" + }, + "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": "9bf8e477669ebc39f44fa154001ede9a", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.849375", + "Vary": "Origin", + "x-node": "bigweb40nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + } +] diff --git a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/get_next_page.json b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/get_next_page.json new file mode 100644 index 000000000..a320ee2e5 --- /dev/null +++ b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/get_next_page.json @@ -0,0 +1,49 @@ +[ + { + "Duration": 219, + "RecordedAt": "2024-07-22T14:08:26.936701-06:00", + "Request": { + "Body": "", + "BodyContentType": "Text", + "ContentHeaders": {}, + "Method": "GET", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims?page_size=5" + }, + "Response": { + "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/7ff5eafcc9fb404a8aaf3ec5d35a6d72.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/420621ccbb2b4674a37d63e5848f60c7.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2825331c8ab146a18780daf1036fb36d.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:25\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:25\"}],\"id\":\"clm_097e5393d28c4bfd90b9f4af2320f4d2\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_fd138739af8d4b39950462574e158f6b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:25\",\"tracking_code\":\"9400100110368065968478\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:25\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4db5e421e38048f08bad11aeb2af7e63.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2b4ce842ed6742978f61cd05465353d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/a0442147eb1a44638511c508cd876d9c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:08:23\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:22\"}],\"id\":\"clm_097e88bf052b4b0989b2b7c0cd9490c1\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_e667a018ca9a4260bfa4dc6df8ec608d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:08:23\",\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:23\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d973cd9692024a8e836271da827d0140.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/875d9b498f53494aa5ef8ea145c7e73b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0cb4e0adf4c54f9980128f4ccca65398.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:18\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:18\"}],\"id\":\"clm_097ee5cf8f8343209ada2673d788d1ad\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_88c331b8d232466cae8410020c86a8ec\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:18\",\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:18\"}],\"has_more\":false}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "3487" + }, + "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": "9bf8e479669ebc3af43e14ce001edf9a", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.048428", + "Vary": "Origin", + "x-node": "bigweb39nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + } +] diff --git a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/retrieve.json b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/retrieve.json new file mode 100644 index 000000000..c39285031 --- /dev/null +++ b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/retrieve.json @@ -0,0 +1,247 @@ +[ + { + "Duration": 71, + "RecordedAt": "2024-07-22T14:08:17.321349-06:00", + "Request": { + "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "742" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:08:16Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:08:17Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_eab8d6adece148da87656e5b15e871f9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a2ad09c1bcd14c4890456940f7b71f6a\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_557c7551e21d44738a969d103c59831a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a21c34a4ea9f4a199256758ce2f26dff\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "5867" + }, + "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": "9bf8e478669ebc30f40c2992001ed4c8", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "Location": "/api/v2/shipments/shp_669de399465f4df3a9471fc330c2cf4e", + "x-runtime": "0.898645", + "x-node": "bigweb35nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + }, + { + "Duration": 933, + "RecordedAt": "2024-07-22T14:08:18.321936-06:00", + "Request": { + "Body": "{\"rate\":{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\"},\"insurance\":\"\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "70" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_669de399465f4df3a9471fc330c2cf4e/buy" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:08:16Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968447\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_eab8d6adece148da87656e5b15e871f9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a2ad09c1bcd14c4890456940f7b71f6a\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_988e9d4e08044daaa13d8a4fb1c9c391\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08: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/20240722/e85995dffd18b741feb379cd9341522f78.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_557c7551e21d44738a969d103c59831a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a21c34a4ea9f4a199256758ce2f26dff\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_16eb7728d003401eaa86f732dac3b3bf\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968447\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzE2ZWI3NzI4ZDAwMzQwMWVhYTg2ZjczMmRhYzNiM2Jm\"},\"to_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:17-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:17-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "7992" + }, + "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": "9bf8e478669ebc31f40c2992001ed5d1", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.874014", + "x-node": "bigweb40nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 438, + "RecordedAt": "2024-07-22T14:08:18.803434-06:00", + "Request": { + "Body": "{\"amount\":100.0}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "16" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_669de399465f4df3a9471fc330c2cf4e/insure" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:08:16Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968447\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_eab8d6adece148da87656e5b15e871f9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_a2ad09c1bcd14c4890456940f7b71f6a\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_988e9d4e08044daaa13d8a4fb1c9c391\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08: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/20240722/e85995dffd18b741feb379cd9341522f78.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_557c7551e21d44738a969d103c59831a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a21c34a4ea9f4a199256758ce2f26dff\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_16eb7728d003401eaa86f732dac3b3bf\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968447\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:08:18Z\",\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:08:18Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T08:45:18Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzE2ZWI3NzI4ZDAwMzQwMWVhYTg2ZjczMmRhYzNiM2Jm\"},\"to_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:17-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:17-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "9216" + }, + "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": "9bf8e478669ebc32f40c2992001ed6cc", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.282992", + "x-node": "bigweb38nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 899, + "RecordedAt": "2024-07-22T14:08:19.724235-06:00", + "Request": { + "Body": "{\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "600" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims" + }, + "Response": { + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d973cd9692024a8e836271da827d0140.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/875d9b498f53494aa5ef8ea145c7e73b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0cb4e0adf4c54f9980128f4ccca65398.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:18\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:18\"}],\"id\":\"clm_097ee5cf8f8343209ada2673d788d1ad\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_88c331b8d232466cae8410020c86a8ec\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:18\",\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:18\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "1111" + }, + "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": "9bf8e478669ebc32f40c2992001ed736", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.837491", + "Vary": "Origin", + "x-node": "bigweb42nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + }, + { + "Duration": 90, + "RecordedAt": "2024-07-22T14:08:19.836899-06:00", + "Request": { + "Body": "", + "BodyContentType": "Text", + "ContentHeaders": {}, + "Method": "GET", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims/clm_097ee5cf8f8343209ada2673d788d1ad" + }, + "Response": { + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d973cd9692024a8e836271da827d0140.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/875d9b498f53494aa5ef8ea145c7e73b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0cb4e0adf4c54f9980128f4ccca65398.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:18\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:18\"}],\"id\":\"clm_097ee5cf8f8343209ada2673d788d1ad\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_88c331b8d232466cae8410020c86a8ec\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:18\",\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:18\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "1111" + }, + "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": "9bf8e478669ebc33f40c2992001ed81a", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.050714", + "Vary": "Origin", + "x-node": "bigweb42nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + } +] diff --git a/EasyPost/BetaClient.cs b/EasyPost/BetaClient.cs index 3efe7f58b..e38e5a363 100644 --- a/EasyPost/BetaClient.cs +++ b/EasyPost/BetaClient.cs @@ -13,7 +13,7 @@ public class BetaClient : EasyPostClient * However, this class doesn't actually dictate that these services will use the beta API endpoint. * * In each function in each service (beta or not), when the HTTP call is being made, we can optionally override the - * API version that will be hit by setting the `overrideApiVersion` parameter to the desired version (defaults to ApiVersion.General otherwise). + * API version that will be hit by setting the `overrideApiVersion` parameter to the desired version (defaults to ApiVersion.Current otherwise). * * From a design perspective, this allows us to specifically redirect certain API calls to certain API versions on an individual basis. * diff --git a/EasyPost/Client.cs b/EasyPost/Client.cs index 0d1685db9..16bbd2a61 100644 --- a/EasyPost/Client.cs +++ b/EasyPost/Client.cs @@ -51,6 +51,11 @@ public class Client : EasyPostClient /// public CarrierTypeService CarrierType { get; } + /// + /// Access Claim-related functionality. + /// + public ClaimService Claim { get; } + /// /// Access Customs Info-related functionality. /// @@ -158,6 +163,7 @@ public Client(ClientConfiguration configuration) CarrierAccount = new CarrierAccountService(this); CarrierMetadata = new CarrierMetadataService(this); CarrierType = new CarrierTypeService(this); + Claim = new ClaimService(this); CustomsInfo = new CustomsInfoService(this); CustomsItem = new CustomsItemService(this); EndShipper = new EndShipperService(this); @@ -199,6 +205,7 @@ protected override void Dispose(bool disposing) CarrierAccount.Dispose(); CarrierMetadata.Dispose(); CarrierType.Dispose(); + Claim.Dispose(); CustomsInfo.Dispose(); CustomsItem.Dispose(); EndShipper.Dispose(); diff --git a/EasyPost/Models/API/Claim.cs b/EasyPost/Models/API/Claim.cs new file mode 100644 index 000000000..18fefa04d --- /dev/null +++ b/EasyPost/Models/API/Claim.cs @@ -0,0 +1,170 @@ +using System.Collections.Generic; +using System.Linq; +using EasyPost._base; +using EasyPost.Models.Shared; +using EasyPost.Utilities.Internal; +using Newtonsoft.Json; + +namespace EasyPost.Models.API +{ +#pragma warning disable CA1724 // Naming conflicts with Parameters.Claim + /// + /// Class representing a EasyPost claim object. + /// + public class Claim : EasyPostObject, Parameters.IClaimParameter + { + #region JSON Properties + + /// + /// The amount that has been approved for reimbursement. + /// + [JsonProperty("approved_amount")] + public string? ApprovedAmount { get; set; } + + /// + /// The attachments associated with the claim. + /// + [JsonProperty("attachments")] + public List? Attachments { get; set; } + + /// + /// The address to which the reimbursement check should be sent. + /// + [JsonProperty("check_delivery_address")] + public string? CheckDeliveryAddress { get; set; } + + /// + /// The email address of the contact person for the claim. + /// + [JsonProperty("contact_email")] + public string? ContactEmail { get; set; } + + /// + /// A detailed description of the claim. + /// + [JsonProperty("description")] + public string? Description { get; set; } + + /// + /// A list of s representing the history of the claim. + /// + [JsonProperty("history")] + public List? History { get; set; } + + /// + /// The original amount of the insurance on the associated . + /// + [JsonProperty("insurance_amount")] + public double? InsuranceAmount { get; set; } + + /// + /// The ID of the object associated with this claim. + /// + [JsonProperty("insurance_id")] + public string? InsuranceId { get; set; } + + /// + /// The ID of the claim. + /// + [JsonProperty("payment_method")] + public string? PaymentMethod { get; set; } + + /// + /// The name of the recipient of the reimbursement. + /// + [JsonProperty("recipient_name")] + public string? RecipientName { get; set; } + + /// + /// The amount that has been requested for reimbursement. + /// + [JsonProperty("requested_amount")] + public double? RequestedAmount { get; set; } + + /// + /// The salvage value of the damaged goods. + /// + [JsonProperty("salvage_value")] + public double? SalvageValue { get; set; } + + /// + /// The ID of the associated with this claim. + /// + [JsonProperty("shipment_id")] + public string? ShipmentId { get; set; } + + /// + /// The current status of the claim. + /// + [JsonProperty("status")] + public string? Status { get; set; } + + /// + /// The reason for the current status of the claim. + /// + [JsonProperty("status_detail")] + public string? StatusDetail { get; set; } + + /// + /// The timestamp of the last status update. + /// + [JsonProperty("status_timestamp")] + public string? StatusTimestamp { get; set; } + + /// + /// The tracking code of the associated with this claim. + /// + [JsonProperty("tracking_code")] + public string? TrackingCode { get; set; } + + [JsonProperty("type")] + // ReSharper disable once InconsistentNaming + private string? _type { get; set; } + + /// + /// The of the claim. + /// + [JsonIgnore] + public ClaimType? Type => _type == null ? null : ValueEnum.FromValue(_type); + + #endregion + } +#pragma warning restore CA1724 // Naming conflicts with Parameters.Claim + + /// + /// Class representing a collection of EasyPost objects. + /// + public class ClaimCollection : PaginatedCollection + { + #region JSON Properties + + /// + /// The s in the collection. + /// + [JsonProperty("claims")] + public List? Claims { get; set; } + + #endregion + + /// + /// Construct the parameter set for retrieving the next page of this paginated collection. + /// + /// The entries on the current page of this paginated collection. + /// The request size of the next page. + /// The type of parameters to construct. + /// A TParameters-type parameters set. + public override TParameters BuildNextPageParameters(IEnumerable entries, int? pageSize = null) + { + Parameters.Claim.All parameters = Filters != null ? (Parameters.Claim.All)Filters : new Parameters.Claim.All(); + + parameters.BeforeId = entries.Last().Id; + + if (pageSize != null) + { + parameters.PageSize = pageSize; + } + + return (parameters as TParameters)!; + } + } +} diff --git a/EasyPost/Models/API/ClaimHistoryEntry.cs b/EasyPost/Models/API/ClaimHistoryEntry.cs new file mode 100644 index 000000000..bb3e90fa9 --- /dev/null +++ b/EasyPost/Models/API/ClaimHistoryEntry.cs @@ -0,0 +1,33 @@ +using EasyPost._base; +using Newtonsoft.Json; + +namespace EasyPost.Models.API +{ + /// + /// Class representing an entry in a property. + /// + public class ClaimHistoryEntry : EasyPostObject + { + #region JSON Properties + + /// + /// The status of the claim at the time of this history entry. + /// + [JsonProperty("status")] + public string? Status { get; set; } + + /// + /// The reason for the status of the claim at the time of this history entry. + /// + [JsonProperty("status_details")] + public string? StatusDetails { get; set; } + + /// + /// The date and time of the history entry. + /// + [JsonProperty("status_timestamp")] + public string? StatusTimestamp { get; set; } + + #endregion + } +} diff --git a/EasyPost/Models/API/ClaimType.cs b/EasyPost/Models/API/ClaimType.cs new file mode 100644 index 000000000..764a1b718 --- /dev/null +++ b/EasyPost/Models/API/ClaimType.cs @@ -0,0 +1,34 @@ +using EasyPost.Utilities.Internal; + +namespace EasyPost.Models.API; + +/// +/// Claim type enum. +/// +public class ClaimType : ValueEnum +{ + /// + /// An enum representing a damage claim type. + /// + public static readonly ClaimType Damage = new(1, "damage"); + + /// + /// An enum representing a loss claim type. + /// + public static readonly ClaimType Loss = new(2, "loss"); + + /// + /// An enum representing a theft claim type. + /// + public static readonly ClaimType Theft = new(3, "theft"); + + /// + /// Initializes a new instance of the class. + /// + /// The internal ID of this enum. + /// The value associated with this enum. + private ClaimType(int id, object value) + : base(id, value) + { + } +} diff --git a/EasyPost/Parameters/Claim/All.cs b/EasyPost/Parameters/Claim/All.cs new file mode 100644 index 000000000..74a5414cd --- /dev/null +++ b/EasyPost/Parameters/Claim/All.cs @@ -0,0 +1,80 @@ +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using EasyPost.Utilities.Internal.Attributes; +using EasyPost.Utilities.Internal.Extensions; + +namespace EasyPost.Parameters.Claim +{ + /// + /// Parameters for API calls. + /// + [ExcludeFromCodeCoverage] + public class All : BaseAllParameters + { + #region Request Parameters + + /// + /// Only return records of a particular . + /// + [TopLevelRequestParameter(Necessity.Optional, "type")] + public Models.API.ClaimType? Type { get; set; } + + /// + /// Only return records of a particular status. + /// + [TopLevelRequestParameter(Necessity.Optional, "status")] + public string? Status { get; set; } + + /// + /// Only records created after the given ID will be included. May not be used with . + /// + [TopLevelRequestParameter(Necessity.Optional, "after_id")] + public string? AfterId { get; set; } + + /// + /// Only records created before the given ID will be included. May not be used with . + /// + [TopLevelRequestParameter(Necessity.Optional, "before_id")] + public string? BeforeId { get; set; } + + /// + /// Only return records created before this timestamp. Defaults to 1 month ago, or 1 month before a passed . + /// + [TopLevelRequestParameter(Necessity.Optional, "end_datetime")] + public string? EndDatetime { get; set; } + + /// + /// The number of records to return on each page. The maximum value is 100, and default is 20. + /// + [TopLevelRequestParameter(Necessity.Optional, "page_size")] + public int? PageSize { get; set; } + + /// + /// Only return records created after this timestamp. Defaults to 1 month ago, or 1 month before a passed . + /// + [TopLevelRequestParameter(Necessity.Optional, "start_datetime")] + public string? StartDatetime { get; set; } + + #endregion + + /// + /// Convert a dictionary into this parameter set. + /// + /// Dictionary to parse. + /// An parameters set. + public static new All FromDictionary(Dictionary? dictionary) + { + if (dictionary == null) return new All(); + return new All + { + Type = dictionary.GetOrNullEnum("type"), + Status = dictionary.GetOrNull("status"), + PageSize = dictionary.GetOrNullInt("page_size"), + BeforeId = dictionary.GetOrNull("before_id"), + AfterId = dictionary.GetOrNull("after_id"), + StartDatetime = dictionary.GetOrNull("start_datetime"), + EndDatetime = dictionary.GetOrNull("end_datetime"), + }; + } + } +} diff --git a/EasyPost/Parameters/Claim/Create.cs b/EasyPost/Parameters/Claim/Create.cs new file mode 100644 index 000000000..6df0b9c14 --- /dev/null +++ b/EasyPost/Parameters/Claim/Create.cs @@ -0,0 +1,80 @@ +using System.Diagnostics.CodeAnalysis; +using EasyPost.Utilities.Internal.Attributes; + +namespace EasyPost.Parameters.Claim +{ + /// + /// Parameters for API calls. + /// + [ExcludeFromCodeCoverage] + public class Create : BaseParameters, IClaimParameter + { + #region Request Parameters + + /// + /// The tracking code of the to file a claim for. + /// + [TopLevelRequestParameter(Necessity.Optional, "tracking_code")] + public string? TrackingCode { get; set; } + + /// + /// The type of claim to file. + /// + [TopLevelRequestParameter(Necessity.Required, "type")] + public Models.API.ClaimType? Type { get; set; } + + /// + /// The amount being claimed for reimbursement. + /// + [TopLevelRequestParameter(Necessity.Optional, "amount")] + public double? Amount { get; set; } + + /// + /// Email-based files to attach to the claim for evidence. + /// Each file must be a base64-encoded string. + /// + [TopLevelRequestParameter(Necessity.Optional, "email_evidence_attachments")] + public string[]? EmailEvidenceAttachments { get; set; } + + /// + /// Invoices to attach to the claim for evidence. + /// Each file must be a base64-encoded string. + /// + [TopLevelRequestParameter(Necessity.Optional, "invoice_attachments")] + public string[]? InvoiceAttachments { get; set; } + + /// + /// Additional supporting documents to attach to the claim. + /// Required if the is or . + /// Each file must be a base64-encoded string. + /// + [TopLevelRequestParameter(Necessity.Optional, "supporting_documentation_attachments")] + public string[]? SupportingDocumentationAttachments { get; set; } + + /// + /// Detailed description of the claim. + /// + [TopLevelRequestParameter(Necessity.Optional, "description")] + public string? Description { get; set; } + + /// + /// The name of the recipient of the reimbursement. + /// + [TopLevelRequestParameter(Necessity.Optional, "recipient_name")] + public string? RecipientName { get; set; } + + /// + /// The email address of the contact for the claim. + /// + [TopLevelRequestParameter(Necessity.Optional, "contact_email")] + public string? ContactEmail { get; set; } + + /// + /// The payment method for the claim. + /// + [TopLevelRequestParameter(Necessity.Optional, "payment_method")] + public string? PaymentMethod { get; set; } + + #endregion + } +} diff --git a/EasyPost/Parameters/IParameter.cs b/EasyPost/Parameters/IParameter.cs index 5f1886bf0..451f84900 100644 --- a/EasyPost/Parameters/IParameter.cs +++ b/EasyPost/Parameters/IParameter.cs @@ -28,6 +28,13 @@ public interface ICarrierAccountParameter : IParameter { } + /// + /// An interface marking that an instance of the implementing class can be used as an claim parameter in a Parameters object. + /// + public interface IClaimParameter : IParameter + { + } + /// /// An interface marking that an instance of the implementing class can be used as a customs info parameter in a Parameters object. /// diff --git a/EasyPost/Services/ClaimService.cs b/EasyPost/Services/ClaimService.cs new file mode 100644 index 000000000..e10f8e697 --- /dev/null +++ b/EasyPost/Services/ClaimService.cs @@ -0,0 +1,89 @@ +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using EasyPost._base; +using EasyPost.Exceptions.General; +using EasyPost.Http; +using EasyPost.Models.API; +using EasyPost.Utilities.Internal.Attributes; +using EasyPost.Utilities.Internal.Extensions; + +namespace EasyPost.Services +{ + /// + /// Class representing a set of claim-related functionality. + /// + // ReSharper disable once ClassNeverInstantiated.Global + public class ClaimService : EasyPostService + { + /// + /// Initializes a new instance of the class. + /// + /// The to tie to this service and use for API calls. + internal ClaimService(EasyPostClient client) + : base(client) + { + } + + #region CRUD Operations + + /// + /// Create an . + /// Related API documentation. + /// + /// Data to use to create the . + /// to use for the HTTP request. + /// A object. + [CrudOperations.Create] + public async Task Create(Parameters.Claim.Create parameters, CancellationToken cancellationToken = default) => await RequestAsync(Method.Post, "claims", cancellationToken, parameters.ToDictionary(), overrideApiVersion: ApiVersion.Beta); + + /// + /// List all s. + /// Related API documentation. + /// + /// Parameters to filter the list of s. + /// to use for the HTTP request. + /// A instance containing s instances. + [CrudOperations.Read] + public async Task All(Parameters.Claim.All parameters, CancellationToken cancellationToken = default) + { + ClaimCollection collection = await RequestAsync(Method.Get, "claims", cancellationToken, parameters.ToDictionary(), overrideApiVersion: ApiVersion.Beta); + collection.Filters = parameters; + return collection; + } + + /// + /// Get the next page of a paginated . + /// Related API documentation. + /// + /// The to get the next page of. + /// The size of the next page. + /// to use for the HTTP request. + /// The next page, as a instance. + /// Thrown if there is no next page to retrieve. + [CrudOperations.Read] + public async Task GetNextPage(ClaimCollection collection, int? pageSize = null, CancellationToken cancellationToken = default) => await collection.GetNextPage(async parameters => await All(parameters, cancellationToken), collection.Claims, pageSize); + + /// + /// Retrieve an . + /// Related API documentation. + /// + /// The ID of the to retrieve. + /// to use for the HTTP request. + /// A instance. + [CrudOperations.Read] + public async Task Retrieve(string id, CancellationToken cancellationToken = default) => await RequestAsync(Method.Get, $"claims/{id}", cancellationToken, overrideApiVersion: ApiVersion.Beta); + + /// + /// Refund an . + /// Related API documentation. + /// + /// The ID of the to refund. + /// to use for the HTTP request. + /// A instance. + [CrudOperations.Delete] + public async Task Cancel(string id, CancellationToken cancellationToken = default) => await RequestAsync(Method.Post, $"claims/{id}/cancel", cancellationToken, overrideApiVersion: ApiVersion.Beta); + + #endregion + } +} diff --git a/examples b/examples index b79c16ee6..bcfb3b900 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit b79c16ee6c3ea1e9da707b95c0a67157fa906519 +Subproject commit bcfb3b900550b99e9e4ded9acf4fbd35f1df349f From 956b6ced374b67ee5601eba471ef82f614445c0e Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Mon, 22 Jul 2024 14:15:29 -0600 Subject: [PATCH 2/7] - Change base class for ClaimHistoryEntry to ephemeral --- EasyPost.Tests/Fixture.cs | 1 + EasyPost/Models/API/ClaimHistoryEntry.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/EasyPost.Tests/Fixture.cs b/EasyPost.Tests/Fixture.cs index 8c982bab1..c15b6fb02 100644 --- a/EasyPost.Tests/Fixture.cs +++ b/EasyPost.Tests/Fixture.cs @@ -293,6 +293,7 @@ internal static ParameterSets.Claim.Create Create(Dictionary? fi Description = fixture.GetOrNull("description"), ContactEmail = fixture.GetOrNull("contact_email"), PaymentMethod = fixture.GetOrNull("payment_method"), + RecipientName = fixture.GetOrNull("recipient_name"), }; } diff --git a/EasyPost/Models/API/ClaimHistoryEntry.cs b/EasyPost/Models/API/ClaimHistoryEntry.cs index bb3e90fa9..c9e0e0c3b 100644 --- a/EasyPost/Models/API/ClaimHistoryEntry.cs +++ b/EasyPost/Models/API/ClaimHistoryEntry.cs @@ -6,7 +6,7 @@ namespace EasyPost.Models.API /// /// Class representing an entry in a property. /// - public class ClaimHistoryEntry : EasyPostObject + public class ClaimHistoryEntry : EphemeralEasyPostObject { #region JSON Properties From eaccbad9a2e1804e6defd0b95f1617e3ed23185c Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Mon, 22 Jul 2024 14:18:35 -0600 Subject: [PATCH 3/7] - Linting --- EasyPost/Models/API/Claim.cs | 4 ++++ EasyPost/Services/ClaimService.cs | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/EasyPost/Models/API/Claim.cs b/EasyPost/Models/API/Claim.cs index 18fefa04d..4edd0785f 100644 --- a/EasyPost/Models/API/Claim.cs +++ b/EasyPost/Models/API/Claim.cs @@ -119,13 +119,17 @@ public class Claim : EasyPostObject, Parameters.IClaimParameter [JsonProperty("type")] // ReSharper disable once InconsistentNaming +#pragma warning disable SA1300 private string? _type { get; set; } +#pragma warning restore SA1300 /// /// The of the claim. /// [JsonIgnore] +#pragma warning disable SA1101 public ClaimType? Type => _type == null ? null : ValueEnum.FromValue(_type); +#pragma warning restore SA1101 #endregion } diff --git a/EasyPost/Services/ClaimService.cs b/EasyPost/Services/ClaimService.cs index e10f8e697..2eb9c8260 100644 --- a/EasyPost/Services/ClaimService.cs +++ b/EasyPost/Services/ClaimService.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using EasyPost._base; @@ -6,7 +5,6 @@ using EasyPost.Http; using EasyPost.Models.API; using EasyPost.Utilities.Internal.Attributes; -using EasyPost.Utilities.Internal.Extensions; namespace EasyPost.Services { From be7bd0d4c3b73c130d7868365532b11a0b445d4a Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Mon, 22 Jul 2024 14:27:40 -0600 Subject: [PATCH 4/7] - Add missing cassettes - Update integration tests with new classes --- EasyPost.Integration/Basics.cs | 5 + .../claim_service_with_parameters/all.json | 49 ++++ .../claim_service_with_parameters/cancel.json | 247 +++++++++++++++++ .../claim_service_with_parameters/create.json | 200 ++++++++++++++ .../get_next_page.json | 96 +++++++ .../retrieve.json | 248 ++++++++++++++++++ 6 files changed, 845 insertions(+) create mode 100644 EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/all.json create mode 100644 EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/cancel.json create mode 100644 EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/create.json create mode 100644 EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/get_next_page.json create mode 100644 EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/retrieve.json diff --git a/EasyPost.Integration/Basics.cs b/EasyPost.Integration/Basics.cs index 33b1dddcc..ce9022224 100644 --- a/EasyPost.Integration/Basics.cs +++ b/EasyPost.Integration/Basics.cs @@ -29,6 +29,9 @@ public void UserCanLocallyConstructResponseObject() var carrierFields = new CarrierFields(); var carrierMetadata = new CarrierMetadata(); var carrierType = new CarrierType(); + var claim = new Claim(); + var claimCollection = new ClaimCollection(); + var claimHistoryEntry = new ClaimHistoryEntry(); var customsInfo = new CustomsInfo(); var customsItem = new CustomsItem(); var endShipper = new EndShipper(); @@ -109,6 +112,8 @@ public void UserCanConstructParameterSets() var carrierAccountCreateUpsParameters = new EasyPost.Parameters.CarrierAccount.CreateUps(); var carrierAccountUpdateParameters = new EasyPost.Parameters.CarrierAccount.Update(); var carrierMetadataRetrieveParameters = new EasyPost.Parameters.CarrierMetadata.Retrieve(); + var claimCreateParameters = new EasyPost.Parameters.Claim.Create(); + var claimAllParameters = new EasyPost.Parameters.Claim.All(); var customsInfoCreateParameters = new EasyPost.Parameters.CustomsInfo.Create(); var customsItemCreateParameters = new EasyPost.Parameters.CustomsItem.Create(); var endShipperCreateParameters = new EasyPost.Parameters.EndShipper.Create(); diff --git a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/all.json b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/all.json new file mode 100644 index 000000000..12e9483df --- /dev/null +++ b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/all.json @@ -0,0 +1,49 @@ +[ + { + "Duration": 338, + "RecordedAt": "2024-07-22T14:26:20.143819-06:00", + "Request": { + "Body": "", + "BodyContentType": "Text", + "ContentHeaders": {}, + "Method": "GET", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims?page_size=5" + }, + "Response": { + "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/7ff5eafcc9fb404a8aaf3ec5d35a6d72.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/420621ccbb2b4674a37d63e5848f60c7.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2825331c8ab146a18780daf1036fb36d.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:25\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:25\"}],\"id\":\"clm_097e5393d28c4bfd90b9f4af2320f4d2\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_fd138739af8d4b39950462574e158f6b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:25\",\"tracking_code\":\"9400100110368065968478\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:25\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4db5e421e38048f08bad11aeb2af7e63.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2b4ce842ed6742978f61cd05465353d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/a0442147eb1a44638511c508cd876d9c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:08:23\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:22\"}],\"id\":\"clm_097e88bf052b4b0989b2b7c0cd9490c1\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_e667a018ca9a4260bfa4dc6df8ec608d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:08:23\",\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:23\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d973cd9692024a8e836271da827d0140.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/875d9b498f53494aa5ef8ea145c7e73b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0cb4e0adf4c54f9980128f4ccca65398.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:18\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:18\"}],\"id\":\"clm_097ee5cf8f8343209ada2673d788d1ad\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_88c331b8d232466cae8410020c86a8ec\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:18\",\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:18\"}],\"has_more\":false}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "3487" + }, + "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": "9bf8e478669ec06bf4513df300237421", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.046736", + "Vary": "Origin", + "x-node": "bigweb53nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + } +] diff --git a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/cancel.json b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/cancel.json new file mode 100644 index 000000000..fa485a9d0 --- /dev/null +++ b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/cancel.json @@ -0,0 +1,247 @@ +[ + { + "Duration": 938, + "RecordedAt": "2024-07-22T14:26:24.742629-06:00", + "Request": { + "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "742" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:26:24Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:26:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_9961532d42cd41b1a6034249c3eb263f\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b017d4bb43e9429fb9591bc5804b48d5\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_ca4d3a164323478587e89d2e9612a2f9\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6dc58a91c48844a588582fcbbea289b8\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "5867" + }, + "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": "9bf8e47d669ec070f3f85f8600237949", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "Location": "/api/v2/shipments/shp_a712e1028d5747ddbfcd18f79f054a99", + "x-runtime": "0.731268", + "x-node": "bigweb39nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + }, + { + "Duration": 869, + "RecordedAt": "2024-07-22T14:26:25.639341-06:00", + "Request": { + "Body": "{\"rate\":{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\"},\"insurance\":\"\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "70" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_a712e1028d5747ddbfcd18f79f054a99/buy" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:26:24Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972758\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_9961532d42cd41b1a6034249c3eb263f\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b017d4bb43e9429fb9591bc5804b48d5\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_09d1bdfb3cce444f9b639e0ce1a32837\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26:25Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240722/e815349ffcf74e475cb3af4499e2150946.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_ca4d3a164323478587e89d2e9612a2f9\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6dc58a91c48844a588582fcbbea289b8\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_da371324a5eb4164b97e80ca711379f1\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972758\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2RhMzcxMzI0YTVlYjQxNjRiOTdlODBjYTcxMTM3OWYx\"},\"to_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:25-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:25-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "7992" + }, + "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": "9bf8e47d669ec070f3f85f8600237a2b", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.827755", + "x-node": "bigweb39nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 291, + "RecordedAt": "2024-07-22T14:26:25.963523-06:00", + "Request": { + "Body": "{\"amount\":100.0}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "16" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_a712e1028d5747ddbfcd18f79f054a99/insure" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:26:24Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972758\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_9961532d42cd41b1a6034249c3eb263f\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_b017d4bb43e9429fb9591bc5804b48d5\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_09d1bdfb3cce444f9b639e0ce1a32837\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26:25Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240722/e815349ffcf74e475cb3af4499e2150946.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_ca4d3a164323478587e89d2e9612a2f9\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6dc58a91c48844a588582fcbbea289b8\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_da371324a5eb4164b97e80ca711379f1\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972758\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:26:25Z\",\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:26:25Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T09:03:25Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrX2RhMzcxMzI0YTVlYjQxNjRiOTdlODBjYTcxMTM3OWYx\"},\"to_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:25-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:25-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "9216" + }, + "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": "9bf8e47d669ec071f3f85f8600237b1d", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.250033", + "x-node": "bigweb39nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 766, + "RecordedAt": "2024-07-22T14:26:26.75708-06:00", + "Request": { + "Body": "{\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "600" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims" + }, + "Response": { + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:26\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:26\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "1111" + }, + "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": "9bf8e47d669ec072f3f85f8600237b74", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.722440", + "Vary": "Origin", + "x-node": "bigweb35nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + }, + { + "Duration": 219, + "RecordedAt": "2024-07-22T14:26:26.99928-06:00", + "Request": { + "Body": "", + "BodyContentType": "Text", + "ContentHeaders": {}, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims/clm_097ebfa283ac497b8b31321066e03a0d/cancel" + }, + "Response": { + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:26:27\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:26:27\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:27\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "1235" + }, + "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": "9bf8e47d669ec072f3f85f8600237c56", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.181184", + "Vary": "Origin", + "x-node": "bigweb36nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + } +] diff --git a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/create.json b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/create.json new file mode 100644 index 000000000..ef33e99a0 --- /dev/null +++ b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/create.json @@ -0,0 +1,200 @@ +[ + { + "Duration": 88, + "RecordedAt": "2024-07-22T14:26:28.128789-06:00", + "Request": { + "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "742" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:26:27Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:26:28Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_65d13de5aa644533880caaf23a2237e9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_96bafc262d8c4f9fbd815042eed7bba4\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_1716ecca0ab94210a0e647ae88681152\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7914de56ecfb474385625b1e107606f1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "5867" + }, + "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": "9bf8e47c669ec073f3f6c78c00237cdb", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "Location": "/api/v2/shipments/shp_e047bf0110304e42bf2b3daa53bab2b5", + "x-runtime": "0.879878", + "x-node": "bigweb35nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + }, + { + "Duration": 114, + "RecordedAt": "2024-07-22T14:26:29.279011-06:00", + "Request": { + "Body": "{\"rate\":{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\"},\"insurance\":\"\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "70" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_e047bf0110304e42bf2b3daa53bab2b5/buy" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:26:27Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972765\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_65d13de5aa644533880caaf23a2237e9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_96bafc262d8c4f9fbd815042eed7bba4\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6d75d109d0f240859892b6887dead897\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26: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/20240722/e8945c275999eb4a7eac1d68b87953b6b2.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_1716ecca0ab94210a0e647ae88681152\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7914de56ecfb474385625b1e107606f1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_019b18a643b5417aab50c417ec063e23\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972765\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:26:29Z\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzAxOWIxOGE2NDNiNTQxN2FhYjUwYzQxN2VjMDYzZTIz\"},\"to_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:28-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:28-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "7992" + }, + "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": "9bf8e47c669ec074f3f6c78c00237e06", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.980651", + "x-node": "bigweb36nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 317, + "RecordedAt": "2024-07-22T14:26:29.636036-06:00", + "Request": { + "Body": "{\"amount\":100.0}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "16" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_e047bf0110304e42bf2b3daa53bab2b5/insure" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:26:27Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972765\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_65d13de5aa644533880caaf23a2237e9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_96bafc262d8c4f9fbd815042eed7bba4\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6d75d109d0f240859892b6887dead897\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26: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/20240722/e8945c275999eb4a7eac1d68b87953b6b2.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_1716ecca0ab94210a0e647ae88681152\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7914de56ecfb474385625b1e107606f1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_019b18a643b5417aab50c417ec063e23\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972765\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:26:29Z\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:26:29Z\",\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:26:29Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T09:03:29Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzAxOWIxOGE2NDNiNTQxN2FhYjUwYzQxN2VjMDYzZTIz\"},\"to_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:28-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:28-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "9216" + }, + "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": "9bf8e47c669ec075f3f6c78c00237f6e", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.229927", + "x-node": "bigweb38nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 897, + "RecordedAt": "2024-07-22T14:26:30.563618-06:00", + "Request": { + "Body": "{\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "600" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims" + }, + "Response": { + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "1111" + }, + "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": "9bf8e47c669ec075f3f6c78c00237fcb", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.835985", + "Vary": "Origin", + "x-node": "bigweb40nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + } +] diff --git a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/get_next_page.json b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/get_next_page.json new file mode 100644 index 000000000..71d0dd3af --- /dev/null +++ b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/get_next_page.json @@ -0,0 +1,96 @@ +[ + { + "Duration": 230, + "RecordedAt": "2024-07-22T14:26:30.818245-06:00", + "Request": { + "Body": "", + "BodyContentType": "Text", + "ContentHeaders": {}, + "Method": "GET", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims?page_size=5" + }, + "Response": { + "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:26:27\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:26:27\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:27\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e71295cfd5fa43dc9e118f87ded7ee60.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/080c7cfee17048aa9ce1e23c2cb29f37.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/34e0d1cac8094ad58841a1633737ae4c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:22\"}],\"id\":\"clm_097ecb03760c4e32ac7440ae763b6e07\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_d921b6fffe0e4bc4a355d92613375d1d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:22\",\"tracking_code\":\"9400100110368065972741\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:22\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/7ff5eafcc9fb404a8aaf3ec5d35a6d72.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/420621ccbb2b4674a37d63e5848f60c7.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2825331c8ab146a18780daf1036fb36d.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:25\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:25\"}],\"id\":\"clm_097e5393d28c4bfd90b9f4af2320f4d2\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_fd138739af8d4b39950462574e158f6b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:25\",\"tracking_code\":\"9400100110368065968478\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:25\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4db5e421e38048f08bad11aeb2af7e63.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2b4ce842ed6742978f61cd05465353d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/a0442147eb1a44638511c508cd876d9c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:08:23\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:22\"}],\"id\":\"clm_097e88bf052b4b0989b2b7c0cd9490c1\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_e667a018ca9a4260bfa4dc6df8ec608d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:08:23\",\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:23\"}],\"has_more\":true}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "5832" + }, + "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": "9bf8e47a669ec076f42d878900238117", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.052240", + "Vary": "Origin", + "x-node": "bigweb35nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 78, + "RecordedAt": "2024-07-22T14:26:30.919243-06:00", + "Request": { + "Body": "", + "BodyContentType": "Text", + "ContentHeaders": {}, + "Method": "GET", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims?before_id=clm_097e88bf052b4b0989b2b7c0cd9490c1&page_size=5" + }, + "Response": { + "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d973cd9692024a8e836271da827d0140.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/875d9b498f53494aa5ef8ea145c7e73b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0cb4e0adf4c54f9980128f4ccca65398.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:18\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:18\"}],\"id\":\"clm_097ee5cf8f8343209ada2673d788d1ad\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_88c331b8d232466cae8410020c86a8ec\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:18\",\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:18\"}],\"has_more\":false}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "1141" + }, + "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": "9bf8e47a669ec076f42d878900238137", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.034875", + "Vary": "Origin", + "x-node": "bigweb38nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + } +] diff --git a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/retrieve.json b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/retrieve.json new file mode 100644 index 000000000..c3cd2cda9 --- /dev/null +++ b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/retrieve.json @@ -0,0 +1,248 @@ +[ + { + "Duration": 990, + "RecordedAt": "2024-07-22T14:26:21.30167-06:00", + "Request": { + "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "742" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:26:20Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:26:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_cf4df72846ac487084ec744a3624fb3a\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_4937b499b93149dbb8a65558da42f38f\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_49a008f314854806889c5adac6ca3217\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8fa7f80bbb774c2fbe18b3f79cfa5c4b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f793f49c69f54be58b06935405fa259e\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "5867" + }, + "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": "a6f186b3669ec06cf452496d0022ffd9", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "Location": "/api/v2/shipments/shp_9e102dbf98a84f79b72832dfc6c01cbf", + "x-runtime": "0.787656", + "x-node": "bigweb42nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + }, + { + "Duration": 89, + "RecordedAt": "2024-07-22T14:26:22.422287-06:00", + "Request": { + "Body": "{\"rate\":{\"id\":\"rate_49a008f314854806889c5adac6ca3217\"},\"insurance\":\"\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "70" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_9e102dbf98a84f79b72832dfc6c01cbf/buy" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:26:20Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972741\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_cf4df72846ac487084ec744a3624fb3a\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_4937b499b93149dbb8a65558da42f38f\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_094ebf114f49427f8c5bf200f6a72904\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26: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/20240722/e8dec171079b6c419a9c3c47b80338bf56.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_49a008f314854806889c5adac6ca3217\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8fa7f80bbb774c2fbe18b3f79cfa5c4b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f793f49c69f54be58b06935405fa259e\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_49a008f314854806889c5adac6ca3217\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:22Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_e6b6879be71940b1b24c219b6e598893\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972741\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:26:22Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2U2YjY4NzliZTcxOTQwYjFiMjRjMjE5YjZlNTk4ODkz\"},\"to_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "7992" + }, + "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": "a6f186b3669ec06df452496d002300ad", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.951000", + "x-node": "bigweb41nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 270, + "RecordedAt": "2024-07-22T14:26:22.729662-06:00", + "Request": { + "Body": "{\"amount\":100.0}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "16" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/shipments/shp_9e102dbf98a84f79b72832dfc6c01cbf/insure" + }, + "Response": { + "Body": "{\"created_at\":\"2024-07-22T20:26:20Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972741\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_cf4df72846ac487084ec744a3624fb3a\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_4937b499b93149dbb8a65558da42f38f\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_094ebf114f49427f8c5bf200f6a72904\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26: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/20240722/e8dec171079b6c419a9c3c47b80338bf56.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_49a008f314854806889c5adac6ca3217\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8fa7f80bbb774c2fbe18b3f79cfa5c4b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f793f49c69f54be58b06935405fa259e\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_49a008f314854806889c5adac6ca3217\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:22Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_e6b6879be71940b1b24c219b6e598893\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972741\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:26:22Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:26:22Z\",\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:26:22Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T09:03:22Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrX2U2YjY4NzliZTcxOTQwYjFiMjRjMjE5YjZlNTk4ODkz\"},\"to_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"object\":\"Shipment\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "9216" + }, + "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": "a6f186b3669ec06ef452496d002301bb", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.230644", + "x-node": "bigweb32nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-canary": "direct", + "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 884, + "RecordedAt": "2024-07-22T14:26:23.653266-06:00", + "Request": { + "Body": "{\"tracking_code\":\"9400100110368065972741\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "600" + }, + "Method": "POST", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims" + }, + "Response": { + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e71295cfd5fa43dc9e118f87ded7ee60.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/080c7cfee17048aa9ce1e23c2cb29f37.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/34e0d1cac8094ad58841a1633737ae4c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:22\"}],\"id\":\"clm_097ecb03760c4e32ac7440ae763b6e07\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_d921b6fffe0e4bc4a355d92613375d1d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:22\",\"tracking_code\":\"9400100110368065972741\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:22\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "1111" + }, + "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": "a6f186b3669ec06ef452496d002301f3", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.843407", + "Vary": "Origin", + "x-node": "bigweb39nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 201, + "Message": "Created" + } + } + }, + { + "Duration": 77, + "RecordedAt": "2024-07-22T14:26:23.759035-06:00", + "Request": { + "Body": "", + "BodyContentType": "Text", + "ContentHeaders": {}, + "Method": "GET", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/beta/claims/clm_097ecb03760c4e32ac7440ae763b6e07" + }, + "Response": { + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e71295cfd5fa43dc9e118f87ded7ee60.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/080c7cfee17048aa9ce1e23c2cb29f37.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/34e0d1cac8094ad58841a1633737ae4c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:22\"}],\"id\":\"clm_097ecb03760c4e32ac7440ae763b6e07\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_d921b6fffe0e4bc4a355d92613375d1d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:22\",\"tracking_code\":\"9400100110368065972741\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:22\"}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "1111" + }, + "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": "a6f186b3669ec06ff452496d002302b9", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.036833", + "Vary": "Origin", + "x-node": "bigweb35nuq", + "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-backend": "easypost", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + } +] From 5ba9e490909df0567417b88ecdae397d102c2002 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Mon, 22 Jul 2024 14:39:02 -0600 Subject: [PATCH 5/7] - Use enum for claim payment method --- EasyPost.Tests/Fixture.cs | 2 +- .../WithParameters/ClaimServiceTest.cs | 1 + EasyPost/Models/API/Claim.cs | 14 +++++++-- EasyPost/Models/API/ClaimPaymentMethod.cs | 29 +++++++++++++++++++ EasyPost/Parameters/Claim/Create.cs | 5 ++-- 5 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 EasyPost/Models/API/ClaimPaymentMethod.cs diff --git a/EasyPost.Tests/Fixture.cs b/EasyPost.Tests/Fixture.cs index c15b6fb02..4692fadf8 100644 --- a/EasyPost.Tests/Fixture.cs +++ b/EasyPost.Tests/Fixture.cs @@ -292,7 +292,7 @@ internal static ParameterSets.Claim.Create Create(Dictionary? fi SupportingDocumentationAttachments = fixture.GetOrNull("supporting_documentation_attachments"), Description = fixture.GetOrNull("description"), ContactEmail = fixture.GetOrNull("contact_email"), - PaymentMethod = fixture.GetOrNull("payment_method"), + PaymentMethod = fixture.GetOrNullEnum("payment_method"), RecipientName = fixture.GetOrNull("recipient_name"), }; } diff --git a/EasyPost.Tests/ServicesTests/WithParameters/ClaimServiceTest.cs b/EasyPost.Tests/ServicesTests/WithParameters/ClaimServiceTest.cs index 595cba528..5660f5b0f 100644 --- a/EasyPost.Tests/ServicesTests/WithParameters/ClaimServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/WithParameters/ClaimServiceTest.cs @@ -53,6 +53,7 @@ public async Task TestCreate() Assert.Equal(claimParameters.TrackingCode, claim.TrackingCode); Assert.Equal(claimParameters.Amount, claim.RequestedAmount); Assert.Equal(claimParameters.Type, claim.Type); + Assert.Equal(claim.PaymentMethod, ClaimPaymentMethod.EasyPostWallet); } [Fact] diff --git a/EasyPost/Models/API/Claim.cs b/EasyPost/Models/API/Claim.cs index 4edd0785f..bd44d89cc 100644 --- a/EasyPost/Models/API/Claim.cs +++ b/EasyPost/Models/API/Claim.cs @@ -63,11 +63,19 @@ public class Claim : EasyPostObject, Parameters.IClaimParameter [JsonProperty("insurance_id")] public string? InsuranceId { get; set; } + // ReSharper disable once InconsistentNaming +#pragma warning disable SA1300 + [JsonProperty("payment_method")] + private string? _paymentMethod { get; set; } +#pragma warning restore SA1300 + /// - /// The ID of the claim. + /// The of the claim. /// - [JsonProperty("payment_method")] - public string? PaymentMethod { get; set; } +#pragma warning disable SA1101 + [JsonIgnore] + public ClaimPaymentMethod? PaymentMethod => _paymentMethod == null ? null : ValueEnum.FromValue(_paymentMethod); +#pragma warning disable SA1101 /// /// The name of the recipient of the reimbursement. diff --git a/EasyPost/Models/API/ClaimPaymentMethod.cs b/EasyPost/Models/API/ClaimPaymentMethod.cs new file mode 100644 index 000000000..17400d3d0 --- /dev/null +++ b/EasyPost/Models/API/ClaimPaymentMethod.cs @@ -0,0 +1,29 @@ +using EasyPost.Utilities.Internal; + +namespace EasyPost.Models.API; + +/// +/// Claim payment method enum. +/// +public class ClaimPaymentMethod : ValueEnum +{ + /// + /// An enum representing paying a claim reimbursement via a mailed check + /// + public static readonly ClaimPaymentMethod MailedCheck = new(1, "mailed_check"); + + /// + /// An enum representing paying a claim reimbursement via a wallet refund. + /// + public static readonly ClaimPaymentMethod EasyPostWallet = new(2, "easypost_wallet"); + + /// + /// Initializes a new instance of the class. + /// + /// The internal ID of this enum. + /// The value associated with this enum. + private ClaimPaymentMethod(int id, object value) + : base(id, value) + { + } +} diff --git a/EasyPost/Parameters/Claim/Create.cs b/EasyPost/Parameters/Claim/Create.cs index 6df0b9c14..fecf83d72 100644 --- a/EasyPost/Parameters/Claim/Create.cs +++ b/EasyPost/Parameters/Claim/Create.cs @@ -1,4 +1,5 @@ using System.Diagnostics.CodeAnalysis; +using EasyPost.Models.API; using EasyPost.Utilities.Internal.Attributes; namespace EasyPost.Parameters.Claim @@ -70,10 +71,10 @@ public class Create : BaseParameters, IClaimParameter public string? ContactEmail { get; set; } /// - /// The payment method for the claim. + /// The for the claim reimbursement. /// [TopLevelRequestParameter(Necessity.Optional, "payment_method")] - public string? PaymentMethod { get; set; } + public ClaimPaymentMethod? PaymentMethod { get; set; } #endregion } From 6b93a04957fac93172039df269698060335723d0 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Tue, 23 Jul 2024 11:57:00 -0600 Subject: [PATCH 6/7] - Missing period, for the linter --- EasyPost/Models/API/ClaimPaymentMethod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EasyPost/Models/API/ClaimPaymentMethod.cs b/EasyPost/Models/API/ClaimPaymentMethod.cs index 17400d3d0..53a8b63a9 100644 --- a/EasyPost/Models/API/ClaimPaymentMethod.cs +++ b/EasyPost/Models/API/ClaimPaymentMethod.cs @@ -8,7 +8,7 @@ namespace EasyPost.Models.API; public class ClaimPaymentMethod : ValueEnum { /// - /// An enum representing paying a claim reimbursement via a mailed check + /// An enum representing paying a claim reimbursement via a mailed check. /// public static readonly ClaimPaymentMethod MailedCheck = new(1, "mailed_check"); From 2d0aa0ee33bbced66dea0831ebd414761f055c0c Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Tue, 23 Jul 2024 12:19:37 -0600 Subject: [PATCH 7/7] - Promote claims function endpoints from beta to v2 --- .../claim_service_with_parameters/all.json | 22 ++--- .../claim_service_with_parameters/cancel.json | 97 +++++++++---------- .../claim_service_with_parameters/create.json | 75 +++++++------- .../get_next_page.json | 67 ++++++++++--- .../retrieve.json | 94 +++++++++--------- .../claim_service_with_parameters/all.json | 21 ++-- .../claim_service_with_parameters/cancel.json | 90 +++++++++-------- .../claim_service_with_parameters/create.json | 71 +++++++------- .../get_next_page.json | 38 ++++---- .../retrieve.json | 97 +++++++++---------- EasyPost/Services/ClaimService.cs | 8 +- 11 files changed, 354 insertions(+), 326 deletions(-) diff --git a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/all.json b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/all.json index 36213682f..6b3647f07 100644 --- a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/all.json +++ b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 476, - "RecordedAt": "2024-07-22T14:08:16.11305-06:00", + "Duration": 852, + "RecordedAt": "2024-07-23T12:18:07.650329-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -11,15 +11,15 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims?page_size=5" + "Uri": "https://api.easypost.com/v2/claims?page_size=5" }, "Response": { - "Body": "{\"claims\":[],\"has_more\":false}", + "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:26:27\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:26:27\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:27\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:26:27\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:26:27\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:27\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e71295cfd5fa43dc9e118f87ded7ee60.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/080c7cfee17048aa9ce1e23c2cb29f37.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/34e0d1cac8094ad58841a1633737ae4c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:22\"}],\"id\":\"clm_097ecb03760c4e32ac7440ae763b6e07\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_d921b6fffe0e4bc4a355d92613375d1d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:22\",\"tracking_code\":\"9400100110368065972741\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:22\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "31" + "Content-Length": "5832" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -29,16 +29,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47b669ebc30f0217939001ed46b", + "x-ep-request-uuid": "483169f7669ff3dff022173e0000e7f6", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.033753", - "Vary": "Origin", - "x-node": "bigweb43nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.051573", + "x-node": "bigweb40nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/cancel.json b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/cancel.json index 376bb932a..c31b52b8f 100644 --- a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/cancel.json +++ b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/cancel.json @@ -1,7 +1,7 @@ [ { - "Duration": 85, - "RecordedAt": "2024-07-22T14:08:20.952734-06:00", + "Duration": 122, + "RecordedAt": "2024-07-23T12:18:12.134258-06:00", "Request": { "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", "BodyContentType": "Json", @@ -17,7 +17,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:08:20Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:08:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b3131fbfa0f14863826fb6fe57614c83\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_408e268cf6054cd4acc02e3a485dbeef\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_89181b8cd9f040828e070f7f485f8b99\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_810018637d094223a76b55a984075f4c\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:11Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-23T18:18:12Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_c43cc64113874e628716eddda9166a52\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:11Z\",\"updated_at\":\"2024-07-23T18:18:11Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_eb547ef4491f11efadb3ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_274cb456746b4db989fe3e2dc7fcb067\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:11Z\",\"updated_at\":\"2024-07-23T18:18:11Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_69c9887786154777b5249dc9d27fbef3\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a96fb6d6a3e541cc887f310a8288d514\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ac4f6a9ff1a74524ac38174896b829d4\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_eb51c81e491f11efa86bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:11-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_eb547ef4491f11efadb3ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_eb51c81e491f11efa86bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:11-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -32,15 +32,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "a6f186b4669ebc34f3f62de1001e8415", + "x-ep-request-uuid": "98f5faeb669ff3e3f440c2580000e2bf", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_cf1f404e9c3b496cbae3335f2a678b80", - "x-runtime": "0.896544", - "x-node": "bigweb34nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "Location": "/api/v2/shipments/shp_9970af4c98fa4eb1a8f80d44be3a3135", + "x-runtime": "0.946377", + "x-node": "bigweb41nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -50,10 +50,10 @@ } }, { - "Duration": 13, - "RecordedAt": "2024-07-22T14:08:21.97925-06:00", + "Duration": 958, + "RecordedAt": "2024-07-23T12:18:13.103437-06:00", "Request": { - "Body": "{\"rate\":{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\"},\"insurance\":\"\"}", + "Body": "{\"rate\":{\"id\":\"rate_a96fb6d6a3e541cc887f310a8288d514\"},\"insurance\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -64,10 +64,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_cf1f404e9c3b496cbae3335f2a678b80/buy" + "Uri": "https://api.easypost.com/v2/shipments/shp_9970af4c98fa4eb1a8f80d44be3a3135/buy" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:08:20Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968454\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b3131fbfa0f14863826fb6fe57614c83\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_408e268cf6054cd4acc02e3a485dbeef\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6c9f5f1f102c42bab19f84b18ef9b9e2\",\"created_at\":\"2024-07-22T20:08:21Z\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08: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/20240722/e8ca0ae27c0b004c53beba2e9a8b08a2ce.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_89181b8cd9f040828e070f7f485f8b99\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_810018637d094223a76b55a984075f4c\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:21Z\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ebed796d141f476b92376b3e251b9f37\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968454\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:08:21Z\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2ViZWQ3OTZkMTQxZjQ3NmI5MjM3NmIzZTI1MWI5ZjM3\"},\"to_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:11Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369144\",\"updated_at\":\"2024-07-23T18:18:13Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_c43cc64113874e628716eddda9166a52\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:11Z\",\"updated_at\":\"2024-07-23T18:18:11Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_eb547ef4491f11efadb3ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_274cb456746b4db989fe3e2dc7fcb067\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:11Z\",\"updated_at\":\"2024-07-23T18:18:11Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_15bed2b141eb4beda3aef65df3b32500\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18: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/20240723/e8b1779ab2c04e42abbfcc2fbca5a6d82b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_69c9887786154777b5249dc9d27fbef3\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a96fb6d6a3e541cc887f310a8288d514\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ac4f6a9ff1a74524ac38174896b829d4\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a96fb6d6a3e541cc887f310a8288d514\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ffa3060c89c4436786cccdb438c1459c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369144\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-23T18:18:13Z\",\"updated_at\":\"2024-07-23T18:18:13Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2ZmYTMwNjBjODljNDQzNjc4NmNjY2RiNDM4YzE0NTlj\"},\"to_address\":{\"id\":\"adr_eb51c81e491f11efa86bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:12-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_eb547ef4491f11efadb3ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_eb51c81e491f11efa86bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:12-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,14 +82,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "a6f186b4669ebc35f3f62de1001e84eb", + "x-ep-request-uuid": "98f5faeb669ff3e4f440c2580000e40b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.941177", - "x-node": "bigweb33nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.918472", + "x-node": "bigweb40nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -99,8 +99,8 @@ } }, { - "Duration": 395, - "RecordedAt": "2024-07-22T14:08:22.387817-06:00", + "Duration": 317, + "RecordedAt": "2024-07-23T12:18:13.435331-06:00", "Request": { "Body": "{\"amount\":100.0}", "BodyContentType": "Json", @@ -113,10 +113,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_cf1f404e9c3b496cbae3335f2a678b80/insure" + "Uri": "https://api.easypost.com/v2/shipments/shp_9970af4c98fa4eb1a8f80d44be3a3135/insure" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:08:20Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968454\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b3131fbfa0f14863826fb6fe57614c83\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_408e268cf6054cd4acc02e3a485dbeef\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6c9f5f1f102c42bab19f84b18ef9b9e2\",\"created_at\":\"2024-07-22T20:08:21Z\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08: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/20240722/e8ca0ae27c0b004c53beba2e9a8b08a2ce.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_89181b8cd9f040828e070f7f485f8b99\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_810018637d094223a76b55a984075f4c\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:20Z\",\"updated_at\":\"2024-07-22T20:08:20Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7eda27f8c47a47d7b51fbeed52e1393a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:21Z\",\"updated_at\":\"2024-07-22T20:08:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ebed796d141f476b92376b3e251b9f37\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968454\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:08:22Z\",\"updated_at\":\"2024-07-22T20:08:22Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:08:22Z\",\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:08:22Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T08:45:22Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrX2ViZWQ3OTZkMTQxZjQ3NmI5MjM3NmIzZTI1MWI5ZjM3\"},\"to_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_241fc64d486611efbea1ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_241de201486611ef862bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:20-06:00\",\"updated_at\":\"2024-07-22T14:08:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:11Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369144\",\"updated_at\":\"2024-07-23T18:18:13Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_c43cc64113874e628716eddda9166a52\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:11Z\",\"updated_at\":\"2024-07-23T18:18:11Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_eb547ef4491f11efadb3ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_274cb456746b4db989fe3e2dc7fcb067\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:11Z\",\"updated_at\":\"2024-07-23T18:18:11Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_15bed2b141eb4beda3aef65df3b32500\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18: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/20240723/e8b1779ab2c04e42abbfcc2fbca5a6d82b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_69c9887786154777b5249dc9d27fbef3\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a96fb6d6a3e541cc887f310a8288d514\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ac4f6a9ff1a74524ac38174896b829d4\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a96fb6d6a3e541cc887f310a8288d514\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:12Z\",\"updated_at\":\"2024-07-23T18:18:12Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ffa3060c89c4436786cccdb438c1459c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369144\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-23T18:18:13Z\",\"updated_at\":\"2024-07-23T18:18:13Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-23T18:18:13Z\",\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T18:18:13Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-24T06:55:13Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrX2ZmYTMwNjBjODljNDQzNjc4NmNjY2RiNDM4YzE0NTlj\"},\"to_address\":{\"id\":\"adr_eb51c81e491f11efa86bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:12-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_eb547ef4491f11efadb3ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:11-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_eb51c81e491f11efa86bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:11-06:00\",\"updated_at\":\"2024-07-23T12:18:12-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -131,15 +131,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "a6f186b4669ebc36f3f62de1001e85eb", + "x-ep-request-uuid": "98f5faeb669ff3e5f440c2580000e554", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.271560", - "x-node": "bigweb32nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.274111", + "x-node": "bigweb53nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -149,10 +148,10 @@ } }, { - "Duration": 792, - "RecordedAt": "2024-07-22T14:08:23.197421-06:00", + "Duration": 898, + "RecordedAt": "2024-07-23T12:18:14.344992-06:00", "Request": { - "Body": "{\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "Body": "{\"tracking_code\":\"9400100110368066369144\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -163,10 +162,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims" + "Uri": "https://api.easypost.com/v2/claims" }, "Response": { - "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4db5e421e38048f08bad11aeb2af7e63.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2b4ce842ed6742978f61cd05465353d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/a0442147eb1a44638511c508cd876d9c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:22\"}],\"id\":\"clm_097e88bf052b4b0989b2b7c0cd9490c1\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_e667a018ca9a4260bfa4dc6df8ec608d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:22\",\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:22\"}", + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/97d389946a7c4e2d88ed7905028876e3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/12fcb33d02c943d28d1b7a91bd26c2b0.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f87f89a9352a4b06931a15b4951ccece.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:13\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:13\"}],\"id\":\"clm_097edfc62fa04b06a45f3c78b51e8646\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_a1bf9e27997c46bba4634decd0453827\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:13\",\"tracking_code\":\"9400100110368066369144\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:13\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -181,15 +180,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "a6f186b4669ebc36f3f62de1001e8672", + "x-ep-request-uuid": "98f5faeb669ff3e5f440c2580000e5ab", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.748075", - "Vary": "Origin", - "x-node": "bigweb40nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.854894", + "x-node": "bigweb33nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -199,8 +197,8 @@ } }, { - "Duration": 81, - "RecordedAt": "2024-07-22T14:08:23.289727-06:00", + "Duration": 86, + "RecordedAt": "2024-07-23T12:18:14.443685-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -210,10 +208,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims/clm_097e88bf052b4b0989b2b7c0cd9490c1/cancel" + "Uri": "https://api.easypost.com/v2/claims/clm_097edfc62fa04b06a45f3c78b51e8646/cancel" }, "Response": { - "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4db5e421e38048f08bad11aeb2af7e63.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2b4ce842ed6742978f61cd05465353d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/a0442147eb1a44638511c508cd876d9c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:08:23\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:22\"}],\"id\":\"clm_097e88bf052b4b0989b2b7c0cd9490c1\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_e667a018ca9a4260bfa4dc6df8ec608d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:08:23\",\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:23\"}", + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/97d389946a7c4e2d88ed7905028876e3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/12fcb33d02c943d28d1b7a91bd26c2b0.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f87f89a9352a4b06931a15b4951ccece.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:13\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-23T18:18:14\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:13\"}],\"id\":\"clm_097edfc62fa04b06a45f3c78b51e8646\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_a1bf9e27997c46bba4634decd0453827\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-23T18:18:14\",\"tracking_code\":\"9400100110368066369144\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:14\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -228,15 +226,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "a6f186b4669ebc37f3f62de1001e875f", + "x-ep-request-uuid": "98f5faeb669ff3e6f440c2580000e6b8", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.042987", - "Vary": "Origin", - "x-node": "bigweb33nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.044088", + "x-node": "bigweb41nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/create.json b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/create.json index 1ea0fb5c3..224908f8b 100644 --- a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/create.json +++ b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 167, - "RecordedAt": "2024-07-22T14:08:24.480793-06:00", + "Duration": 11, + "RecordedAt": "2024-07-23T12:18:15.477961-06:00", "Request": { "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", "BodyContentType": "Json", @@ -17,7 +17,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:08:23Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:08:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_a0f52cd4eabf4b1e90ad3f55ed44beed\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6bab2204d61480ab3a5fef8226e78a3\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_9cafa76a2b814fa8b6a5d3157ef98c1f\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ec0d4e2ccc8e43ac94b3b1c43b34f437\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08: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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08: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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:14Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-23T18:18:15Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b414f7ca0d3d4853b913e9880fc9641b\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:14Z\",\"updated_at\":\"2024-07-23T18:18:14Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_ed62c532491f11ef9ed6ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:14-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f328af0b7cd441c29d1b60af2c77b02c\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:14Z\",\"updated_at\":\"2024-07-23T18:18:14Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_07049c216d3c4c73a60e4e8ff447850f\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:15Z\",\"updated_at\":\"2024-07-23T18:18:15Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c4072f02e4574feaaff0fa66fde9296d\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:15Z\",\"updated_at\":\"2024-07-23T18:18:15Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_af84b9d970c64ac9ba409f1ab9683f5a\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:15Z\",\"updated_at\":\"2024-07-23T18:18:15Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_ed60d8bd491f11efa9daac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:14-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_ed62c532491f11ef9ed6ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:14-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_ed60d8bd491f11efa9daac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:14-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -32,15 +32,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e477669ebc37f44fa154001edc0d", + "x-ep-request-uuid": "483169fb669ff3e6f3f8df6f0000f122", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_42e204289d2b47c5bbb320acb0ed40e3", - "x-runtime": "0.979680", - "x-node": "bigweb33nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "Location": "/api/v2/shipments/shp_2cd467cc786442ed924cf25e1315ff4b", + "x-runtime": "0.826602", + "x-node": "bigweb42nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -50,10 +50,10 @@ } }, { - "Duration": 957, - "RecordedAt": "2024-07-22T14:08:25.451232-06:00", + "Duration": 848, + "RecordedAt": "2024-07-23T12:18:16.341354-06:00", "Request": { - "Body": "{\"rate\":{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\"},\"insurance\":\"\"}", + "Body": "{\"rate\":{\"id\":\"rate_af84b9d970c64ac9ba409f1ab9683f5a\"},\"insurance\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -64,10 +64,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_42e204289d2b47c5bbb320acb0ed40e3/buy" + "Uri": "https://api.easypost.com/v2/shipments/shp_2cd467cc786442ed924cf25e1315ff4b/buy" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:08:23Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968478\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_a0f52cd4eabf4b1e90ad3f55ed44beed\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6bab2204d61480ab3a5fef8226e78a3\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f0137a672b31454bbbc60666c7dafb1c\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08:25Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240722/e855150600f62b468ead8c087a1d3cd5eb.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9cafa76a2b814fa8b6a5d3157ef98c1f\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ec0d4e2ccc8e43ac94b3b1c43b34f437\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_6615ebad3a83423490a342f60a56cada\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968478\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzY2MTVlYmFkM2E4MzQyMzQ5MGEzNDJmNjBhNTZjYWRh\"},\"to_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:24-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:24-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:14Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369199\",\"updated_at\":\"2024-07-23T18:18:16Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b414f7ca0d3d4853b913e9880fc9641b\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:14Z\",\"updated_at\":\"2024-07-23T18:18:14Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_ed62c532491f11ef9ed6ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:14-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f328af0b7cd441c29d1b60af2c77b02c\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:14Z\",\"updated_at\":\"2024-07-23T18:18:14Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_c0d9783c1ed64423b2539dc2ef720bb9\",\"created_at\":\"2024-07-23T18:18:16Z\",\"updated_at\":\"2024-07-23T18:18:16Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18:16Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240723/e816af3bd4c1814c16b659efaf84a9890a.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_07049c216d3c4c73a60e4e8ff447850f\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:15Z\",\"updated_at\":\"2024-07-23T18:18:15Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c4072f02e4574feaaff0fa66fde9296d\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:15Z\",\"updated_at\":\"2024-07-23T18:18:15Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_af84b9d970c64ac9ba409f1ab9683f5a\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:15Z\",\"updated_at\":\"2024-07-23T18:18:15Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_af84b9d970c64ac9ba409f1ab9683f5a\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:16Z\",\"updated_at\":\"2024-07-23T18:18:16Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_0cc742fd72354fdd8b8c338e0fc85596\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369199\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-23T18:18:16Z\",\"updated_at\":\"2024-07-23T18:18:16Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzBjYzc0MmZkNzIzNTRmZGQ4YjhjMzM4ZTBmYzg1NTk2\"},\"to_address\":{\"id\":\"adr_ed60d8bd491f11efa9daac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:15-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_ed62c532491f11ef9ed6ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:14-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_ed60d8bd491f11efa9daac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:15-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,14 +82,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e477669ebc38f44fa154001edd2b", + "x-ep-request-uuid": "483169fb669ff3e7f3f8df6f0000f248", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.917240", - "x-node": "bigweb42nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.810987", + "x-node": "bigweb39nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -99,8 +99,8 @@ } }, { - "Duration": 325, - "RecordedAt": "2024-07-22T14:08:25.790557-06:00", + "Duration": 303, + "RecordedAt": "2024-07-23T12:18:16.656647-06:00", "Request": { "Body": "{\"amount\":100.0}", "BodyContentType": "Json", @@ -113,10 +113,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_42e204289d2b47c5bbb320acb0ed40e3/insure" + "Uri": "https://api.easypost.com/v2/shipments/shp_2cd467cc786442ed924cf25e1315ff4b/insure" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:08:23Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968478\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_a0f52cd4eabf4b1e90ad3f55ed44beed\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6bab2204d61480ab3a5fef8226e78a3\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:23Z\",\"updated_at\":\"2024-07-22T20:08:23Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f0137a672b31454bbbc60666c7dafb1c\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08:25Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240722/e855150600f62b468ead8c087a1d3cd5eb.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9cafa76a2b814fa8b6a5d3157ef98c1f\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ec0d4e2ccc8e43ac94b3b1c43b34f437\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:24Z\",\"updated_at\":\"2024-07-22T20:08:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_55e541f3bc2e45d28fdb03800b791d83\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_6615ebad3a83423490a342f60a56cada\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968478\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:08:25Z\",\"updated_at\":\"2024-07-22T20:08:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:08:25Z\",\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:08:25Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T08:45:25Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzY2MTVlYmFkM2E4MzQyMzQ5MGEzNDJmNjBhNTZjYWRh\"},\"to_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:24-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_263069eb486611ef874fac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:23-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_262d04aa486611ef93b6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:23-06:00\",\"updated_at\":\"2024-07-22T14:08:24-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:14Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369199\",\"updated_at\":\"2024-07-23T18:18:16Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_b414f7ca0d3d4853b913e9880fc9641b\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:14Z\",\"updated_at\":\"2024-07-23T18:18:14Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_ed62c532491f11ef9ed6ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:14-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_f328af0b7cd441c29d1b60af2c77b02c\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:14Z\",\"updated_at\":\"2024-07-23T18:18:14Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_c0d9783c1ed64423b2539dc2ef720bb9\",\"created_at\":\"2024-07-23T18:18:16Z\",\"updated_at\":\"2024-07-23T18:18:16Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18:16Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240723/e816af3bd4c1814c16b659efaf84a9890a.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_07049c216d3c4c73a60e4e8ff447850f\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:15Z\",\"updated_at\":\"2024-07-23T18:18:15Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c4072f02e4574feaaff0fa66fde9296d\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:15Z\",\"updated_at\":\"2024-07-23T18:18:15Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_af84b9d970c64ac9ba409f1ab9683f5a\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:15Z\",\"updated_at\":\"2024-07-23T18:18:15Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_af84b9d970c64ac9ba409f1ab9683f5a\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:16Z\",\"updated_at\":\"2024-07-23T18:18:16Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_0cc742fd72354fdd8b8c338e0fc85596\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369199\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-23T18:18:16Z\",\"updated_at\":\"2024-07-23T18:18:16Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-23T18:18:16Z\",\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T18:18:16Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-24T06:55:16Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzBjYzc0MmZkNzIzNTRmZGQ4YjhjMzM4ZTBmYzg1NTk2\"},\"to_address\":{\"id\":\"adr_ed60d8bd491f11efa9daac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:15-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_ed62c532491f11ef9ed6ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:14-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_ed60d8bd491f11efa9daac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:14-06:00\",\"updated_at\":\"2024-07-23T12:18:15-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -131,14 +131,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e477669ebc39f44fa154001ede3c", + "x-ep-request-uuid": "483169fb669ff3e8f3f8df6f0000f364", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.285263", + "x-runtime": "0.267350", "x-node": "bigweb42nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -148,10 +148,10 @@ } }, { - "Duration": 892, - "RecordedAt": "2024-07-22T14:08:26.69415-06:00", + "Duration": 927, + "RecordedAt": "2024-07-23T12:18:17.596143-06:00", "Request": { - "Body": "{\"tracking_code\":\"9400100110368065968478\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "Body": "{\"tracking_code\":\"9400100110368066369199\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -162,10 +162,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims" + "Uri": "https://api.easypost.com/v2/claims" }, "Response": { - "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/7ff5eafcc9fb404a8aaf3ec5d35a6d72.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/420621ccbb2b4674a37d63e5848f60c7.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2825331c8ab146a18780daf1036fb36d.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:25\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:25\"}],\"id\":\"clm_097e5393d28c4bfd90b9f4af2320f4d2\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_fd138739af8d4b39950462574e158f6b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:25\",\"tracking_code\":\"9400100110368065968478\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:25\"}", + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2fc58d9b15e04a45b9ca97f1c0670afe.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/ed4e49a126904c80a10152d38fe4cc90.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/3a1f3d84bd084732ac20f14b1e6cba60.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:16\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:16\"}],\"id\":\"clm_097e5a8ec27440ce9abf7aa93867bfa8\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_9930cbb49f7043038f7f5f641fc0350b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:16\",\"tracking_code\":\"9400100110368066369199\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:16\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -180,15 +180,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e477669ebc39f44fa154001ede9a", + "x-ep-request-uuid": "483169fb669ff3e8f3f8df6f0000f3cd", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.849375", - "Vary": "Origin", - "x-node": "bigweb40nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.883585", + "x-node": "bigweb39nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/get_next_page.json b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/get_next_page.json index a320ee2e5..0cc7b58ce 100644 --- a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/get_next_page.json +++ b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/get_next_page.json @@ -1,7 +1,7 @@ [ { - "Duration": 219, - "RecordedAt": "2024-07-22T14:08:26.936701-06:00", + "Duration": 233, + "RecordedAt": "2024-07-23T12:18:17.847877-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -11,15 +11,15 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims?page_size=5" + "Uri": "https://api.easypost.com/v2/claims?page_size=5" }, "Response": { - "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/7ff5eafcc9fb404a8aaf3ec5d35a6d72.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/420621ccbb2b4674a37d63e5848f60c7.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2825331c8ab146a18780daf1036fb36d.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:25\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:25\"}],\"id\":\"clm_097e5393d28c4bfd90b9f4af2320f4d2\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_fd138739af8d4b39950462574e158f6b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:25\",\"tracking_code\":\"9400100110368065968478\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:25\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4db5e421e38048f08bad11aeb2af7e63.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2b4ce842ed6742978f61cd05465353d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/a0442147eb1a44638511c508cd876d9c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:08:23\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:22\"}],\"id\":\"clm_097e88bf052b4b0989b2b7c0cd9490c1\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_e667a018ca9a4260bfa4dc6df8ec608d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:08:23\",\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:23\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d973cd9692024a8e836271da827d0140.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/875d9b498f53494aa5ef8ea145c7e73b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0cb4e0adf4c54f9980128f4ccca65398.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:18\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:18\"}],\"id\":\"clm_097ee5cf8f8343209ada2673d788d1ad\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_88c331b8d232466cae8410020c86a8ec\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:18\",\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:18\"}],\"has_more\":false}", + "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2fc58d9b15e04a45b9ca97f1c0670afe.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/ed4e49a126904c80a10152d38fe4cc90.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/3a1f3d84bd084732ac20f14b1e6cba60.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:16\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:16\"}],\"id\":\"clm_097e5a8ec27440ce9abf7aa93867bfa8\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_9930cbb49f7043038f7f5f641fc0350b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:16\",\"tracking_code\":\"9400100110368066369199\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:16\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/97d389946a7c4e2d88ed7905028876e3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/12fcb33d02c943d28d1b7a91bd26c2b0.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f87f89a9352a4b06931a15b4951ccece.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:13\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-23T18:18:14\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:13\"}],\"id\":\"clm_097edfc62fa04b06a45f3c78b51e8646\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_a1bf9e27997c46bba4634decd0453827\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-23T18:18:14\",\"tracking_code\":\"9400100110368066369144\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:14\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9ad93c64d93e441d979178430ba8db1b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f194d38988494fac92280b35180bc460.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4e76a70eeb0942a5ad5dd762574ee42e.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:10\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:10\"}],\"id\":\"clm_097e971e153c44689fe7aeec5776eaf9\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_bca90fdabbb248ac93a527d47cf677cb\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:10\",\"tracking_code\":\"9400100110368066369090\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:10\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "3487" + "Content-Length": "5708" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -29,15 +29,60 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e479669ebc3af43e14ce001edf9a", + "x-ep-request-uuid": "483169fb669ff3e9f419dbef0000f4f5", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.048428", - "Vary": "Origin", - "x-node": "bigweb39nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.050585", + "x-node": "bigweb33nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" + }, + "Status": { + "Code": 200, + "Message": "OK" + } + } + }, + { + "Duration": 109, + "RecordedAt": "2024-07-23T12:18:17.970173-06:00", + "Request": { + "Body": "", + "BodyContentType": "Text", + "ContentHeaders": {}, + "Method": "GET", + "RequestHeaders": { + "Authorization": "", + "User-Agent": "" + }, + "Uri": "https://api.easypost.com/v2/claims?before_id=clm_097eea36444b42ec9eac7f668b3b5e39&page_size=5" + }, + "Response": { + "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:26:27\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:26:27\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:27\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:26:27\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:26:27\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:27\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e71295cfd5fa43dc9e118f87ded7ee60.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/080c7cfee17048aa9ce1e23c2cb29f37.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/34e0d1cac8094ad58841a1633737ae4c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:22\"}],\"id\":\"clm_097ecb03760c4e32ac7440ae763b6e07\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_d921b6fffe0e4bc4a355d92613375d1d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:22\",\"tracking_code\":\"9400100110368065972741\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:22\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e71295cfd5fa43dc9e118f87ded7ee60.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/080c7cfee17048aa9ce1e23c2cb29f37.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/34e0d1cac8094ad58841a1633737ae4c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:22\"}],\"id\":\"clm_097ecb03760c4e32ac7440ae763b6e07\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_d921b6fffe0e4bc4a355d92613375d1d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:22\",\"tracking_code\":\"9400100110368065972741\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:22\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/7ff5eafcc9fb404a8aaf3ec5d35a6d72.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/420621ccbb2b4674a37d63e5848f60c7.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2825331c8ab146a18780daf1036fb36d.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:25\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:25\"}],\"id\":\"clm_097e5393d28c4bfd90b9f4af2320f4d2\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_fd138739af8d4b39950462574e158f6b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:25\",\"tracking_code\":\"9400100110368065968478\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:25\"}],\"has_more\":true}", + "BodyContentType": "Json", + "ContentHeaders": { + "Expires": "0", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "5832" + }, + "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": "483169fb669ff3e9f419dbef0000f50f", + "Cache-Control": "no-store, no-cache, private", + "Pragma": "no-cache", + "x-runtime": "0.060440", + "x-node": "bigweb53nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", + "x-backend": "easypost", + "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/retrieve.json b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/retrieve.json index c39285031..9d4198fb8 100644 --- a/EasyPost.Tests/cassettes/net/claim_service_with_parameters/retrieve.json +++ b/EasyPost.Tests/cassettes/net/claim_service_with_parameters/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 71, - "RecordedAt": "2024-07-22T14:08:17.321349-06:00", + "Duration": 93, + "RecordedAt": "2024-07-23T12:18:08.82389-06:00", "Request": { "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", "BodyContentType": "Json", @@ -17,7 +17,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:08:16Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:08:17Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_eab8d6adece148da87656e5b15e871f9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a2ad09c1bcd14c4890456940f7b71f6a\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_557c7551e21d44738a969d103c59831a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a21c34a4ea9f4a199256758ce2f26dff\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:08Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-23T18:18:08Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_9094f323a7bb4dc7a8349f230b90f233\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_e95f7973491f11ef9c58ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6ea86766dbfc4ada9865ccd5e3764322\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_9a377b99b1ba45558b77d8274dd728c9\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6e2bb335b6dd47b3949acc57a5101530\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c12fdba4205a4fd28a4e37d0e8d61960\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_e95d4a9f491f11efac91ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:07-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_e95f7973491f11ef9c58ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e95d4a9f491f11efac91ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:07-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -32,15 +32,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e478669ebc30f40c2992001ed4c8", + "x-ep-request-uuid": "483169f6669ff3dff3f984d00000e86b", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_669de399465f4df3a9471fc330c2cf4e", - "x-runtime": "0.898645", - "x-node": "bigweb35nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "Location": "/api/v2/shipments/shp_db98de74786d4e49bc99782d9ee6155b", + "x-runtime": "0.908235", + "x-node": "bigweb53nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -50,10 +50,10 @@ } }, { - "Duration": 933, - "RecordedAt": "2024-07-22T14:08:18.321936-06:00", + "Duration": 828, + "RecordedAt": "2024-07-23T12:18:09.663805-06:00", "Request": { - "Body": "{\"rate\":{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\"},\"insurance\":\"\"}", + "Body": "{\"rate\":{\"id\":\"rate_6e2bb335b6dd47b3949acc57a5101530\"},\"insurance\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -64,10 +64,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_669de399465f4df3a9471fc330c2cf4e/buy" + "Uri": "https://api.easypost.com/v2/shipments/shp_db98de74786d4e49bc99782d9ee6155b/buy" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:08:16Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968447\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_eab8d6adece148da87656e5b15e871f9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_a2ad09c1bcd14c4890456940f7b71f6a\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_988e9d4e08044daaa13d8a4fb1c9c391\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08: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/20240722/e85995dffd18b741feb379cd9341522f78.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_557c7551e21d44738a969d103c59831a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a21c34a4ea9f4a199256758ce2f26dff\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_16eb7728d003401eaa86f732dac3b3bf\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968447\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzE2ZWI3NzI4ZDAwMzQwMWVhYTg2ZjczMmRhYzNiM2Jm\"},\"to_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:17-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:17-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:08Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369090\",\"updated_at\":\"2024-07-23T18:18:09Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_9094f323a7bb4dc7a8349f230b90f233\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_e95f7973491f11ef9c58ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_6ea86766dbfc4ada9865ccd5e3764322\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ae49c56f8cf2457c89efab3632cb1d7f\",\"created_at\":\"2024-07-23T18:18:09Z\",\"updated_at\":\"2024-07-23T18:18:09Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18: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/20240723/e848bebb959ec345079cf02df8b4655c68.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9a377b99b1ba45558b77d8274dd728c9\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6e2bb335b6dd47b3949acc57a5101530\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c12fdba4205a4fd28a4e37d0e8d61960\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_6e2bb335b6dd47b3949acc57a5101530\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:09Z\",\"updated_at\":\"2024-07-23T18:18:09Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_6debe2868ca14baa8abbd6578fa39143\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369090\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-23T18:18:09Z\",\"updated_at\":\"2024-07-23T18:18:09Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzZkZWJlMjg2OGNhMTRiYWE4YWJiZDY1NzhmYTM5MTQz\"},\"to_address\":{\"id\":\"adr_e95d4a9f491f11efac91ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:09-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_e95f7973491f11ef9c58ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e95d4a9f491f11efac91ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:09-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,14 +82,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e478669ebc31f40c2992001ed5d1", + "x-ep-request-uuid": "483169f6669ff3e0f3f984d00000e98d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.874014", - "x-node": "bigweb40nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.772659", + "x-node": "bigweb41nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -99,8 +99,8 @@ } }, { - "Duration": 438, - "RecordedAt": "2024-07-22T14:08:18.803434-06:00", + "Duration": 303, + "RecordedAt": "2024-07-23T12:18:09.984386-06:00", "Request": { "Body": "{\"amount\":100.0}", "BodyContentType": "Json", @@ -113,10 +113,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_669de399465f4df3a9471fc330c2cf4e/insure" + "Uri": "https://api.easypost.com/v2/shipments/shp_db98de74786d4e49bc99782d9ee6155b/insure" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:08:16Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065968447\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_eab8d6adece148da87656e5b15e871f9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_a2ad09c1bcd14c4890456940f7b71f6a\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:08:16Z\",\"updated_at\":\"2024-07-22T20:08:16Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_988e9d4e08044daaa13d8a4fb1c9c391\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:08: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/20240722/e85995dffd18b741feb379cd9341522f78.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_557c7551e21d44738a969d103c59831a\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_a21c34a4ea9f4a199256758ce2f26dff\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:17Z\",\"updated_at\":\"2024-07-22T20:08:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_b352bc616d2a4bfe8bb3e763462285ef\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_16eb7728d003401eaa86f732dac3b3bf\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065968447\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:08:18Z\",\"updated_at\":\"2024-07-22T20:08:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:08:18Z\",\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:08:18Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T08:45:18Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzE2ZWI3NzI4ZDAwMzQwMWVhYTg2ZjczMmRhYzNiM2Jm\"},\"to_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:17-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_21f75f86486611ef84feac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:16-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_21f4b88d486611efa04c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:08:16-06:00\",\"updated_at\":\"2024-07-22T14:08:17-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:08Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369090\",\"updated_at\":\"2024-07-23T18:18:09Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_9094f323a7bb4dc7a8349f230b90f233\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_e95f7973491f11ef9c58ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_6ea86766dbfc4ada9865ccd5e3764322\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ae49c56f8cf2457c89efab3632cb1d7f\",\"created_at\":\"2024-07-23T18:18:09Z\",\"updated_at\":\"2024-07-23T18:18:09Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18: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/20240723/e848bebb959ec345079cf02df8b4655c68.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9a377b99b1ba45558b77d8274dd728c9\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6e2bb335b6dd47b3949acc57a5101530\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_c12fdba4205a4fd28a4e37d0e8d61960\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:08Z\",\"updated_at\":\"2024-07-23T18:18:08Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_6e2bb335b6dd47b3949acc57a5101530\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:09Z\",\"updated_at\":\"2024-07-23T18:18:09Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_6debe2868ca14baa8abbd6578fa39143\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369090\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-23T18:18:09Z\",\"updated_at\":\"2024-07-23T18:18:09Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-23T18:18:09Z\",\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T18:18:09Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-24T06:55:09Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzZkZWJlMjg2OGNhMTRiYWE4YWJiZDY1NzhmYTM5MTQz\"},\"to_address\":{\"id\":\"adr_e95d4a9f491f11efac91ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:09-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_e95f7973491f11ef9c58ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:07-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_e95d4a9f491f11efac91ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:07-06:00\",\"updated_at\":\"2024-07-23T12:18:09-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -131,14 +131,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e478669ebc32f40c2992001ed6cc", + "x-ep-request-uuid": "483169f6669ff3e1f3f984d00000eaa5", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.282992", - "x-node": "bigweb38nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.262317", + "x-node": "bigweb40nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -148,10 +148,10 @@ } }, { - "Duration": 899, - "RecordedAt": "2024-07-22T14:08:19.724235-06:00", + "Duration": 897, + "RecordedAt": "2024-07-23T12:18:10.899379-06:00", "Request": { - "Body": "{\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "Body": "{\"tracking_code\":\"9400100110368066369090\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -162,10 +162,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims" + "Uri": "https://api.easypost.com/v2/claims" }, "Response": { - "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d973cd9692024a8e836271da827d0140.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/875d9b498f53494aa5ef8ea145c7e73b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0cb4e0adf4c54f9980128f4ccca65398.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:18\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:18\"}],\"id\":\"clm_097ee5cf8f8343209ada2673d788d1ad\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_88c331b8d232466cae8410020c86a8ec\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:18\",\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:18\"}", + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9ad93c64d93e441d979178430ba8db1b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f194d38988494fac92280b35180bc460.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4e76a70eeb0942a5ad5dd762574ee42e.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:10\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:10\"}],\"id\":\"clm_097e971e153c44689fe7aeec5776eaf9\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_bca90fdabbb248ac93a527d47cf677cb\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:10\",\"tracking_code\":\"9400100110368066369090\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:10\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -180,15 +180,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e478669ebc32f40c2992001ed736", + "x-ep-request-uuid": "483169f6669ff3e2f3f984d00000eb37", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.837491", - "Vary": "Origin", + "x-runtime": "0.855822", "x-node": "bigweb42nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -198,8 +197,8 @@ } }, { - "Duration": 90, - "RecordedAt": "2024-07-22T14:08:19.836899-06:00", + "Duration": 78, + "RecordedAt": "2024-07-23T12:18:10.989207-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -209,10 +208,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims/clm_097ee5cf8f8343209ada2673d788d1ad" + "Uri": "https://api.easypost.com/v2/claims/clm_097e971e153c44689fe7aeec5776eaf9" }, "Response": { - "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d973cd9692024a8e836271da827d0140.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/875d9b498f53494aa5ef8ea145c7e73b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0cb4e0adf4c54f9980128f4ccca65398.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:18\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:18\"}],\"id\":\"clm_097ee5cf8f8343209ada2673d788d1ad\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_88c331b8d232466cae8410020c86a8ec\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:18\",\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:18\"}", + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9ad93c64d93e441d979178430ba8db1b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f194d38988494fac92280b35180bc460.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4e76a70eeb0942a5ad5dd762574ee42e.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:10\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:10\"}],\"id\":\"clm_097e971e153c44689fe7aeec5776eaf9\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_bca90fdabbb248ac93a527d47cf677cb\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:10\",\"tracking_code\":\"9400100110368066369090\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:10\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -227,15 +226,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e478669ebc33f40c2992001ed81a", + "x-ep-request-uuid": "483169f6669ff3e2f3f984d00000ec94", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.050714", - "Vary": "Origin", - "x-node": "bigweb42nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.039155", + "x-node": "bigweb40nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/all.json b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/all.json index 12e9483df..46ba2d35e 100644 --- a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/all.json +++ b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/all.json @@ -1,7 +1,7 @@ [ { - "Duration": 338, - "RecordedAt": "2024-07-22T14:26:20.143819-06:00", + "Duration": 48, + "RecordedAt": "2024-07-23T12:18:32.955384-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -11,15 +11,15 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims?page_size=5" + "Uri": "https://api.easypost.com/v2/claims?page_size=5" }, "Response": { - "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/7ff5eafcc9fb404a8aaf3ec5d35a6d72.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/420621ccbb2b4674a37d63e5848f60c7.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2825331c8ab146a18780daf1036fb36d.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:25\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:25\"}],\"id\":\"clm_097e5393d28c4bfd90b9f4af2320f4d2\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_fd138739af8d4b39950462574e158f6b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:25\",\"tracking_code\":\"9400100110368065968478\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:25\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4db5e421e38048f08bad11aeb2af7e63.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2b4ce842ed6742978f61cd05465353d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/a0442147eb1a44638511c508cd876d9c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:08:23\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:22\"}],\"id\":\"clm_097e88bf052b4b0989b2b7c0cd9490c1\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_e667a018ca9a4260bfa4dc6df8ec608d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:08:23\",\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:23\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d973cd9692024a8e836271da827d0140.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/875d9b498f53494aa5ef8ea145c7e73b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0cb4e0adf4c54f9980128f4ccca65398.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:18\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:18\"}],\"id\":\"clm_097ee5cf8f8343209ada2673d788d1ad\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_88c331b8d232466cae8410020c86a8ec\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:18\",\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:18\"}],\"has_more\":false}", + "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2fc58d9b15e04a45b9ca97f1c0670afe.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/ed4e49a126904c80a10152d38fe4cc90.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/3a1f3d84bd084732ac20f14b1e6cba60.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:16\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:16\"}],\"id\":\"clm_097e5a8ec27440ce9abf7aa93867bfa8\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_9930cbb49f7043038f7f5f641fc0350b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:16\",\"tracking_code\":\"9400100110368066369199\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:16\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/97d389946a7c4e2d88ed7905028876e3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/12fcb33d02c943d28d1b7a91bd26c2b0.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f87f89a9352a4b06931a15b4951ccece.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:13\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-23T18:18:14\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:13\"}],\"id\":\"clm_097edfc62fa04b06a45f3c78b51e8646\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_a1bf9e27997c46bba4634decd0453827\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-23T18:18:14\",\"tracking_code\":\"9400100110368066369144\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:14\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9ad93c64d93e441d979178430ba8db1b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f194d38988494fac92280b35180bc460.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4e76a70eeb0942a5ad5dd762574ee42e.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:10\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:10\"}],\"id\":\"clm_097e971e153c44689fe7aeec5776eaf9\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_bca90fdabbb248ac93a527d47cf677cb\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:10\",\"tracking_code\":\"9400100110368066369090\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:10\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "3487" + "Content-Length": "5708" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -29,15 +29,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e478669ec06bf4513df300237421", + "x-ep-request-uuid": "98f5faeb669ff3f8f41e42140000fb45", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.046736", - "Vary": "Origin", - "x-node": "bigweb53nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.052062", + "x-node": "bigweb34nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/cancel.json b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/cancel.json index fa485a9d0..a3a848320 100644 --- a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/cancel.json +++ b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/cancel.json @@ -1,7 +1,7 @@ [ { - "Duration": 938, - "RecordedAt": "2024-07-22T14:26:24.742629-06:00", + "Duration": 61, + "RecordedAt": "2024-07-23T12:18:37.644309-06:00", "Request": { "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", "BodyContentType": "Json", @@ -17,7 +17,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:26:24Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:26:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_9961532d42cd41b1a6034249c3eb263f\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b017d4bb43e9429fb9591bc5804b48d5\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_ca4d3a164323478587e89d2e9612a2f9\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6dc58a91c48844a588582fcbbea289b8\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:36Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-23T18:18:37Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_0c2a3d2944f849f8897ba9a6778e035a\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:36Z\",\"updated_at\":\"2024-07-23T18:18:36Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_fa92715c491f11efa61cac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7f474c27613c469e998b8014588cc9e5\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:36Z\",\"updated_at\":\"2024-07-23T18:18:36Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_e2aa09487dc744f6a0bdb8f1781beaed\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:37Z\",\"updated_at\":\"2024-07-23T18:18:37Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_16723b6ee47b4ce58f9f97596bdeebc3\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:37Z\",\"updated_at\":\"2024-07-23T18:18:37Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ea4a1c1bc9894b5d95055a5acba388bf\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:37Z\",\"updated_at\":\"2024-07-23T18:18:37Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_fa902b56491f11efa61bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:36-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_fa92715c491f11efa61cac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_fa902b56491f11efa61bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:36-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -32,13 +32,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47d669ec070f3f85f8600237949", + "x-ep-request-uuid": "98f5fae4669ff3fcf42f3e510001009e", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_a712e1028d5747ddbfcd18f79f054a99", - "x-runtime": "0.731268", - "x-node": "bigweb39nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "Location": "/api/v2/shipments/shp_5464c8a5ca7a4648ae27fc962167310e", + "x-runtime": "0.869672", + "x-node": "bigweb33nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -50,10 +50,10 @@ } }, { - "Duration": 869, - "RecordedAt": "2024-07-22T14:26:25.639341-06:00", + "Duration": 34, + "RecordedAt": "2024-07-23T12:18:38.695781-06:00", "Request": { - "Body": "{\"rate\":{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\"},\"insurance\":\"\"}", + "Body": "{\"rate\":{\"id\":\"rate_16723b6ee47b4ce58f9f97596bdeebc3\"},\"insurance\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -64,10 +64,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_a712e1028d5747ddbfcd18f79f054a99/buy" + "Uri": "https://api.easypost.com/v2/shipments/shp_5464c8a5ca7a4648ae27fc962167310e/buy" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:26:24Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972758\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_9961532d42cd41b1a6034249c3eb263f\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_b017d4bb43e9429fb9591bc5804b48d5\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_09d1bdfb3cce444f9b639e0ce1a32837\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26:25Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240722/e815349ffcf74e475cb3af4499e2150946.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_ca4d3a164323478587e89d2e9612a2f9\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6dc58a91c48844a588582fcbbea289b8\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_da371324a5eb4164b97e80ca711379f1\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972758\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2RhMzcxMzI0YTVlYjQxNjRiOTdlODBjYTcxMTM3OWYx\"},\"to_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:25-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:25-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:36Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369403\",\"updated_at\":\"2024-07-23T18:18:38Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_0c2a3d2944f849f8897ba9a6778e035a\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:36Z\",\"updated_at\":\"2024-07-23T18:18:36Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_fa92715c491f11efa61cac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_7f474c27613c469e998b8014588cc9e5\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:36Z\",\"updated_at\":\"2024-07-23T18:18:36Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_5b5da51376b74f388c58369abbb0b9d4\",\"created_at\":\"2024-07-23T18:18:38Z\",\"updated_at\":\"2024-07-23T18:18:38Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18: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/20240723/e81227f7807688433eb0a77076d0f7f9e0.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e2aa09487dc744f6a0bdb8f1781beaed\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:37Z\",\"updated_at\":\"2024-07-23T18:18:37Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_16723b6ee47b4ce58f9f97596bdeebc3\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:37Z\",\"updated_at\":\"2024-07-23T18:18:37Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ea4a1c1bc9894b5d95055a5acba388bf\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:37Z\",\"updated_at\":\"2024-07-23T18:18:37Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_16723b6ee47b4ce58f9f97596bdeebc3\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:38Z\",\"updated_at\":\"2024-07-23T18:18:38Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_739677ce99de4b448b36c57f7896d3b9\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369403\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-23T18:18:38Z\",\"updated_at\":\"2024-07-23T18:18:38Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzczOTY3N2NlOTlkZTRiNDQ4YjM2YzU3Zjc4OTZkM2I5\"},\"to_address\":{\"id\":\"adr_fa902b56491f11efa61bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:37-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_fa92715c491f11efa61cac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_fa902b56491f11efa61bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:37-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,14 +82,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47d669ec070f3f85f8600237a2b", + "x-ep-request-uuid": "98f5fae4669ff3fdf42f3e51000101b7", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.827755", - "x-node": "bigweb39nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.995238", + "x-node": "bigweb36nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -99,8 +99,8 @@ } }, { - "Duration": 291, - "RecordedAt": "2024-07-22T14:26:25.963523-06:00", + "Duration": 288, + "RecordedAt": "2024-07-23T12:18:38.999651-06:00", "Request": { "Body": "{\"amount\":100.0}", "BodyContentType": "Json", @@ -113,10 +113,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_a712e1028d5747ddbfcd18f79f054a99/insure" + "Uri": "https://api.easypost.com/v2/shipments/shp_5464c8a5ca7a4648ae27fc962167310e/insure" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:26:24Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972758\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_9961532d42cd41b1a6034249c3eb263f\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_b017d4bb43e9429fb9591bc5804b48d5\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_09d1bdfb3cce444f9b639e0ce1a32837\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26:25Z\",\"label_resolution\":300,\"label_size\":\"4x6\",\"label_type\":\"default\",\"label_file_type\":\"image/png\",\"label_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240722/e815349ffcf74e475cb3af4499e2150946.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_ca4d3a164323478587e89d2e9612a2f9\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_6dc58a91c48844a588582fcbbea289b8\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:24Z\",\"updated_at\":\"2024-07-22T20:26:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_696cd272bc8545fdbe52d92005418f9b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_da371324a5eb4164b97e80ca711379f1\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972758\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:26:25Z\",\"updated_at\":\"2024-07-22T20:26:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:26:25Z\",\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:26:25Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T09:03:25Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrX2RhMzcxMzI0YTVlYjQxNjRiOTdlODBjYTcxMTM3OWYx\"},\"to_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:25-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_aa355b94486811efb4bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:24-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_aa334c33486811ef98ef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:24-06:00\",\"updated_at\":\"2024-07-22T14:26:25-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:36Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369403\",\"updated_at\":\"2024-07-23T18:18:38Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_0c2a3d2944f849f8897ba9a6778e035a\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:36Z\",\"updated_at\":\"2024-07-23T18:18:36Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_fa92715c491f11efa61cac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_7f474c27613c469e998b8014588cc9e5\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:36Z\",\"updated_at\":\"2024-07-23T18:18:36Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_5b5da51376b74f388c58369abbb0b9d4\",\"created_at\":\"2024-07-23T18:18:38Z\",\"updated_at\":\"2024-07-23T18:18:38Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18: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/20240723/e81227f7807688433eb0a77076d0f7f9e0.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_e2aa09487dc744f6a0bdb8f1781beaed\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:37Z\",\"updated_at\":\"2024-07-23T18:18:37Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_16723b6ee47b4ce58f9f97596bdeebc3\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:37Z\",\"updated_at\":\"2024-07-23T18:18:37Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_ea4a1c1bc9894b5d95055a5acba388bf\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:37Z\",\"updated_at\":\"2024-07-23T18:18:37Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_16723b6ee47b4ce58f9f97596bdeebc3\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:38Z\",\"updated_at\":\"2024-07-23T18:18:38Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_739677ce99de4b448b36c57f7896d3b9\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369403\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-23T18:18:38Z\",\"updated_at\":\"2024-07-23T18:18:38Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-23T18:18:38Z\",\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T18:18:38Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-24T06:55:38Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzczOTY3N2NlOTlkZTRiNDQ4YjM2YzU3Zjc4OTZkM2I5\"},\"to_address\":{\"id\":\"adr_fa902b56491f11efa61bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:37-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_fa92715c491f11efa61cac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:36-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_fa902b56491f11efa61bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:36-06:00\",\"updated_at\":\"2024-07-23T12:18:37-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -131,14 +131,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47d669ec071f3f85f8600237b1d", + "x-ep-request-uuid": "98f5fae4669ff3fef42f3e510001030c", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.250033", - "x-node": "bigweb39nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.244044", + "x-node": "bigweb34nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -148,10 +148,10 @@ } }, { - "Duration": 766, - "RecordedAt": "2024-07-22T14:26:26.75708-06:00", + "Duration": 874, + "RecordedAt": "2024-07-23T12:18:39.890353-06:00", "Request": { - "Body": "{\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "Body": "{\"tracking_code\":\"9400100110368066369403\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -162,10 +162,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims" + "Uri": "https://api.easypost.com/v2/claims" }, "Response": { - "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:26\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:26\"}", + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/65f742403fda45959f609f5367403916.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/d2021683402847418100f8c926da6047.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9c13a2de7cb543348aab37cf7da8d42c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:39\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:39\"}],\"id\":\"clm_097edd6435f1479c82a8435295388929\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_184aef59fdf8433faabd3a8c4f1591d6\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:39\",\"tracking_code\":\"9400100110368066369403\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:39\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -180,13 +180,12 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47d669ec072f3f85f8600237b74", + "x-ep-request-uuid": "98f5fae4669ff3fff42f3e510001036d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.722440", - "Vary": "Origin", - "x-node": "bigweb35nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.835400", + "x-node": "bigweb34nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -198,8 +197,8 @@ } }, { - "Duration": 219, - "RecordedAt": "2024-07-22T14:26:26.99928-06:00", + "Duration": 78, + "RecordedAt": "2024-07-23T12:18:39.985526-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -209,10 +208,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims/clm_097ebfa283ac497b8b31321066e03a0d/cancel" + "Uri": "https://api.easypost.com/v2/claims/clm_097edd6435f1479c82a8435295388929/cancel" }, "Response": { - "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:26:27\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:26:27\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:27\"}", + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/65f742403fda45959f609f5367403916.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/d2021683402847418100f8c926da6047.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9c13a2de7cb543348aab37cf7da8d42c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:39\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-23T18:18:40\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:39\"}],\"id\":\"clm_097edd6435f1479c82a8435295388929\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_184aef59fdf8433faabd3a8c4f1591d6\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-23T18:18:40\",\"tracking_code\":\"9400100110368066369403\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:40\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -227,13 +226,12 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47d669ec072f3f85f8600237c56", + "x-ep-request-uuid": "98f5fae4669ff3fff42f3e510001047d", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.181184", - "Vary": "Origin", - "x-node": "bigweb36nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.039714", + "x-node": "bigweb39nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/create.json b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/create.json index ef33e99a0..cfb244262 100644 --- a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/create.json +++ b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/create.json @@ -1,7 +1,7 @@ [ { - "Duration": 88, - "RecordedAt": "2024-07-22T14:26:28.128789-06:00", + "Duration": 26, + "RecordedAt": "2024-07-23T12:18:41.036762-06:00", "Request": { "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", "BodyContentType": "Json", @@ -17,7 +17,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:26:27Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:26:28Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_65d13de5aa644533880caaf23a2237e9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_96bafc262d8c4f9fbd815042eed7bba4\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_1716ecca0ab94210a0e647ae88681152\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7914de56ecfb474385625b1e107606f1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:40Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-23T18:18:41Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_8296cb506ca0498b8ee65f1aed94a2eb\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:40Z\",\"updated_at\":\"2024-07-23T18:18:40Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_fc9b96ed491f11efa71bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5cf41ed6c2384ac8b449d095c108de49\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:40Z\",\"updated_at\":\"2024-07-23T18:18:40Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_90ba2579cb614678bd61c9b68d4e8a73\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_32e37596f95a492aa9ff61745c2e1c3a\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_397389c2aa874a4d9772e0ab34847c61\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_fc9833cb491f11ef9ab33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18: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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_fc9b96ed491f11efa71bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_fc9833cb491f11ef9ab33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18: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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -32,13 +32,13 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47c669ec073f3f6c78c00237cdb", + "x-ep-request-uuid": "98f5fae4669ff400f441da13000104ca", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_e047bf0110304e42bf2b3daa53bab2b5", - "x-runtime": "0.879878", - "x-node": "bigweb35nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "Location": "/api/v2/shipments/shp_1d644bfd379946fd9152254f443fb805", + "x-runtime": "0.850511", + "x-node": "bigweb34nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -50,10 +50,10 @@ } }, { - "Duration": 114, - "RecordedAt": "2024-07-22T14:26:29.279011-06:00", + "Duration": 879, + "RecordedAt": "2024-07-23T12:18:41.940637-06:00", "Request": { - "Body": "{\"rate\":{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\"},\"insurance\":\"\"}", + "Body": "{\"rate\":{\"id\":\"rate_397389c2aa874a4d9772e0ab34847c61\"},\"insurance\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -64,10 +64,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_e047bf0110304e42bf2b3daa53bab2b5/buy" + "Uri": "https://api.easypost.com/v2/shipments/shp_1d644bfd379946fd9152254f443fb805/buy" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:26:27Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972765\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_65d13de5aa644533880caaf23a2237e9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_96bafc262d8c4f9fbd815042eed7bba4\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6d75d109d0f240859892b6887dead897\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26: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/20240722/e8945c275999eb4a7eac1d68b87953b6b2.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_1716ecca0ab94210a0e647ae88681152\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7914de56ecfb474385625b1e107606f1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_019b18a643b5417aab50c417ec063e23\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972765\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:26:29Z\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzAxOWIxOGE2NDNiNTQxN2FhYjUwYzQxN2VjMDYzZTIz\"},\"to_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:28-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:28-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:40Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369434\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_8296cb506ca0498b8ee65f1aed94a2eb\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:40Z\",\"updated_at\":\"2024-07-23T18:18:40Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_fc9b96ed491f11efa71bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_5cf41ed6c2384ac8b449d095c108de49\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:40Z\",\"updated_at\":\"2024-07-23T18:18:40Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_814ad540b5e14763ba7471b246197549\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18: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/20240723/e857597cb56f2046f28472cf8d523d5af6.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_90ba2579cb614678bd61c9b68d4e8a73\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_32e37596f95a492aa9ff61745c2e1c3a\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_397389c2aa874a4d9772e0ab34847c61\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_397389c2aa874a4d9772e0ab34847c61\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_36b1b1a1b51b46419a5db901301b7a5c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369434\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzM2YjFiMWExYjUxYjQ2NDE5YTVkYjkwMTMwMWI3YTVj\"},\"to_address\":{\"id\":\"adr_fc9833cb491f11ef9ab33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18:41-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_fc9b96ed491f11efa71bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_fc9833cb491f11ef9ab33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18:41-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,12 +82,12 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47c669ec074f3f6c78c00237e06", + "x-ep-request-uuid": "98f5fae4669ff401f441da13000105e5", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.980651", - "x-node": "bigweb36nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.832866", + "x-node": "bigweb38nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" @@ -99,8 +99,8 @@ } }, { - "Duration": 317, - "RecordedAt": "2024-07-22T14:26:29.636036-06:00", + "Duration": 297, + "RecordedAt": "2024-07-23T12:18:42.278693-06:00", "Request": { "Body": "{\"amount\":100.0}", "BodyContentType": "Json", @@ -113,10 +113,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_e047bf0110304e42bf2b3daa53bab2b5/insure" + "Uri": "https://api.easypost.com/v2/shipments/shp_1d644bfd379946fd9152254f443fb805/insure" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:26:27Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972765\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_65d13de5aa644533880caaf23a2237e9\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_96bafc262d8c4f9fbd815042eed7bba4\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:27Z\",\"updated_at\":\"2024-07-22T20:26:27Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_6d75d109d0f240859892b6887dead897\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26: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/20240722/e8945c275999eb4a7eac1d68b87953b6b2.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_1716ecca0ab94210a0e647ae88681152\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7914de56ecfb474385625b1e107606f1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_8226b846c82e46bca0cb0a16b71a6bb1\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:28Z\",\"updated_at\":\"2024-07-22T20:26:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_019b18a643b5417aab50c417ec063e23\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972765\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:26:29Z\",\"updated_at\":\"2024-07-22T20:26:29Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:26:29Z\",\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:26:29Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T09:03:29Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzAxOWIxOGE2NDNiNTQxN2FhYjUwYzQxN2VjMDYzZTIz\"},\"to_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:28-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_ac2978fa486811ef99d33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:27-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_ac20d190486811ef890aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:27-06:00\",\"updated_at\":\"2024-07-22T14:26:28-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18:40Z\",\"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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_ba94eaaacddb4bf2b135953b3067e817\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369434\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_8296cb506ca0498b8ee65f1aed94a2eb\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:40Z\",\"updated_at\":\"2024-07-23T18:18:40Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_fc9b96ed491f11efa71bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_5cf41ed6c2384ac8b449d095c108de49\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:40Z\",\"updated_at\":\"2024-07-23T18:18:40Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_814ad540b5e14763ba7471b246197549\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18: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/20240723/e857597cb56f2046f28472cf8d523d5af6.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_90ba2579cb614678bd61c9b68d4e8a73\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_32e37596f95a492aa9ff61745c2e1c3a\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_397389c2aa874a4d9772e0ab34847c61\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_397389c2aa874a4d9772e0ab34847c61\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:41Z\",\"updated_at\":\"2024-07-23T18:18:41Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_36b1b1a1b51b46419a5db901301b7a5c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369434\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-23T18:18:42Z\",\"updated_at\":\"2024-07-23T18:18:42Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-23T18:18:42Z\",\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T18:18:42Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-24T06:55:42Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzM2YjFiMWExYjUxYjQ2NDE5YTVkYjkwMTMwMWI3YTVj\"},\"to_address\":{\"id\":\"adr_fc9833cb491f11ef9ab33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18:41-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_fc9b96ed491f11efa71bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18:40-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_fc9833cb491f11ef9ab33cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:40-06:00\",\"updated_at\":\"2024-07-23T12:18:41-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -131,14 +131,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47c669ec075f3f6c78c00237f6e", + "x-ep-request-uuid": "98f5fae4669ff402f441da1300010711", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.229927", + "x-runtime": "0.255556", "x-node": "bigweb38nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -148,10 +148,10 @@ } }, { - "Duration": 897, - "RecordedAt": "2024-07-22T14:26:30.563618-06:00", + "Duration": 800, + "RecordedAt": "2024-07-23T12:18:43.107443-06:00", "Request": { - "Body": "{\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "Body": "{\"tracking_code\":\"9400100110368066369434\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -162,10 +162,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims" + "Uri": "https://api.easypost.com/v2/claims" }, "Response": { - "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"}", + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/32979877baf44bf99ccc217f75887cf5.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/6d49465743a64e3e8c2e713fb5a0aadf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/91e41d0456694d50a556052ec8f1415a.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:42\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:42\"}],\"id\":\"clm_097eb3f5efcd41a08fb0f1163b339833\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_436af567243945b5bd80b74b43d1ef4a\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:42\",\"tracking_code\":\"9400100110368066369434\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:42\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -180,15 +180,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47c669ec075f3f6c78c00237fcb", + "x-ep-request-uuid": "98f5fae4669ff402f441da1300010786", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.835985", - "Vary": "Origin", - "x-node": "bigweb40nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.757318", + "x-node": "bigweb41nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/get_next_page.json b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/get_next_page.json index 71d0dd3af..28ce2d01f 100644 --- a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/get_next_page.json +++ b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/get_next_page.json @@ -1,7 +1,7 @@ [ { - "Duration": 230, - "RecordedAt": "2024-07-22T14:26:30.818245-06:00", + "Duration": 384, + "RecordedAt": "2024-07-23T12:18:43.51254-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -11,10 +11,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims?page_size=5" + "Uri": "https://api.easypost.com/v2/claims?page_size=5" }, "Response": { - "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:26:27\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:26:27\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:27\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e71295cfd5fa43dc9e118f87ded7ee60.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/080c7cfee17048aa9ce1e23c2cb29f37.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/34e0d1cac8094ad58841a1633737ae4c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:22\"}],\"id\":\"clm_097ecb03760c4e32ac7440ae763b6e07\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_d921b6fffe0e4bc4a355d92613375d1d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:22\",\"tracking_code\":\"9400100110368065972741\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:22\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/7ff5eafcc9fb404a8aaf3ec5d35a6d72.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/420621ccbb2b4674a37d63e5848f60c7.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2825331c8ab146a18780daf1036fb36d.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:25\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:25\"}],\"id\":\"clm_097e5393d28c4bfd90b9f4af2320f4d2\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_fd138739af8d4b39950462574e158f6b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_42e204289d2b47c5bbb320acb0ed40e3\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:25\",\"tracking_code\":\"9400100110368065968478\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:25\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4db5e421e38048f08bad11aeb2af7e63.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2b4ce842ed6742978f61cd05465353d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/a0442147eb1a44638511c508cd876d9c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:08:23\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:22\"}],\"id\":\"clm_097e88bf052b4b0989b2b7c0cd9490c1\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_e667a018ca9a4260bfa4dc6df8ec608d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_cf1f404e9c3b496cbae3335f2a678b80\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:08:23\",\"tracking_code\":\"9400100110368065968454\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:23\"}],\"has_more\":true}", + "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/32979877baf44bf99ccc217f75887cf5.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/6d49465743a64e3e8c2e713fb5a0aadf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/91e41d0456694d50a556052ec8f1415a.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:42\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:42\"}],\"id\":\"clm_097eb3f5efcd41a08fb0f1163b339833\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_436af567243945b5bd80b74b43d1ef4a\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_1d644bfd379946fd9152254f443fb805\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:42\",\"tracking_code\":\"9400100110368066369434\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:42\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/65f742403fda45959f609f5367403916.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/d2021683402847418100f8c926da6047.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9c13a2de7cb543348aab37cf7da8d42c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:39\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-23T18:18:40\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:39\"}],\"id\":\"clm_097edd6435f1479c82a8435295388929\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_184aef59fdf8433faabd3a8c4f1591d6\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_5464c8a5ca7a4648ae27fc962167310e\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-23T18:18:40\",\"tracking_code\":\"9400100110368066369403\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:40\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/5087ade104e14679a6e110ecb8f55c85.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/ff0636b0c0804f5aa8e675517d00b220.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/b2797228003c46ba8dea4c5a5755b474.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:35\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:35\"}],\"id\":\"clm_097e98fc394949459316cee6f6b5155d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_6eedf2b3fa4b44c390220d852a726e5d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:35\",\"tracking_code\":\"9400100110368066369366\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:35\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2fc58d9b15e04a45b9ca97f1c0670afe.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/ed4e49a126904c80a10152d38fe4cc90.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/3a1f3d84bd084732ac20f14b1e6cba60.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:16\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:16\"}],\"id\":\"clm_097e5a8ec27440ce9abf7aa93867bfa8\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_9930cbb49f7043038f7f5f641fc0350b\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_2cd467cc786442ed924cf25e1315ff4b\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:16\",\"tracking_code\":\"9400100110368066369199\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:16\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/97d389946a7c4e2d88ed7905028876e3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/12fcb33d02c943d28d1b7a91bd26c2b0.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f87f89a9352a4b06931a15b4951ccece.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:13\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-23T18:18:14\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:13\"}],\"id\":\"clm_097edfc62fa04b06a45f3c78b51e8646\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_a1bf9e27997c46bba4634decd0453827\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9970af4c98fa4eb1a8f80d44be3a3135\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-23T18:18:14\",\"tracking_code\":\"9400100110368066369144\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:14\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -29,15 +29,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47a669ec076f42d878900238117", + "x-ep-request-uuid": "98f5fae6669ff403f3f97ccc000108b1", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.052240", - "Vary": "Origin", - "x-node": "bigweb35nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.208030", + "x-node": "bigweb40nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -47,8 +46,8 @@ } }, { - "Duration": 78, - "RecordedAt": "2024-07-22T14:26:30.919243-06:00", + "Duration": 98, + "RecordedAt": "2024-07-23T12:18:43.632034-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -58,15 +57,15 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims?before_id=clm_097e88bf052b4b0989b2b7c0cd9490c1&page_size=5" + "Uri": "https://api.easypost.com/v2/claims?before_id=clm_097edfc62fa04b06a45f3c78b51e8646&page_size=5" }, "Response": { - "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d973cd9692024a8e836271da827d0140.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/875d9b498f53494aa5ef8ea145c7e73b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0cb4e0adf4c54f9980128f4ccca65398.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:08:18\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:08:18\"}],\"id\":\"clm_097ee5cf8f8343209ada2673d788d1ad\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_88c331b8d232466cae8410020c86a8ec\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_669de399465f4df3a9471fc330c2cf4e\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:08:18\",\"tracking_code\":\"9400100110368065968447\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:08:18\"}],\"has_more\":false}", + "Body": "{\"claims\":[{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9ad93c64d93e441d979178430ba8db1b.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f194d38988494fac92280b35180bc460.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4e76a70eeb0942a5ad5dd762574ee42e.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:10\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:10\"}],\"id\":\"clm_097e971e153c44689fe7aeec5776eaf9\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_bca90fdabbb248ac93a527d47cf677cb\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_db98de74786d4e49bc99782d9ee6155b\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:10\",\"tracking_code\":\"9400100110368066369090\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:10\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1412b223285245a286d89b9eb5eb36a3.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e18bdfb03eba4b9cb8c01b17de68fecf.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/4524603000a14b87b02a777508b94db5.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:29\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:29\"}],\"id\":\"clm_097eea36444b42ec9eac7f668b3b5e39\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_ee7fa5183ecd464abefa3c07d5b065c2\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_e047bf0110304e42bf2b3daa53bab2b5\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:29\",\"tracking_code\":\"9400100110368065972765\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:29\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:26:27\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:26:27\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:27\"},{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d2791d1267140d8b17e7543791214d8.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0a362fc2748a46cebada4c5783ba3f17.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/d1b52d49efe740b2b4abc8e52d0181d3.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:26\",\"description\":\"Test description\",\"history\":[{\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"timestamp\":\"2024-07-22T20:26:27\"},{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:26\"}],\"id\":\"clm_097ebfa283ac497b8b31321066e03a0d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_38bdb1417e2e4aa49b651bd79599a480\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_a712e1028d5747ddbfcd18f79f054a99\",\"status\":\"cancelled\",\"status_detail\":\"Claim cancellation was requested.\",\"status_timestamp\":\"2024-07-22T20:26:27\",\"tracking_code\":\"9400100110368065972758\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:27\"}],\"has_more\":true}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "1141" + "Content-Length": "5832" }, "HttpVersion": "1.1", "ResponseHeaders": { @@ -76,13 +75,12 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "9bf8e47a669ec076f42d878900238137", + "x-ep-request-uuid": "98f5fae6669ff403f3f97ccc0001090e", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.034875", - "Vary": "Origin", - "x-node": "bigweb38nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.055672", + "x-node": "bigweb36nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" diff --git a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/retrieve.json b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/retrieve.json index c3cd2cda9..a439f08f7 100644 --- a/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/retrieve.json +++ b/EasyPost.Tests/cassettes/netstandard/claim_service_with_parameters/retrieve.json @@ -1,7 +1,7 @@ [ { - "Duration": 990, - "RecordedAt": "2024-07-22T14:26:21.30167-06:00", + "Duration": 171, + "RecordedAt": "2024-07-23T12:18:34.258499-06:00", "Request": { "Body": "{\"shipment\":{\"customs_info\":{\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_type\":\"none\"},\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\"},\"reference\":\"123\",\"to_address\":{\"city\":\"Redondo Beach\",\"country\":\"US\",\"email\":\"\",\"name\":\"Elizabeth Swan\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"179 N Harbor Dr\",\"zip\":\"90277\"},\"from_address\":{\"city\":\"San Francisco\",\"country\":\"US\",\"email\":\"\",\"name\":\"Jack Sparrow\",\"phone\":\"\",\"state\":\"CA\",\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"zip\":\"94107\"},\"parcel\":{\"height\":4.0,\"length\":10.0,\"weight\":15.4,\"width\":8.0}}}", "BodyContentType": "Json", @@ -17,7 +17,7 @@ "Uri": "https://api.easypost.com/v2/shipments" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:26:20Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-22T20:26:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_cf4df72846ac487084ec744a3624fb3a\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_4937b499b93149dbb8a65558da42f38f\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_49a008f314854806889c5adac6ca3217\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8fa7f80bbb774c2fbe18b3f79cfa5c4b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f793f49c69f54be58b06935405fa259e\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18: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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2024-07-23T18:18:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_33296a5c298b4c8d8523d5c3facad93c\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:33Z\",\"updated_at\":\"2024-07-23T18:18:33Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_f87ebf80491f11efb559ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6baadc6cbfc4eb19999f01f71af0a2a\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:33Z\",\"updated_at\":\"2024-07-23T18:18:33Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_3779f0aa159442f7aa140dfe52cd2c00\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:34Z\",\"updated_at\":\"2024-07-23T18:18:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7097cf0c36f94ec1849804983daa8b57\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:34Z\",\"updated_at\":\"2024-07-23T18:18:34Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_321420b135774d73a60f30a05b0753fa\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:34Z\",\"updated_at\":\"2024-07-23T18:18:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_f87c181d491f11efa505ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:33-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\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_f87ebf80491f11efb559ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_f87c181d491f11efa505ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:33-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\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_038698dda54547498e41eb0e715306db\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -32,15 +32,15 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "a6f186b3669ec06cf452496d0022ffd9", + "x-ep-request-uuid": "98f5fae8669ff3f9f4095f070000fc36", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "Location": "/api/v2/shipments/shp_9e102dbf98a84f79b72832dfc6c01cbf", - "x-runtime": "0.787656", - "x-node": "bigweb42nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "Location": "/api/v2/shipments/shp_038698dda54547498e41eb0e715306db", + "x-runtime": "0.963723", + "x-node": "bigweb53nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -50,10 +50,10 @@ } }, { - "Duration": 89, - "RecordedAt": "2024-07-22T14:26:22.422287-06:00", + "Duration": 16, + "RecordedAt": "2024-07-23T12:18:35.304328-06:00", "Request": { - "Body": "{\"rate\":{\"id\":\"rate_49a008f314854806889c5adac6ca3217\"},\"insurance\":\"\"}", + "Body": "{\"rate\":{\"id\":\"rate_7097cf0c36f94ec1849804983daa8b57\"},\"insurance\":\"\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -64,10 +64,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_9e102dbf98a84f79b72832dfc6c01cbf/buy" + "Uri": "https://api.easypost.com/v2/shipments/shp_038698dda54547498e41eb0e715306db/buy" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:26:20Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972741\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_cf4df72846ac487084ec744a3624fb3a\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_4937b499b93149dbb8a65558da42f38f\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_094ebf114f49427f8c5bf200f6a72904\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26: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/20240722/e8dec171079b6c419a9c3c47b80338bf56.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_49a008f314854806889c5adac6ca3217\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8fa7f80bbb774c2fbe18b3f79cfa5c4b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f793f49c69f54be58b06935405fa259e\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_49a008f314854806889c5adac6ca3217\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:22Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_e6b6879be71940b1b24c219b6e598893\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972741\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-22T20:26:22Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2U2YjY4NzliZTcxOTQwYjFiMjRjMjE5YjZlNTk4ODkz\"},\"to_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18: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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369366\",\"updated_at\":\"2024-07-23T18:18:35Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_33296a5c298b4c8d8523d5c3facad93c\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:33Z\",\"updated_at\":\"2024-07-23T18:18:33Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_f87ebf80491f11efb559ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":null,\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6baadc6cbfc4eb19999f01f71af0a2a\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:33Z\",\"updated_at\":\"2024-07-23T18:18:33Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_315312cc1c9f41728537c0a42276dc5f\",\"created_at\":\"2024-07-23T18:18:34Z\",\"updated_at\":\"2024-07-23T18:18:35Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18: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/20240723/e898ce403736624a649461cb6760f3eb77.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_3779f0aa159442f7aa140dfe52cd2c00\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:34Z\",\"updated_at\":\"2024-07-23T18:18:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7097cf0c36f94ec1849804983daa8b57\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:34Z\",\"updated_at\":\"2024-07-23T18:18:34Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_321420b135774d73a60f30a05b0753fa\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:34Z\",\"updated_at\":\"2024-07-23T18:18:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7097cf0c36f94ec1849804983daa8b57\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:35Z\",\"updated_at\":\"2024-07-23T18:18:35Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ae6e9a8bfb30468ebbd5e79298f6c2e8\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369366\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2024-07-23T18:18:35Z\",\"updated_at\":\"2024-07-23T18:18:35Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2FlNmU5YThiZmIzMDQ2OGViYmQ1ZTc5Mjk4ZjZjMmU4\"},\"to_address\":{\"id\":\"adr_f87c181d491f11efa505ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:34-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_f87ebf80491f11efb559ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_f87c181d491f11efa505ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:34-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":\"\",\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_038698dda54547498e41eb0e715306db\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -82,14 +82,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "a6f186b3669ec06df452496d002300ad", + "x-ep-request-uuid": "98f5fae8669ff3faf4095f070000fd89", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.951000", - "x-node": "bigweb41nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.976707", + "x-node": "bigweb38nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -99,8 +99,8 @@ } }, { - "Duration": 270, - "RecordedAt": "2024-07-22T14:26:22.729662-06:00", + "Duration": 306, + "RecordedAt": "2024-07-23T12:18:35.631978-06:00", "Request": { "Body": "{\"amount\":100.0}", "BodyContentType": "Json", @@ -113,10 +113,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/v2/shipments/shp_9e102dbf98a84f79b72832dfc6c01cbf/insure" + "Uri": "https://api.easypost.com/v2/shipments/shp_038698dda54547498e41eb0e715306db/insure" }, "Response": { - "Body": "{\"created_at\":\"2024-07-22T20:26:20Z\",\"is_return\":false,\"messages\":[{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_791e2b3f2bff43e298d6dd803ab41569\",\"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\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368065972741\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_cf4df72846ac487084ec744a3624fb3a\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_4937b499b93149dbb8a65558da42f38f\",\"object\":\"Parcel\",\"created_at\":\"2024-07-22T20:26:20Z\",\"updated_at\":\"2024-07-22T20:26:20Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_094ebf114f49427f8c5bf200f6a72904\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-22T20:26: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/20240722/e8dec171079b6c419a9c3c47b80338bf56.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_49a008f314854806889c5adac6ca3217\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_8fa7f80bbb774c2fbe18b3f79cfa5c4b\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_f793f49c69f54be58b06935405fa259e\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:21Z\",\"updated_at\":\"2024-07-22T20:26:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_49a008f314854806889c5adac6ca3217\",\"object\":\"Rate\",\"created_at\":\"2024-07-22T20:26:22Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_e6b6879be71940b1b24c219b6e598893\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368065972741\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-22T20:26:22Z\",\"updated_at\":\"2024-07-22T20:26:22Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-22T20:26:22Z\",\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-22T20:26:22Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T09:03:22Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrX2U2YjY4NzliZTcxOTQwYjFiMjRjMjE5YjZlNTk4ODkz\"},\"to_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_a820b887486811ef98013cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:20-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_a81e0e12486811efb3e8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2024-07-22T14:26:20-06:00\",\"updated_at\":\"2024-07-22T14:26:21-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"object\":\"Shipment\"}", + "Body": "{\"created_at\":\"2024-07-23T18:18: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_791e2b3f2bff43e298d6dd803ab41569\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"UPS\",\"carrier_account_id\":\"ca_34d97dc9d5df46e48c088455935bc518\",\"type\":\"rate_error\",\"message\":\"Invalid Access License number\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_591d414609684bada7f2a2c6a1734bf7\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45999a4724c44dfcbd69483ee174502a\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_d85d6d6612ee4de1b27e32ead463e1f0\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"},{\"carrier\":\"DhlEcs\",\"carrier_account_id\":\"ca_45bdeb10ddbe45d4a74330c744000d36\",\"type\":\"rate_error\",\"message\":\"Invalid credentials\"}],\"mode\":\"test\",\"options\":{\"invoice_number\":\"123\",\"label_format\":\"PNG\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100110368066369366\",\"updated_at\":\"2024-07-23T18:18:35Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_33296a5c298b4c8d8523d5c3facad93c\",\"object\":\"CustomsInfo\",\"created_at\":\"2024-07-23T18:18:33Z\",\"updated_at\":\"2024-07-23T18:18:33Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[]},\"from_address\":{\"id\":\"adr_f87ebf80491f11efb559ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"insurance\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_f6baadc6cbfc4eb19999f01f71af0a2a\",\"object\":\"Parcel\",\"created_at\":\"2024-07-23T18:18:33Z\",\"updated_at\":\"2024-07-23T18:18:33Z\",\"length\":10.0,\"width\":8.0,\"height\":4.0,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_315312cc1c9f41728537c0a42276dc5f\",\"created_at\":\"2024-07-23T18:18:34Z\",\"updated_at\":\"2024-07-23T18:18:35Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2024-07-23T18:18: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/20240723/e898ce403736624a649461cb6760f3eb77.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_3779f0aa159442f7aa140dfe52cd2c00\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:34Z\",\"updated_at\":\"2024-07-23T18:18:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.90\",\"currency\":\"USD\",\"retail_rate\":\"9.80\",\"retail_currency\":\"USD\",\"list_rate\":\"8.25\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_7097cf0c36f94ec1849804983daa8b57\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:34Z\",\"updated_at\":\"2024-07-23T18:18:34Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},{\"id\":\"rate_321420b135774d73a60f30a05b0753fa\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:34Z\",\"updated_at\":\"2024-07-23T18:18:34Z\",\"mode\":\"test\",\"service\":\"Express\",\"carrier\":\"USPS\",\"rate\":\"33.10\",\"currency\":\"USD\",\"retail_rate\":\"37.90\",\"retail_currency\":\"USD\",\"list_rate\":\"33.10\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":2,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":2,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7097cf0c36f94ec1849804983daa8b57\",\"object\":\"Rate\",\"created_at\":\"2024-07-23T18:18:35Z\",\"updated_at\":\"2024-07-23T18:18:35Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.45\",\"retail_currency\":\"USD\",\"list_rate\":\"6.40\",\"list_currency\":\"USD\",\"billing_type\":\"easypost\",\"delivery_days\":3,\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"est_delivery_days\":3,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier_account_id\":\"ca_7642d249fdcf47bcb5da9ea34c96dfcf\"},\"tracker\":{\"id\":\"trk_ae6e9a8bfb30468ebbd5e79298f6c2e8\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100110368066369366\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2024-07-23T18:18:35Z\",\"updated_at\":\"2024-07-23T18:18:35Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2024-07-23T18:18:35Z\",\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-23T18:18:35Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2024-06-24T06:55:35Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrX2FlNmU5YThiZmIzMDQ2OGViYmQ1ZTc5Mjk4ZjZjMmU4\"},\"to_address\":{\"id\":\"adr_f87c181d491f11efa505ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:34-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_f87ebf80491f11efb559ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:33-06:00\",\"name\":\"Jack Sparrow\",\"company\":null,\"street1\":\"388 Townsend St\",\"street2\":\"Apt 20\",\"city\":\"San Francisco\",\"state\":\"CA\",\"zip\":\"94107\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"buyer_address\":{\"id\":\"adr_f87c181d491f11efa505ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2024-07-23T12:18:33-06:00\",\"updated_at\":\"2024-07-23T12:18:34-06:00\",\"name\":\"ELIZABETH SWAN\",\"company\":null,\"street1\":\"179 N HARBOR DR\",\"street2\":null,\"city\":\"REDONDO BEACH\",\"state\":\"CA\",\"zip\":\"90277-2506\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":false,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":33.8436,\"longitude\":-118.39177,\"time_zone\":\"America/Los_Angeles\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.01000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"1.00000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_038698dda54547498e41eb0e715306db\",\"object\":\"Shipment\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -131,15 +131,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "a6f186b3669ec06ef452496d002301bb", + "x-ep-request-uuid": "98f5fae8669ff3fbf4095f070000fec1", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.230644", - "x-node": "bigweb32nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.264357", + "x-node": "bigweb39nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-canary": "direct", - "x-proxied": "intlb3nuq c0f5e722d1,extlb2nuq fa152d4755", + "x-proxied": "intlb3nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -149,10 +148,10 @@ } }, { - "Duration": 884, - "RecordedAt": "2024-07-22T14:26:23.653266-06:00", + "Duration": 805, + "RecordedAt": "2024-07-23T12:18:36.461976-06:00", "Request": { - "Body": "{\"tracking_code\":\"9400100110368065972741\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", + "Body": "{\"tracking_code\":\"9400100110368066369366\",\"type\":\"damage\",\"amount\":100.0,\"email_evidence_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"invoice_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"supporting_documentation_attachments\":[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg==\"],\"description\":\"Test description\",\"contact_email\":\"test@example.com\"}", "BodyContentType": "Json", "ContentHeaders": { "Content-Type": "application/json; charset=utf-8", @@ -163,10 +162,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims" + "Uri": "https://api.easypost.com/v2/claims" }, "Response": { - "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e71295cfd5fa43dc9e118f87ded7ee60.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/080c7cfee17048aa9ce1e23c2cb29f37.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/34e0d1cac8094ad58841a1633737ae4c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:22\"}],\"id\":\"clm_097ecb03760c4e32ac7440ae763b6e07\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_d921b6fffe0e4bc4a355d92613375d1d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:22\",\"tracking_code\":\"9400100110368065972741\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:22\"}", + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/5087ade104e14679a6e110ecb8f55c85.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/ff0636b0c0804f5aa8e675517d00b220.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/b2797228003c46ba8dea4c5a5755b474.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:35\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:35\"}],\"id\":\"clm_097e98fc394949459316cee6f6b5155d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_6eedf2b3fa4b44c390220d852a726e5d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:35\",\"tracking_code\":\"9400100110368066369366\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:35\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -181,15 +180,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "a6f186b3669ec06ef452496d002301f3", + "x-ep-request-uuid": "98f5fae8669ff3fbf4095f070000ff30", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.843407", - "Vary": "Origin", - "x-node": "bigweb39nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.763489", + "x-node": "bigweb36nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { @@ -199,8 +197,8 @@ } }, { - "Duration": 77, - "RecordedAt": "2024-07-22T14:26:23.759035-06:00", + "Duration": 76, + "RecordedAt": "2024-07-23T12:18:36.556522-06:00", "Request": { "Body": "", "BodyContentType": "Text", @@ -210,10 +208,10 @@ "Authorization": "", "User-Agent": "" }, - "Uri": "https://api.easypost.com/beta/claims/clm_097ecb03760c4e32ac7440ae763b6e07" + "Uri": "https://api.easypost.com/v2/claims/clm_097e98fc394949459316cee6f6b5155d" }, "Response": { - "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/e71295cfd5fa43dc9e118f87ded7ee60.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/080c7cfee17048aa9ce1e23c2cb29f37.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/34e0d1cac8094ad58841a1633737ae4c.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-22T20:26:22\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-22T20:26:22\"}],\"id\":\"clm_097ecb03760c4e32ac7440ae763b6e07\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_d921b6fffe0e4bc4a355d92613375d1d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_9e102dbf98a84f79b72832dfc6c01cbf\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-22T20:26:22\",\"tracking_code\":\"9400100110368065972741\",\"type\":\"damage\",\"updated_at\":\"2024-07-22T20:26:22\"}", + "Body": "{\"approved_amount\":null,\"attachments\":[\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/5087ade104e14679a6e110ecb8f55c85.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/ff0636b0c0804f5aa8e675517d00b220.png\",\"https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/b2797228003c46ba8dea4c5a5755b474.png\"],\"check_delivery_address\":null,\"contact_email\":\"test@example.com\",\"created_at\":\"2024-07-23T18:18:35\",\"description\":\"Test description\",\"history\":[{\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"timestamp\":\"2024-07-23T18:18:35\"}],\"id\":\"clm_097e98fc394949459316cee6f6b5155d\",\"insurance_amount\":\"100.00\",\"insurance_id\":\"ins_6eedf2b3fa4b44c390220d852a726e5d\",\"mode\":\"test\",\"object\":\"Claim\",\"payment_method\":\"easypost_wallet\",\"recipient_name\":null,\"requested_amount\":\"100.00\",\"salvage_value\":null,\"shipment_id\":\"shp_038698dda54547498e41eb0e715306db\",\"status\":\"submitted\",\"status_detail\":\"Claim was created.\",\"status_timestamp\":\"2024-07-23T18:18:35\",\"tracking_code\":\"9400100110368066369366\",\"type\":\"damage\",\"updated_at\":\"2024-07-23T18:18:35\"}", "BodyContentType": "Json", "ContentHeaders": { "Expires": "0", @@ -228,15 +226,14 @@ "x-download-options": "noopen", "x-permitted-cross-domain-policies": "none", "referrer-policy": "strict-origin-when-cross-origin", - "x-ep-request-uuid": "a6f186b3669ec06ff452496d002302b9", + "x-ep-request-uuid": "98f5fae8669ff3fcf4095f070001003f", "Cache-Control": "no-store, no-cache, private", "Pragma": "no-cache", - "x-runtime": "0.036833", - "Vary": "Origin", - "x-node": "bigweb35nuq", - "x-version-label": "easypost-202407221922-7acbce7c21-master", + "x-runtime": "0.036768", + "x-node": "bigweb33nuq", + "x-version-label": "easypost-202407231745-14d334dc13-master", "x-backend": "easypost", - "x-proxied": "intlb4nuq c0f5e722d1,extlb2nuq fa152d4755", + "x-proxied": "intlb4nuq c0f5e722d1,extlb1nuq fa152d4755", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload" }, "Status": { diff --git a/EasyPost/Services/ClaimService.cs b/EasyPost/Services/ClaimService.cs index 2eb9c8260..22617911d 100644 --- a/EasyPost/Services/ClaimService.cs +++ b/EasyPost/Services/ClaimService.cs @@ -33,7 +33,7 @@ internal ClaimService(EasyPostClient client) /// to use for the HTTP request. /// A object. [CrudOperations.Create] - public async Task Create(Parameters.Claim.Create parameters, CancellationToken cancellationToken = default) => await RequestAsync(Method.Post, "claims", cancellationToken, parameters.ToDictionary(), overrideApiVersion: ApiVersion.Beta); + public async Task Create(Parameters.Claim.Create parameters, CancellationToken cancellationToken = default) => await RequestAsync(Method.Post, "claims", cancellationToken, parameters.ToDictionary()); /// /// List all s. @@ -45,7 +45,7 @@ internal ClaimService(EasyPostClient client) [CrudOperations.Read] public async Task All(Parameters.Claim.All parameters, CancellationToken cancellationToken = default) { - ClaimCollection collection = await RequestAsync(Method.Get, "claims", cancellationToken, parameters.ToDictionary(), overrideApiVersion: ApiVersion.Beta); + ClaimCollection collection = await RequestAsync(Method.Get, "claims", cancellationToken, parameters.ToDictionary()); collection.Filters = parameters; return collection; } @@ -70,7 +70,7 @@ public async Task All(Parameters.Claim.All parameters, Cancella /// to use for the HTTP request. /// A instance. [CrudOperations.Read] - public async Task Retrieve(string id, CancellationToken cancellationToken = default) => await RequestAsync(Method.Get, $"claims/{id}", cancellationToken, overrideApiVersion: ApiVersion.Beta); + public async Task Retrieve(string id, CancellationToken cancellationToken = default) => await RequestAsync(Method.Get, $"claims/{id}", cancellationToken); /// /// Refund an . @@ -80,7 +80,7 @@ public async Task All(Parameters.Claim.All parameters, Cancella /// to use for the HTTP request. /// A instance. [CrudOperations.Delete] - public async Task Cancel(string id, CancellationToken cancellationToken = default) => await RequestAsync(Method.Post, $"claims/{id}/cancel", cancellationToken, overrideApiVersion: ApiVersion.Beta); + public async Task Cancel(string id, CancellationToken cancellationToken = default) => await RequestAsync(Method.Post, $"claims/{id}/cancel", cancellationToken); #endregion }